Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-17 23:59:02.919892
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20900022
  datou_current_id : 2621397
in upload_from_sqlite, uploading in 20900022
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg', 2), ('/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg', 2), ('/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg', '/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg', '/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2621397&datou=0
/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg
/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg
/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.5075404644012451 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2621397&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de3b5c0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-17 23:59:32.187876
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20900022
  datou_current_id : 2621397
in upload_from_sqlite, uploading in 20900022
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg', 2), ('/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg', 2), ('/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg', '/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg', '/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2621397&datou=0
/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg
/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg
/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.38138246536254883 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2621397&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa29e05c0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 00:00:03.097897
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20900022
  datou_current_id : 2621397
in upload_from_sqlite, uploading in 20900022
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg', 2), ('/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg', 2), ('/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg', '/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg', '/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2621397&datou=0
/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg
/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg
/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.4422268867492676 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2621397&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1cbf5c0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 00:00:32.658252
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20900022
  datou_current_id : 2621397
in upload_from_sqlite, uploading in 20900022
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg', 2), ('/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg', 2), ('/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg', '/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg', '/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2621397&datou=0
/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg
/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg
/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.37629199028015137 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2621397&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa78df5c0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 00:01:02.239929
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27022025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28022025
  port_id : 20900022
  datou_current_id : 2621397
in upload_from_sqlite, uploading in 20900022
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250226 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250227 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250228 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg', 2), ('/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg', 2), ('/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg', 2), ('/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg', '/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg', '/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg', '/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2621397&datou=0
/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_12_6149.jpg
/home/nano/Desktop/images/28022025/17/06/image_28022025_17_06_06_5801.jpg
/home/nano/Desktop/images/28022025/17/05/image_28022025_17_06_00_6673.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_59_5758.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_17_6050.jpg
/home/nano/Desktop/images/28022025/17/04/image_28022025_17_04_11_5824.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.3901958465576172 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2621397&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f980345c0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 00:01:31.765180
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/00/01/image_18032025_00_01_53_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/00/01/image_18032025_00_01_48_6652.jpg', 2), ('/home/nano/Desktop/images/18032025/00/01/image_18032025_00_01_41_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/00/01/image_18032025_00_01_35_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/00/01/image_18032025_00_01_30_6821.jpg', 2), ('/home/nano/Desktop/images/18032025/00/01/image_18032025_00_01_23_5880.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa84e3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa84e3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:23:02.311927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/22/image_18032025_01_22_53_5256.jpg', 2), ('/home/nano/Desktop/images/18032025/01/22/image_18032025_01_22_48_6243.jpg', 2), ('/home/nano/Desktop/images/18032025/01/22/image_18032025_01_22_41_6232.jpg', 2), ('/home/nano/Desktop/images/18032025/01/22/image_18032025_01_22_35_6366.jpg', 2), ('/home/nano/Desktop/images/18032025/01/22/image_18032025_01_22_29_5223.jpg', 2), ('/home/nano/Desktop/images/18032025/01/22/image_18032025_01_22_24_6231.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f3a8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f3a8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f3a8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:23:32.079431
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_53_6263.jpg', 2), ('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_47_6250.jpg', 2), ('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_41_5213.jpg', 2), ('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_36_6233.jpg', 2), ('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_29_6229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_23_6229.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f954dbf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f954dbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f954dbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:24:02.802873
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_53_6263.jpg', 2), ('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_47_6250.jpg', 2), ('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_41_5213.jpg', 2), ('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_36_6233.jpg', 2), ('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_29_6229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/23/image_18032025_01_23_23_6229.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa946af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa946af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa946af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:24:32.179375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_54_6222.jpg', 2), ('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_48_6236.jpg', 2), ('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_41_6267.jpg', 2), ('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_35_5241.jpg', 2), ('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_30_6230.jpg', 2), ('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_24_6232.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ac31f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ac31f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ac31f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:25:02.525468
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_54_6222.jpg', 2), ('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_48_6236.jpg', 2), ('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_41_6267.jpg', 2), ('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_35_5241.jpg', 2), ('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_30_6230.jpg', 2), ('/home/nano/Desktop/images/18032025/01/24/image_18032025_01_24_24_6232.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d075f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d075f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d075f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:25:32.304284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_53_6260.jpg', 2), ('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_47_5235.jpg', 2), ('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_36_6229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_23_5235.jpg', 2), ('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_18_6234.jpg', 2), ('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_12_6261.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84646eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84646eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84646eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:26:02.792832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_53_6260.jpg', 2), ('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_47_5235.jpg', 2), ('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_36_6229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_23_5235.jpg', 2), ('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_18_6234.jpg', 2), ('/home/nano/Desktop/images/18032025/01/25/image_18032025_01_25_12_6261.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f824f9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f824f9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f824f9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:26:32.400638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_54_6280.jpg', 2), ('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_47_6220.jpg', 2), ('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_41_6283.jpg', 2), ('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_35_5227.jpg', 2), ('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_30_6232.jpg', 2), ('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_23_6224.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3bb3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3bb3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3bb3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:27:02.934852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_54_6280.jpg', 2), ('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_47_6220.jpg', 2), ('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_41_6283.jpg', 2), ('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_35_5227.jpg', 2), ('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_30_6232.jpg', 2), ('/home/nano/Desktop/images/18032025/01/26/image_18032025_01_26_23_6224.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa47eef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa47eef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa47eef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:27:32.514858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_53_5218.jpg', 2), ('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_48_6225.jpg', 2), ('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_42_6229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_35_6229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_29_6265.jpg', 2), ('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_23_5217.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb552ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb552ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb552ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:28:02.923826
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_53_5218.jpg', 2), ('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_48_6225.jpg', 2), ('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_42_6229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_35_6229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_29_6265.jpg', 2), ('/home/nano/Desktop/images/18032025/01/27/image_18032025_01_27_23_5217.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6033eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6033eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6033eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:28:32.635199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_53_6228.jpg', 2), ('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_47_6245.jpg', 2), ('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_41_5215.jpg', 2), ('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_36_6232.jpg', 2), ('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_30_6233.jpg', 2), ('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_23_6281.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadacbf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadacbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadacbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:29:03.308059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_53_6228.jpg', 2), ('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_47_6245.jpg', 2), ('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_41_5215.jpg', 2), ('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_36_6232.jpg', 2), ('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_30_6233.jpg', 2), ('/home/nano/Desktop/images/18032025/01/28/image_18032025_01_28_23_6281.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83142eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83142eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83142eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:29:32.744014
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_54_6229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_48_6231.jpg', 2), ('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_41_6223.jpg', 2), ('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_35_6261.jpg', 2), ('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_29_5229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_24_6265.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78a92eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78a92eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78a92eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:30:02.264150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_54_6229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_48_6231.jpg', 2), ('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_41_6223.jpg', 2), ('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_35_6261.jpg', 2), ('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_29_5229.jpg', 2), ('/home/nano/Desktop/images/18032025/01/29/image_18032025_01_29_24_6265.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82756f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82756f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82756f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:30:31.920086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_53_6280.jpg', 2), ('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_47_5269.jpg', 2), ('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_42_6222.jpg', 2), ('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_36_6223.jpg', 2), ('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_29_6233.jpg', 2), ('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_23_6232.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85920f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85920f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85920f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:31:02.459984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_53_6280.jpg', 2), ('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_47_5269.jpg', 2), ('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_42_6222.jpg', 2), ('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_36_6223.jpg', 2), ('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_29_6233.jpg', 2), ('/home/nano/Desktop/images/18032025/01/30/image_18032025_01_30_23_6232.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a2bdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a2bdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a2bdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:31:32.057334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_53_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_47_5713.jpg', 2), ('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_42_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_36_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_30_6699.jpg', 2), ('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_23_5931.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa3bcf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa3bcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa3bcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:32:02.428911
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_53_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_47_5713.jpg', 2), ('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_42_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_36_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_30_6699.jpg', 2), ('/home/nano/Desktop/images/18032025/01/31/image_18032025_01_31_23_5931.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2d70eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2d70eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2d70eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:32:32.161004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_53_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_48_6678.jpg', 2), ('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_41_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_35_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_30_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_23_5629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d2c8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d2c8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d2c8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:33:02.965240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_53_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_48_6678.jpg', 2), ('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_41_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_35_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_30_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/01/32/image_18032025_01_32_23_5629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac87af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac87af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac87af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:33:32.544625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_54_5840.jpg', 2), ('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_48_6802.jpg', 2), ('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_41_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_35_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_29_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_23_5627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f584f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f584f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f584f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:34:03.112208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_54_5840.jpg', 2), ('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_48_6802.jpg', 2), ('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_41_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_35_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_29_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/01/33/image_18032025_01_33_23_5627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad12f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad12f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ad12f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:34:32.643222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_53_5924.jpg', 2), ('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_47_6001.jpg', 2), ('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_41_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_35_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_29_6211.jpg', 2), ('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_23_5935.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be8eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be8eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be8eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:35:03.178030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_53_5924.jpg', 2), ('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_47_6001.jpg', 2), ('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_41_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_35_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_29_6211.jpg', 2), ('/home/nano/Desktop/images/18032025/01/34/image_18032025_01_34_23_5935.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0757f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0757f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0757f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:35:32.744171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_54_5884.jpg', 2), ('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_48_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_42_6908.jpg', 2), ('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_35_5202.jpg', 2), ('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_30_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_24_5887.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb42a5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb42a5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb42a5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:36:02.342237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_54_5884.jpg', 2), ('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_48_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_42_6908.jpg', 2), ('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_35_5202.jpg', 2), ('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_30_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/01/35/image_18032025_01_35_24_5887.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90692f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90692f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90692f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:36:31.886838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_53_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_48_5708.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_42_6760.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_35_5905.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_29_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_23_5843.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f975f7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f975f7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f975f7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:37:02.394600
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_53_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_48_5708.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_42_6760.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_35_5905.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_29_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_23_5843.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87065f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87065f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87065f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:37:31.985583
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/37/image_18032025_01_37_24_6610.jpg', 2), ('/home/nano/Desktop/images/18032025/01/37/image_18032025_01_37_17_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/01/37/image_18032025_01_37_11_5690.jpg', 2), ('/home/nano/Desktop/images/18032025/01/37/image_18032025_01_37_06_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_59_5690.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_53_5852.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95838f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95838f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95838f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:38:02.540435
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/37/image_18032025_01_37_24_6610.jpg', 2), ('/home/nano/Desktop/images/18032025/01/37/image_18032025_01_37_17_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/01/37/image_18032025_01_37_11_5690.jpg', 2), ('/home/nano/Desktop/images/18032025/01/37/image_18032025_01_37_06_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_59_5690.jpg', 2), ('/home/nano/Desktop/images/18032025/01/36/image_18032025_01_36_53_5852.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e300f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e300f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e300f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:38:32.111555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_53_5929.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_47_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_41_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_36_6695.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_29_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/01/37/image_18032025_01_37_29_5593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f859c6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f859c6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f859c6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:39:02.791366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_53_5929.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_47_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_41_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_36_6695.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_29_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/01/37/image_18032025_01_37_29_5593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae514f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae514f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae514f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:39:32.189754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/39/image_18032025_01_39_53_5727.jpg', 2), ('/home/nano/Desktop/images/18032025/01/39/image_18032025_01_39_35_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/01/39/image_18032025_01_39_23_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/01/39/image_18032025_01_39_17_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_59_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_53_5929.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0f7bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0f7bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0f7bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:40:02.564200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/39/image_18032025_01_39_53_5727.jpg', 2), ('/home/nano/Desktop/images/18032025/01/39/image_18032025_01_39_35_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/01/39/image_18032025_01_39_23_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/01/39/image_18032025_01_39_17_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_59_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/01/38/image_18032025_01_38_53_5929.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8496f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8496f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8496f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:40:32.327139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_53_5736.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_41_5857.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_36_6720.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_18_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_05_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/01/39/image_18032025_01_39_59_5830.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa626df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa626df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa626df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:41:02.733395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/41/image_18032025_01_41_06_5753.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_53_5736.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_41_5857.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_36_6720.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_18_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_05_5856.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f874d6eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f874d6eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f874d6eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:41:32.403669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/41/image_18032025_01_41_30_6704.jpg', 2), ('/home/nano/Desktop/images/18032025/01/41/image_18032025_01_41_11_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/01/41/image_18032025_01_41_06_5753.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_41_00_6827.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_53_5736.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_41_5857.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7adcdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7adcdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7adcdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:42:02.930347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/41/image_18032025_01_41_30_6704.jpg', 2), ('/home/nano/Desktop/images/18032025/01/41/image_18032025_01_41_11_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/01/41/image_18032025_01_41_06_5753.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_41_00_6827.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_53_5736.jpg', 2), ('/home/nano/Desktop/images/18032025/01/40/image_18032025_01_40_41_5857.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3604eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3604eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3604eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:42:32.499227
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_54_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_47_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_42_6625.jpg', 2), ('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_35_5674.jpg', 2), ('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_29_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_24_6659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa752ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa752ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa752ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:43:02.943308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_54_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_47_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_42_6625.jpg', 2), ('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_35_5674.jpg', 2), ('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_29_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/01/42/image_18032025_01_42_24_6659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f948ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f948ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f948ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:43:32.614835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_53_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_48_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_41_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_35_5608.jpg', 2), ('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_30_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_23_5642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f795c1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f795c1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f795c1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:44:03.372839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_53_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_48_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_41_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_35_5608.jpg', 2), ('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_30_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/01/43/image_18032025_01_43_23_5642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa24c3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa24c3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa24c3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:44:32.724721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_53_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_47_5698.jpg', 2), ('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_42_6725.jpg', 2), ('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_35_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_29_5724.jpg', 2), ('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_23_5674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d220f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d220f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d220f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:45:02.209157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_53_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_47_5698.jpg', 2), ('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_42_6725.jpg', 2), ('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_35_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_29_5724.jpg', 2), ('/home/nano/Desktop/images/18032025/01/44/image_18032025_01_44_23_5674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:45:31.813338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_53_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_48_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_41_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_35_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_30_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_23_5610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f1e9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f1e9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f1e9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:46:02.359210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_53_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_48_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_41_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_35_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_30_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/01/45/image_18032025_01_45_23_5610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa04a5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa04a5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa04a5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:46:31.942815
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_53_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_47_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_41_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_36_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_30_6778.jpg', 2), ('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_23_5771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faccb7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faccb7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faccb7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:47:02.445425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_53_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_47_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_41_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_36_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_30_6778.jpg', 2), ('/home/nano/Desktop/images/18032025/01/46/image_18032025_01_46_23_5771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d285eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d285eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d285eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:47:32.021952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_53_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_48_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_42_6800.jpg', 2), ('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_35_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_29_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_23_5768.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb637cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb637cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb637cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:48:02.541483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_53_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_48_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_42_6800.jpg', 2), ('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_35_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_29_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/01/47/image_18032025_01_47_23_5768.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93639f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93639f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93639f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:48:32.204440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_54_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_47_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_41_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_36_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_29_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_23_6636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd9ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd9ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd9ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:49:02.852009
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_54_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_47_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_41_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_36_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_29_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/01/48/image_18032025_01_48_23_6636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97c32f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97c32f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97c32f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:49:32.303652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_54_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_48_6696.jpg', 2), ('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_41_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_35_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_30_6672.jpg', 2), ('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_23_5901.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd93eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd93eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd93eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:50:02.849472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_54_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_48_6696.jpg', 2), ('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_41_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_35_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_30_6672.jpg', 2), ('/home/nano/Desktop/images/18032025/01/49/image_18032025_01_49_23_5901.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cb5df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cb5df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cb5df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:50:32.420864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_53_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_48_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_35_5714.jpg', 2), ('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_29_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_23_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_18_5864.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0a34f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0a34f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0a34f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:51:02.944683
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_53_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_48_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_35_5714.jpg', 2), ('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_29_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_23_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/01/50/image_18032025_01_50_18_5864.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7725ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7725ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7725ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:51:32.544503
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_54_6772.jpg', 2), ('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_47_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_41_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_35_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_30_6005.jpg', 2), ('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_24_5923.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf6f4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf6f4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf6f4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:52:03.065756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_05_5917.jpg', 2), ('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_54_6772.jpg', 2), ('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_47_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_41_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_35_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/01/51/image_18032025_01_51_30_6005.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:52:32.648214
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_54_6709.jpg', 2), ('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_47_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_35_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_30_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_24_6797.jpg', 2), ('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_17_5755.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f54f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f54f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f54f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:53:02.195625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_54_6709.jpg', 2), ('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_47_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_35_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_30_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_24_6797.jpg', 2), ('/home/nano/Desktop/images/18032025/01/52/image_18032025_01_52_17_5755.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac489f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac489f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac489f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:53:31.748258
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_53_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_47_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_42_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_35_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_30_6660.jpg', 2), ('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_23_5677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f020f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f020f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f020f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:54:02.581718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_53_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_47_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_42_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_35_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_30_6660.jpg', 2), ('/home/nano/Desktop/images/18032025/01/53/image_18032025_01_53_23_5677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cb33f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cb33f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cb33f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:54:31.858618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_54_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_47_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_41_5602.jpg', 2), ('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_36_6617.jpg', 2), ('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_29_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_23_5618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa072f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa072f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa072f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:55:02.388625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_54_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_47_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_41_5602.jpg', 2), ('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_36_6617.jpg', 2), ('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_29_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/01/54/image_18032025_01_54_23_5618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d21f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d21f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d21f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:55:31.968228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_54_6818.jpg', 2), ('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_47_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_41_5906.jpg', 2), ('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_35_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_29_5674.jpg', 2), ('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_24_6627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8fd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8fd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8fd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:56:02.356690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_54_6818.jpg', 2), ('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_47_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_41_5906.jpg', 2), ('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_35_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_29_5674.jpg', 2), ('/home/nano/Desktop/images/18032025/01/55/image_18032025_01_55_24_6627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3faeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3faeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e3faeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:56:32.090978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_53_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_47_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_42_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_36_6797.jpg', 2), ('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_29_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_23_5827.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f864a4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f864a4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f864a4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:57:02.400724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_53_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_47_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_42_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_36_6797.jpg', 2), ('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_29_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/01/56/image_18032025_01_56_23_5827.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faded6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faded6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faded6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:57:32.198156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_53_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_47_5961.jpg', 2), ('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_41_5944.jpg', 2), ('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_35_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_30_6806.jpg', 2), ('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_23_5819.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec17eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec17eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ec17eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:59:03.300049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/58/image_18032025_01_58_06_6760.jpg', 2), ('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_53_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_47_5961.jpg', 2), ('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_41_5944.jpg', 2), ('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_35_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/01/57/image_18032025_01_57_30_6806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78180f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78180f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78180f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 01:59:32.550789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_53_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_47_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_41_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_35_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_30_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_23_5669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c95bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c95bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c95bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:00:02.990073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_53_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_47_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_41_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_35_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_30_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/01/59/image_18032025_01_59_23_5669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99802f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99802f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99802f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:00:32.650286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_53_5799.jpg', 2), ('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_42_6873.jpg', 2), ('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_35_5896.jpg', 2), ('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_29_6010.jpg', 2), ('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_23_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_06_6982.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3ba8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3ba8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3ba8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:01:01.974616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_53_5799.jpg', 2), ('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_42_6873.jpg', 2), ('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_35_5896.jpg', 2), ('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_29_6010.jpg', 2), ('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_23_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/02/00/image_18032025_02_00_06_6982.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faae88f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faae88f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faae88f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:01:31.758200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_54_6692.jpg', 2), ('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_47_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_41_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_35_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_30_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_23_5708.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99af0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99af0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99af0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:02:02.318795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_54_6692.jpg', 2), ('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_47_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_41_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_35_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_30_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/02/01/image_18032025_02_01_23_5708.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac6bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac6bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ac6bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:02:31.865594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_53_5807.jpg', 2), ('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_47_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_41_5963.jpg', 2), ('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_35_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_30_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_24_6760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4caef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4caef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4caef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:03:02.318028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_53_5807.jpg', 2), ('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_47_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_41_5963.jpg', 2), ('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_35_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_30_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/02/02/image_18032025_02_02_24_6760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95da7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95da7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95da7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:03:31.965132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_53_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_47_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_41_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_35_5716.jpg', 2), ('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_30_6793.jpg', 2), ('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_23_5789.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b498f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b498f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b498f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:04:02.770682
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_53_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_47_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_41_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_35_5716.jpg', 2), ('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_30_6793.jpg', 2), ('/home/nano/Desktop/images/18032025/02/03/image_18032025_02_03_23_5789.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0099f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0099f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0099f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:04:32.106642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_53_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_47_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_42_6033.jpg', 2), ('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_36_6727.jpg', 2), ('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_29_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_23_5733.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76e02f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76e02f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76e02f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:05:02.497008
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_53_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_47_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_42_6033.jpg', 2), ('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_36_6727.jpg', 2), ('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_29_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/02/04/image_18032025_02_04_23_5733.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93a47f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93a47f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93a47f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:05:32.187929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_53_5713.jpg', 2), ('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_47_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_41_5925.jpg', 2), ('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_36_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_29_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_24_5814.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6dfff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6dfff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6dfff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:06:02.657564
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_53_5713.jpg', 2), ('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_47_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_41_5925.jpg', 2), ('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_36_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_29_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/02/05/image_18032025_02_05_24_5814.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83469f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83469f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83469f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:06:32.297430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_54_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_48_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_42_6757.jpg', 2), ('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_35_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_29_5936.jpg', 2), ('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_23_5882.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2092f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2092f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2092f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:07:02.906609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_54_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_48_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_42_6757.jpg', 2), ('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_35_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_29_5936.jpg', 2), ('/home/nano/Desktop/images/18032025/02/06/image_18032025_02_06_23_5882.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99b7df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99b7df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99b7df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:07:32.403788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_53_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_48_6000.jpg', 2), ('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_42_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_36_6901.jpg', 2), ('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_29_5051.jpg', 2), ('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_24_6933.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f954f8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f954f8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f954f8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:08:02.836380
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_53_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_48_6000.jpg', 2), ('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_42_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_36_6901.jpg', 2), ('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_29_5051.jpg', 2), ('/home/nano/Desktop/images/18032025/02/07/image_18032025_02_07_24_6933.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5a01f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5a01f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5a01f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:08:32.529313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_53_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_41_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_35_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_23_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_17_5774.jpg', 2), ('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_11_5760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a792f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a792f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a792f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:09:03.031394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_53_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_41_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_35_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_23_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_17_5774.jpg', 2), ('/home/nano/Desktop/images/18032025/02/08/image_18032025_02_08_11_5760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab36af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab36af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab36af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:09:32.621838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_54_6681.jpg', 2), ('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_47_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_41_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_36_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_29_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_24_6645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94a31f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94a31f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94a31f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:10:03.157720
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_54_6681.jpg', 2), ('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_47_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_41_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_36_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_29_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/02/09/image_18032025_02_09_24_6645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9b88f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9b88f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9b88f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:10:32.733101
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_53_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_48_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_41_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_35_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_30_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_23_5640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f87f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f87f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92f87f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:11:02.241858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_53_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_48_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_41_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_35_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_30_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/02/10/image_18032025_02_10_23_5640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f949edf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f949edf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f949edf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:11:31.839923
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_53_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_47_5771.jpg', 2), ('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_42_6724.jpg', 2), ('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_35_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_29_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_23_5632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3f76eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3f76eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3f76eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:12:02.395978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_53_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_47_5771.jpg', 2), ('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_42_6724.jpg', 2), ('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_35_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_29_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/02/11/image_18032025_02_11_23_5632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f992d3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f992d3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f992d3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:12:31.942154
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_53_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_47_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_42_6793.jpg', 2), ('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_35_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_29_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_23_5825.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ded0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ded0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ded0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:13:02.439935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_53_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_47_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_42_6793.jpg', 2), ('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_35_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_29_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/02/12/image_18032025_02_12_23_5825.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa48d6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa48d6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa48d6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:13:32.060314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_53_6615.jpg', 2), ('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_47_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_41_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_36_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_29_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_23_5658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fa6cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fa6cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fa6cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:14:02.852653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_53_6615.jpg', 2), ('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_47_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_41_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_36_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_29_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/02/13/image_18032025_02_13_23_5658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab4df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab4df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab4df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:14:32.222296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_54_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_47_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_42_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_35_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_29_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_24_6630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9615df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9615df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9615df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:15:02.741616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_54_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_47_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_42_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_35_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_29_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/02/14/image_18032025_02_14_24_6630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9edeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9edeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d9edeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:15:32.320775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_53_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_48_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_35_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_30_6701.jpg', 2), ('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_23_5651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8552f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8552f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8552f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:16:02.744454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_53_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_48_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_35_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_30_6701.jpg', 2), ('/home/nano/Desktop/images/18032025/02/15/image_18032025_02_15_23_5651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0cb6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0cb6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0cb6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:16:32.449284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_53_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_47_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_42_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_35_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_29_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_24_6654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f964a0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f964a0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f964a0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:17:02.956967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_53_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_47_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_42_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_35_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_29_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/02/16/image_18032025_02_16_24_6654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f2cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f2cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76f2cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:17:32.573591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_54_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_47_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_42_6671.jpg', 2), ('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_35_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_29_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_24_6658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7728f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7728f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7728f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:18:03.112819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_54_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_47_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_42_6671.jpg', 2), ('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_35_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_29_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/02/17/image_18032025_02_17_24_6658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb13a9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb13a9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb13a9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:18:32.767762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_53_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_47_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_41_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_35_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_30_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_23_5600.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f77f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f77f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f77f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:19:02.552347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_53_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_47_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_41_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_35_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_30_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/02/18/image_18032025_02_18_23_5600.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d83af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d83af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d83af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:19:31.854977
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_54_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_47_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_41_5604.jpg', 2), ('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_36_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_29_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_23_5649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82ec4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82ec4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82ec4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:20:02.315722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_54_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_47_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_41_5604.jpg', 2), ('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_36_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_29_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/02/19/image_18032025_02_19_23_5649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd69f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd69f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd69f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:20:31.949067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_53_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_47_5682.jpg', 2), ('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_42_6689.jpg', 2), ('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_35_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_29_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_24_6641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91700eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91700eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91700eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:21:02.478957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_06_6792.jpg', 2), ('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_53_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_47_5682.jpg', 2), ('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_42_6689.jpg', 2), ('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_35_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/02/20/image_18032025_02_20_29_5627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d9df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d9df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d9df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:21:32.086652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_53_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_47_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_41_5795.jpg', 2), ('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_35_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_30_6764.jpg', 2), ('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_23_5767.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1a0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1a0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c1a0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:22:02.578111
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_53_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_47_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_41_5795.jpg', 2), ('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_35_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_30_6764.jpg', 2), ('/home/nano/Desktop/images/18032025/02/21/image_18032025_02_21_23_5767.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab05df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab05df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab05df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:22:32.187590
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_53_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_48_6622.jpg', 2), ('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_35_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_30_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_24_6776.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9904af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9904af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9904af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:23:02.720946
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_53_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_48_6622.jpg', 2), ('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_35_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_30_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/02/22/image_18032025_02_22_24_6776.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa57e9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa57e9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa57e9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:23:32.281356
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_53_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_47_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_41_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_36_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_29_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_23_5620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e165f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e165f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e165f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:24:02.994978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_53_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_47_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_41_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_36_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_29_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/02/23/image_18032025_02_23_23_5620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a3faf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a3faf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a3faf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:24:32.414867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_53_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_48_6774.jpg', 2), ('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_41_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_35_5708.jpg', 2), ('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_29_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_24_6706.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb2cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb2cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8eb2cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:25:02.846110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_53_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_48_6774.jpg', 2), ('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_41_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_35_5708.jpg', 2), ('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_29_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/02/24/image_18032025_02_24_24_6706.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89708f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89708f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89708f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:25:32.527346
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_54_5777.jpg', 2), ('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_48_6919.jpg', 2), ('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_41_5098.jpg', 2), ('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_36_6202.jpg', 2), ('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_30_5859.jpg', 2), ('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_24_6872.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaeaff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaeaff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaeaff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:26:02.863420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_54_5777.jpg', 2), ('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_48_6919.jpg', 2), ('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_41_5098.jpg', 2), ('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_36_6202.jpg', 2), ('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_30_5859.jpg', 2), ('/home/nano/Desktop/images/18032025/02/25/image_18032025_02_25_24_6872.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ca5bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ca5bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ca5bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:26:32.624556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_53_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_48_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_42_6828.jpg', 2), ('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_35_5877.jpg', 2), ('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_29_6224.jpg', 2), ('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_23_5879.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e697f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e697f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e697f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:27:03.179285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_05_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_53_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_48_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_42_6828.jpg', 2), ('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_35_5877.jpg', 2), ('/home/nano/Desktop/images/18032025/02/26/image_18032025_02_26_29_6224.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77993f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77993f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77993f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:27:32.710954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_47_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_42_6683.jpg', 2), ('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_35_5815.jpg', 2), ('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_29_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_23_5871.jpg', 2), ('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_17_6052.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab61ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab61ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab61ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:28:02.166816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_47_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_42_6683.jpg', 2), ('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_35_5815.jpg', 2), ('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_29_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_23_5871.jpg', 2), ('/home/nano/Desktop/images/18032025/02/27/image_18032025_02_27_17_6052.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e983f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e983f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e983f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:28:31.804840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_54_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_42_5979.jpg', 2), ('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_36_6666.jpg', 2), ('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_29_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_24_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_17_5648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94fd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94fd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94fd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:29:02.528342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_54_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_42_5979.jpg', 2), ('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_36_6666.jpg', 2), ('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_29_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_24_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/02/28/image_18032025_02_28_17_5648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d13ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d13ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d13ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:29:31.920037
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_53_5884.jpg', 2), ('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_48_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_41_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_29_5953.jpg', 2), ('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_24_5999.jpg', 2), ('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_12_6119.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5f4feb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5f4feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5f4feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:30:02.466461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_53_5884.jpg', 2), ('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_48_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_41_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_29_5953.jpg', 2), ('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_24_5999.jpg', 2), ('/home/nano/Desktop/images/18032025/02/29/image_18032025_02_29_12_6119.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f950cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f950cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f950cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:30:32.103931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_42_6904.jpg', 2), ('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_35_5979.jpg', 2), ('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_23_5946.jpg', 2), ('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_17_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_11_5930.jpg', 2), ('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_05_5882.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facfcff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facfcff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facfcff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:31:02.584832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_42_6904.jpg', 2), ('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_35_5979.jpg', 2), ('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_23_5946.jpg', 2), ('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_17_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_11_5930.jpg', 2), ('/home/nano/Desktop/images/18032025/02/30/image_18032025_02_30_05_5882.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0b89f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0b89f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0b89f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:31:32.194498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_54_6927.jpg', 2), ('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_41_5882.jpg', 2), ('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_35_5932.jpg', 2), ('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_29_5899.jpg', 2), ('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_23_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_17_5936.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c0baeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c0baeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c0baeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:32:02.786040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_54_6927.jpg', 2), ('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_41_5882.jpg', 2), ('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_35_5932.jpg', 2), ('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_29_5899.jpg', 2), ('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_23_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/02/31/image_18032025_02_31_17_5936.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84b29f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84b29f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84b29f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:32:32.293450
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_47_5991.jpg', 2), ('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_41_5909.jpg', 2), ('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_35_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_29_5988.jpg', 2), ('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_23_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_17_5834.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c7af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c7af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c7af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:33:02.890035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_47_5991.jpg', 2), ('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_41_5909.jpg', 2), ('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_35_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_29_5988.jpg', 2), ('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_23_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/02/32/image_18032025_02_32_17_5834.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90db6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90db6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90db6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:33:32.424452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_54_6950.jpg', 2), ('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_47_5965.jpg', 2), ('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_41_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_35_5803.jpg', 2), ('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_29_5957.jpg', 2), ('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_23_5783.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae8e8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae8e8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae8e8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:34:03.200994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_54_6950.jpg', 2), ('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_47_5965.jpg', 2), ('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_41_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_35_5803.jpg', 2), ('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_29_5957.jpg', 2), ('/home/nano/Desktop/images/18032025/02/33/image_18032025_02_33_23_5783.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91f8ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91f8ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91f8ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:34:32.535834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_53_5930.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_48_5801.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_42_6674.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_35_5742.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_23_6027.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_17_5750.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d50af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d50af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d50af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:35:03.117536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_53_5930.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_48_5801.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_42_6674.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_35_5742.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_23_6027.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_17_5750.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d046f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d046f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d046f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:35:32.635985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_47_5842.jpg', 2), ('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_36_6765.jpg', 2), ('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_29_6023.jpg', 2), ('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_23_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_59_6027.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_53_5930.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f872e0eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f872e0eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f872e0eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:36:03.035996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_47_5842.jpg', 2), ('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_36_6765.jpg', 2), ('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_29_6023.jpg', 2), ('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_23_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_59_6027.jpg', 2), ('/home/nano/Desktop/images/18032025/02/34/image_18032025_02_34_53_5930.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ecf5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ecf5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ecf5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:36:32.760870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/36/image_18032025_02_36_47_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/02/36/image_18032025_02_36_30_6923.jpg', 2), ('/home/nano/Desktop/images/18032025/02/36/image_18032025_02_36_23_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/02/36/image_18032025_02_36_05_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_59_5988.jpg', 2), ('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_47_5842.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ea03f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ea03f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ea03f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:37:02.370841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/36/image_18032025_02_36_47_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/02/36/image_18032025_02_36_30_6923.jpg', 2), ('/home/nano/Desktop/images/18032025/02/36/image_18032025_02_36_23_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/02/36/image_18032025_02_36_05_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_59_5988.jpg', 2), ('/home/nano/Desktop/images/18032025/02/35/image_18032025_02_35_47_5842.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91593f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91593f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91593f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:37:31.954796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_47_5702.jpg', 2), ('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_41_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_35_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_29_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_24_6759.jpg', 2), ('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_17_6051.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef90f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef90f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ef90f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:38:02.333424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_47_5702.jpg', 2), ('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_41_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_35_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_29_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_24_6759.jpg', 2), ('/home/nano/Desktop/images/18032025/02/37/image_18032025_02_37_17_6051.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8caf8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8caf8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8caf8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:38:32.093901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_53_5826.jpg', 2), ('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_47_5983.jpg', 2), ('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_41_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_36_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_30_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_24_5992.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab2b4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab2b4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab2b4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:39:02.899653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_53_5826.jpg', 2), ('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_47_5983.jpg', 2), ('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_41_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_36_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_30_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/02/38/image_18032025_02_38_24_5992.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f889c9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f889c9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f889c9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:39:32.185231
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_53_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_47_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_41_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_29_5944.jpg', 2), ('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_24_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_11_5932.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab3e4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab3e4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab3e4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:40:02.690233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_53_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_47_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_41_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_29_5944.jpg', 2), ('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_24_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/02/39/image_18032025_02_39_11_5932.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fade91f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fade91f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fade91f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:40:32.336761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_53_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_48_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_42_6739.jpg', 2), ('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_35_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_29_5902.jpg', 2), ('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_23_5950.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a6daf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a6daf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a6daf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:41:02.836661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_53_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_48_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_42_6739.jpg', 2), ('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_35_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_29_5902.jpg', 2), ('/home/nano/Desktop/images/18032025/02/40/image_18032025_02_40_23_5950.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8111ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8111ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8111ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:41:32.442055
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_54_5947.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_48_6957.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_41_5037.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_36_6919.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_29_5087.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_24_5987.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88947f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88947f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88947f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:42:02.909400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_54_5947.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_48_6957.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_41_5037.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_36_6919.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_29_5087.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_24_5987.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9281af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9281af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9281af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:42:32.572189
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/42/image_18032025_02_42_53_5777.jpg', 2), ('/home/nano/Desktop/images/18032025/02/42/image_18032025_02_42_36_6784.jpg', 2), ('/home/nano/Desktop/images/18032025/02/42/image_18032025_02_42_17_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/02/42/image_18032025_02_42_11_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_42_00_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_54_5947.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d8c8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d8c8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d8c8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:43:02.982367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/42/image_18032025_02_42_53_5777.jpg', 2), ('/home/nano/Desktop/images/18032025/02/42/image_18032025_02_42_36_6784.jpg', 2), ('/home/nano/Desktop/images/18032025/02/42/image_18032025_02_42_17_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/02/42/image_18032025_02_42_11_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_42_00_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/02/41/image_18032025_02_41_54_5947.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d648f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d648f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d648f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:43:32.670722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_47_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_41_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_29_5774.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_24_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_18_6752.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_11_5957.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cdd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cdd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cdd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:44:02.215800
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_47_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_41_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_29_5774.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_24_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_18_6752.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_11_5957.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7da41f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7da41f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7da41f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:44:31.814613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/44/image_18032025_02_44_41_5989.jpg', 2), ('/home/nano/Desktop/images/18032025/02/44/image_18032025_02_44_35_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/02/44/image_18032025_02_44_30_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/02/44/image_18032025_02_44_24_5937.jpg', 2), ('/home/nano/Desktop/images/18032025/02/44/image_18032025_02_44_12_6870.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_59_5893.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae577f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae577f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae577f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:45:02.333264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/44/image_18032025_02_44_41_5989.jpg', 2), ('/home/nano/Desktop/images/18032025/02/44/image_18032025_02_44_35_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/02/44/image_18032025_02_44_30_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/02/44/image_18032025_02_44_24_5937.jpg', 2), ('/home/nano/Desktop/images/18032025/02/44/image_18032025_02_44_12_6870.jpg', 2), ('/home/nano/Desktop/images/18032025/02/43/image_18032025_02_43_59_5893.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f963f0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f963f0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f963f0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:45:31.933783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_47_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_41_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_35_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_24_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_18_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_05_5985.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77509f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77509f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77509f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:46:02.482288
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_47_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_41_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_35_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_24_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_18_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/02/45/image_18032025_02_45_05_5985.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a13aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a13aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a13aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:46:32.041333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_53_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_47_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_42_6658.jpg', 2), ('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_35_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_29_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_24_5766.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f950fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f950fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f950fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:47:02.548545
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_53_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_47_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_42_6658.jpg', 2), ('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_35_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_29_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/02/46/image_18032025_02_46_24_5766.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9feaeeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9feaeeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9feaeeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:47:32.204142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_53_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_48_6617.jpg', 2), ('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_41_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_35_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_30_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_23_5640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb47bff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb47bff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb47bff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:48:02.608746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_53_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_48_6617.jpg', 2), ('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_41_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_35_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_30_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/02/47/image_18032025_02_47_23_5640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c69df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c69df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c69df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:48:32.330566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_53_5704.jpg', 2), ('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_47_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_41_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_36_6661.jpg', 2), ('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_29_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_23_6642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97412eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97412eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97412eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:49:03.137211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_53_5704.jpg', 2), ('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_47_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_41_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_36_6661.jpg', 2), ('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_29_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/02/48/image_18032025_02_48_23_6642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a51eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a51eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85a51eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:49:32.462411
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_53_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_48_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_42_5991.jpg', 2), ('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_36_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_30_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_24_6815.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee75eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee75eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee75eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:50:02.922813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_53_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_48_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_42_5991.jpg', 2), ('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_36_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_30_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/02/49/image_18032025_02_49_24_6815.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f992d8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f992d8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f992d8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:50:32.561464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_53_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_47_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_42_6615.jpg', 2), ('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_35_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_30_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_23_5618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b357f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b357f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b357f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:51:03.045581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_53_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_47_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_42_6615.jpg', 2), ('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_35_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_30_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/02/50/image_18032025_02_50_23_5618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e03bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e03bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e03bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:51:32.683809
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_53_5897.jpg', 2), ('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_41_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_36_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_29_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_23_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_18_6640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b64f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b64f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94b64f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:52:02.216994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_53_5897.jpg', 2), ('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_41_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_36_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_29_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_23_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/02/51/image_18032025_02_51_18_6640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf8dff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf8dff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf8dff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:52:31.809362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_48_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_41_5610.jpg', 2), ('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_35_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_30_6619.jpg', 2), ('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_23_5647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ad56f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ad56f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ad56f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:53:02.312295
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_48_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_41_5610.jpg', 2), ('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_35_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_30_6619.jpg', 2), ('/home/nano/Desktop/images/18032025/02/52/image_18032025_02_52_23_5647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f795c4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f795c4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f795c4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:53:32.017137
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_53_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_48_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_41_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_36_6762.jpg', 2), ('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_29_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_23_5811.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab9af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab9af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab9af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:54:02.741414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_53_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_48_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_41_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_36_6762.jpg', 2), ('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_29_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/02/53/image_18032025_02_53_23_5811.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2ce3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2ce3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2ce3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:54:32.145705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_53_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_47_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_42_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_36_6917.jpg', 2), ('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_29_5142.jpg', 2), ('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_24_5934.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadacff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadacff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadacff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:55:02.629429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_53_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_47_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_42_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_36_6917.jpg', 2), ('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_29_5142.jpg', 2), ('/home/nano/Desktop/images/18032025/02/54/image_18032025_02_54_24_5934.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f880f3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f880f3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f880f3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:55:32.260795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_53_5848.jpg', 2), ('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_47_5800.jpg', 2), ('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_41_5993.jpg', 2), ('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_35_5986.jpg', 2), ('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_29_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_24_6771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f953d8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f953d8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f953d8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:56:02.708395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_53_5848.jpg', 2), ('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_47_5800.jpg', 2), ('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_41_5993.jpg', 2), ('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_35_5986.jpg', 2), ('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_29_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/02/55/image_18032025_02_55_24_6771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fad6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fad6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fad6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:56:32.360650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_53_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_48_6663.jpg', 2), ('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_41_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_35_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_30_6661.jpg', 2), ('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_23_5965.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94a14f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94a14f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94a14f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:57:02.862952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_53_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_48_6663.jpg', 2), ('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_41_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_35_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_30_6661.jpg', 2), ('/home/nano/Desktop/images/18032025/02/56/image_18032025_02_56_23_5965.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab7ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab7ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ab7ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:57:32.470932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_54_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_47_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_41_6620.jpg', 2), ('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_35_5678.jpg', 2), ('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_29_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_24_6622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3048f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3048f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3048f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:58:02.960337
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_54_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_47_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_41_6620.jpg', 2), ('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_35_5678.jpg', 2), ('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_29_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/02/57/image_18032025_02_57_24_6622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90762f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90762f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90762f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:59:02.325761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/58/image_18032025_02_58_53_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/02/58/image_18032025_02_58_48_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/02/58/image_18032025_02_58_41_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/02/58/image_18032025_02_58_35_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/02/58/image_18032025_02_58_30_6623.jpg', 2), ('/home/nano/Desktop/images/18032025/02/58/image_18032025_02_58_23_5684.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa28bef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa28bef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa28bef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 02:59:31.969091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_54_5768.jpg', 2), ('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_48_6806.jpg', 2), ('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_41_5717.jpg', 2), ('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_35_5845.jpg', 2), ('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_29_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_24_6702.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facb01f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facb01f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facb01f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:00:02.529011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_54_5768.jpg', 2), ('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_48_6806.jpg', 2), ('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_41_5717.jpg', 2), ('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_35_5845.jpg', 2), ('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_29_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/02/59/image_18032025_02_59_24_6702.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f84df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f84df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f84df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:00:32.114092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_53_5684.jpg', 2), ('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_48_6781.jpg', 2), ('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_41_5719.jpg', 2), ('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_35_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_29_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_24_5752.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9346ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9346ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9346ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:01:02.503285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_53_5684.jpg', 2), ('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_48_6781.jpg', 2), ('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_41_5719.jpg', 2), ('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_35_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_29_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/03/00/image_18032025_03_00_24_5752.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f769def28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f769def28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f769def28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:01:32.208733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_53_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_48_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_41_5684.jpg', 2), ('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_35_5605.jpg', 2), ('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_30_6633.jpg', 2), ('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_23_5668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafd6ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafd6ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafd6ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:02:02.630763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_53_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_48_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_41_5684.jpg', 2), ('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_35_5605.jpg', 2), ('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_30_6633.jpg', 2), ('/home/nano/Desktop/images/18032025/03/01/image_18032025_03_01_23_5668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b77ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b77ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b77ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:02:32.311754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_53_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_48_6614.jpg', 2), ('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_41_5666.jpg', 2), ('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_35_6017.jpg', 2), ('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_29_5882.jpg', 2), ('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_23_5622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b68aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b68aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b68aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:03:02.725608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_53_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_48_6614.jpg', 2), ('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_41_5666.jpg', 2), ('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_35_6017.jpg', 2), ('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_29_5882.jpg', 2), ('/home/nano/Desktop/images/18032025/03/02/image_18032025_03_02_23_5622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4f2ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4f2ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4f2ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:03:32.450004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_54_6798.jpg', 2), ('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_47_5710.jpg', 2), ('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_41_5731.jpg', 2), ('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_35_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_30_6750.jpg', 2), ('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_23_5806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c92ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c92ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c92ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:04:02.909177
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_54_6798.jpg', 2), ('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_47_5710.jpg', 2), ('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_41_5731.jpg', 2), ('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_35_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_30_6750.jpg', 2), ('/home/nano/Desktop/images/18032025/03/03/image_18032025_03_03_23_5806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9478ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9478ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9478ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:04:32.587570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_53_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_47_5932.jpg', 2), ('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_41_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_35_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_30_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_24_6801.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa406df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa406df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa406df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:05:03.018862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_53_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_47_5932.jpg', 2), ('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_41_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_35_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_30_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/03/04/image_18032025_03_04_24_6801.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f2c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f2c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f2c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:05:32.681338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_47_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_41_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_36_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_30_6913.jpg', 2), ('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_23_5962.jpg', 2), ('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_17_5757.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a871f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a871f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a871f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:06:02.088167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_47_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_41_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_36_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_30_6913.jpg', 2), ('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_23_5962.jpg', 2), ('/home/nano/Desktop/images/18032025/03/05/image_18032025_03_05_17_5757.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88ef1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88ef1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88ef1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:06:31.787608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_47_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_41_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_36_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_29_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_23_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_18_6636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b1faf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b1faf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b1faf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:07:02.347207
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_05_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_47_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_41_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_36_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_29_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/06/image_18032025_03_06_23_5638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf442eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf442eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf442eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:07:31.886253
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_53_5859.jpg', 2), ('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_47_5764.jpg', 2), ('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_42_6665.jpg', 2), ('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_35_5722.jpg', 2), ('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_29_5964.jpg', 2), ('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_17_5722.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f856c9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f856c9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f856c9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:08:02.344832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_53_5859.jpg', 2), ('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_47_5764.jpg', 2), ('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_42_6665.jpg', 2), ('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_35_5722.jpg', 2), ('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_29_5964.jpg', 2), ('/home/nano/Desktop/images/18032025/03/07/image_18032025_03_07_17_5722.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b784f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b784f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b784f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:08:32.016655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_54_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_47_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_41_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_36_6661.jpg', 2), ('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_29_5675.jpg', 2), ('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_23_5635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5bf0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5bf0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5bf0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:09:02.688866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_54_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_47_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_41_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_36_6661.jpg', 2), ('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_29_5675.jpg', 2), ('/home/nano/Desktop/images/18032025/03/08/image_18032025_03_08_23_5635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf9ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf9ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaf9ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:09:32.118609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_54_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_48_6796.jpg', 2), ('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_41_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_35_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_29_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_24_6635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2f8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2f8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2f8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:10:02.401362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_54_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_48_6796.jpg', 2), ('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_41_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_35_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_29_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/03/09/image_18032025_03_09_24_6635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf149f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf149f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf149f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:10:32.215080
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_54_6926.jpg', 2), ('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_47_5069.jpg', 2), ('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_42_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_36_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_30_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_24_6796.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0af8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0af8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0af8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:11:02.741792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_54_6926.jpg', 2), ('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_47_5069.jpg', 2), ('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_42_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_36_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_30_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/03/10/image_18032025_03_10_24_6796.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f941cff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f941cff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f941cff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:11:32.327550
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_53_5722.jpg', 2), ('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_47_5859.jpg', 2), ('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_41_6006.jpg', 2), ('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_35_6101.jpg', 2), ('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_29_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_23_5854.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb08eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb08eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb08eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:12:02.896915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_53_5722.jpg', 2), ('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_47_5859.jpg', 2), ('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_41_6006.jpg', 2), ('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_35_6101.jpg', 2), ('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_29_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/03/11/image_18032025_03_11_23_5854.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e70f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e70f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e70f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:12:32.442448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_53_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_47_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_41_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_35_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_30_5836.jpg', 2), ('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_24_5943.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b121f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b121f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b121f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:13:02.934845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_53_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_47_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_41_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_35_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_30_5836.jpg', 2), ('/home/nano/Desktop/images/18032025/03/12/image_18032025_03_12_24_5943.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88778f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88778f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88778f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:13:32.525119
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_54_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_47_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_41_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_36_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_29_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_23_6646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86436f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86436f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86436f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:14:03.248641
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_54_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_47_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_41_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_36_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_29_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/03/13/image_18032025_03_13_23_6646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dacbf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dacbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7dacbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:14:32.627275
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_47_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_41_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_35_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_29_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_18_5968.jpg', 2), ('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_12_6844.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89df5eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89df5eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89df5eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:15:03.102978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_47_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_41_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_35_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_29_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_18_5968.jpg', 2), ('/home/nano/Desktop/images/18032025/03/14/image_18032025_03_14_12_6844.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa56b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa56b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa56b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:15:32.725651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_53_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_47_5707.jpg', 2), ('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_42_6790.jpg', 2), ('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_35_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_29_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_24_6656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5b2ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5b2ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5b2ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:16:02.151208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_53_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_47_5707.jpg', 2), ('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_42_6790.jpg', 2), ('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_35_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_29_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/03/15/image_18032025_03_15_24_6656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f54df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f54df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f54df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:16:31.884067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_53_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_47_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_41_5702.jpg', 2), ('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_36_6713.jpg', 2), ('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_29_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_23_5750.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf134f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf134f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf134f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:17:02.303192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_53_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_47_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_41_5702.jpg', 2), ('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_36_6713.jpg', 2), ('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_29_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/03/16/image_18032025_03_16_23_5750.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b4bdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b4bdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b4bdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:17:31.971798
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_54_6037.jpg', 2), ('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_48_6725.jpg', 2), ('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_41_5799.jpg', 2), ('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_35_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_29_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_24_6045.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c03eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c03eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8c03eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:18:02.514417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_54_6037.jpg', 2), ('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_48_6725.jpg', 2), ('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_41_5799.jpg', 2), ('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_35_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_29_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/03/17/image_18032025_03_17_24_6045.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b39af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b39af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b39af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:18:32.072750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_53_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_47_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_41_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_36_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_29_5040.jpg', 2), ('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_24_6854.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa83a1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa83a1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa83a1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:19:02.672759
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_53_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_47_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_41_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_36_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_29_5040.jpg', 2), ('/home/nano/Desktop/images/18032025/03/18/image_18032025_03_18_24_6854.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7814bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7814bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7814bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:19:32.196971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_53_5978.jpg', 2), ('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_47_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_42_5715.jpg', 2), ('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_36_6835.jpg', 2), ('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_29_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_23_5986.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90786f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90786f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90786f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:20:02.679351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_53_5978.jpg', 2), ('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_47_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_42_5715.jpg', 2), ('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_36_6835.jpg', 2), ('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_29_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/03/19/image_18032025_03_19_23_5986.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c13ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c13ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c13ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:20:32.314745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_53_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_47_5906.jpg', 2), ('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_41_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_35_5842.jpg', 2), ('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_29_5814.jpg', 2), ('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_24_5754.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e88f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e88f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6e88f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:21:02.675707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_53_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_47_5906.jpg', 2), ('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_41_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_35_5842.jpg', 2), ('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_29_5814.jpg', 2), ('/home/nano/Desktop/images/18032025/03/20/image_18032025_03_20_24_5754.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9575deb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9575deb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9575deb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:21:32.414408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_54_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_48_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_42_6850.jpg', 2), ('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_35_5925.jpg', 2), ('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_29_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_23_5795.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc8ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc8ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc8ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:22:02.779298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_54_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_48_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_42_6850.jpg', 2), ('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_35_5925.jpg', 2), ('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_29_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/03/21/image_18032025_03_21_23_5795.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fca2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fca2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fca2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:22:32.539118
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_53_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_48_6619.jpg', 2), ('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_41_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_35_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_30_6618.jpg', 2), ('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_23_5827.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b287f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b287f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b287f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:23:03.127424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_53_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_48_6619.jpg', 2), ('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_41_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_35_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_30_6618.jpg', 2), ('/home/nano/Desktop/images/18032025/03/22/image_18032025_03_22_23_5827.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90e2af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90e2af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90e2af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:23:32.610333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_54_6666.jpg', 2), ('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_47_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_41_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_36_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_29_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_24_6659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa478deb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa478deb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa478deb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:24:03.332458
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_54_6666.jpg', 2), ('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_47_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_41_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_36_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_29_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/03/23/image_18032025_03_23_24_6659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98d80f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98d80f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98d80f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:24:32.729860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_53_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_48_6668.jpg', 2), ('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_41_5683.jpg', 2), ('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_35_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_30_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_23_5644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f6af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f6af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1f6af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:25:02.052206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_53_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_48_6668.jpg', 2), ('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_41_5683.jpg', 2), ('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_35_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_30_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/03/24/image_18032025_03_24_23_5644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f850f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f850f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f850f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:25:31.828781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_53_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_47_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_42_6703.jpg', 2), ('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_35_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_29_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_24_6671.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f958a4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f958a4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f958a4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:26:02.357087
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_53_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_47_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_42_6703.jpg', 2), ('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_35_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_29_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/03/25/image_18032025_03_25_24_6671.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a53af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a53af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a53af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:26:31.926351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_53_5745.jpg', 2), ('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_47_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_41_5703.jpg', 2), ('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_35_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_30_6797.jpg', 2), ('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_23_5790.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e08f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e08f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2e08f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:27:02.371150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_53_5745.jpg', 2), ('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_47_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_41_5703.jpg', 2), ('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_35_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_30_6797.jpg', 2), ('/home/nano/Desktop/images/18032025/03/26/image_18032025_03_26_23_5790.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8080af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8080af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8080af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:27:32.042752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_54_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_47_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_41_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_36_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_29_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_23_5626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa040af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa040af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa040af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:28:02.405200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_54_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_47_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_41_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_36_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_29_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/03/27/image_18032025_03_27_23_5626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98543eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98543eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98543eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:28:32.140704
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_53_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_47_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_42_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_35_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_29_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_24_6643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3916f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3916f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3916f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:29:02.871633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_53_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_47_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_42_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_35_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_29_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/03/28/image_18032025_03_28_24_6643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab6ddf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab6ddf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab6ddf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:29:32.273931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_54_6703.jpg', 2), ('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_47_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_41_5680.jpg', 2), ('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_36_6665.jpg', 2), ('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_29_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_23_5651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab4fcf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab4fcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab4fcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:30:02.753163
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_54_6703.jpg', 2), ('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_47_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_41_5680.jpg', 2), ('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_36_6665.jpg', 2), ('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_29_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/03/29/image_18032025_03_29_23_5651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9be4af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9be4af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9be4af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:30:32.361206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_53_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_47_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_41_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_35_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_29_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_23_5692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf00f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf00f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf00f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:31:02.783109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_53_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_47_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_41_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_35_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_29_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/03/30/image_18032025_03_30_23_5692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb568ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb568ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb568ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:31:32.466123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_53_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_48_6613.jpg', 2), ('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_41_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_35_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_29_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_23_5643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99be4eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99be4eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99be4eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:32:03.038578
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_53_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_48_6613.jpg', 2), ('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_41_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_35_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_29_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/03/31/image_18032025_03_31_23_5643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4d1feb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4d1feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4d1feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:32:32.559303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_54_6652.jpg', 2), ('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_47_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_41_6626.jpg', 2), ('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_35_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_29_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_24_6652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97a1feb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97a1feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97a1feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:33:02.969788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_54_6652.jpg', 2), ('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_47_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_41_6626.jpg', 2), ('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_35_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_29_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/03/32/image_18032025_03_32_24_6652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb423af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb423af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb423af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:33:32.690757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_53_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_48_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_41_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_35_5726.jpg', 2), ('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_30_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_23_5618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d4e1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d4e1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d4e1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:34:02.371590
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_53_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_48_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_41_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_35_5726.jpg', 2), ('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_30_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/03/33/image_18032025_03_33_23_5618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f699f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f699f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f699f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:34:31.783123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_53_5694.jpg', 2), ('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_48_6679.jpg', 2), ('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_41_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_35_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_30_6723.jpg', 2), ('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_23_5806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99e83f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99e83f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99e83f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:35:02.289698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_53_5694.jpg', 2), ('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_48_6679.jpg', 2), ('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_41_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_35_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_30_6723.jpg', 2), ('/home/nano/Desktop/images/18032025/03/34/image_18032025_03_34_23_5806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ffdcf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ffdcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ffdcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:35:31.912411
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_53_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_48_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_41_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_35_5680.jpg', 2), ('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_30_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_24_6681.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f299eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f299eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f299eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:36:02.400401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_53_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_48_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_41_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_35_5680.jpg', 2), ('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_30_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/03/35/image_18032025_03_35_24_6681.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0a75f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0a75f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0a75f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:36:32.047418
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_54_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_47_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_42_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_35_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_29_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_24_6664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa875cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa875cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa875cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:37:02.608110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_54_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_47_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_42_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_35_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_29_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/03/36/image_18032025_03_36_24_6664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82089eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82089eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82089eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:37:32.146939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_54_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_48_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_42_6819.jpg', 2), ('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_35_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_29_5965.jpg', 2), ('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_23_5940.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bd81f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bd81f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bd81f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:38:02.642303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_54_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_48_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_42_6819.jpg', 2), ('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_35_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_29_5965.jpg', 2), ('/home/nano/Desktop/images/18032025/03/37/image_18032025_03_37_23_5940.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9fa3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9fa3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9fa3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:38:32.242716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_53_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_48_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_41_5610.jpg', 2), ('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_35_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_30_6663.jpg', 2), ('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_23_5613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7edbdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7edbdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7edbdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:39:03.038186
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_53_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_48_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_41_5610.jpg', 2), ('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_35_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_30_6663.jpg', 2), ('/home/nano/Desktop/images/18032025/03/38/image_18032025_03_38_23_5613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3b56eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3b56eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3b56eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:39:32.345823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_53_5826.jpg', 2), ('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_47_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_41_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_36_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_29_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_23_5645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8658eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8658eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8658eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:40:02.854713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_53_5826.jpg', 2), ('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_47_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_41_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_36_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_29_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/03/39/image_18032025_03_39_23_5645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf76f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf76f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf76f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:40:32.431406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_53_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_47_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_41_5756.jpg', 2), ('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_35_5986.jpg', 2), ('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_29_5694.jpg', 2), ('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_23_5600.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aa98f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aa98f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aa98f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:41:03.031381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_53_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_47_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_41_5756.jpg', 2), ('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_35_5986.jpg', 2), ('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_29_5694.jpg', 2), ('/home/nano/Desktop/images/18032025/03/40/image_18032025_03_40_23_5600.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96a72eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96a72eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96a72eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:41:32.584616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_54_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_48_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_42_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_35_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_29_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_23_5617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93f88f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93f88f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93f88f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:42:02.916155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_54_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_48_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_42_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_35_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_29_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/03/41/image_18032025_03_41_23_5617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c5ebf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c5ebf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c5ebf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:42:32.679120
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_54_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_47_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_41_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_36_6687.jpg', 2), ('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_29_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_23_5890.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98700f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98700f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98700f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:43:02.088923
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_54_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_47_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_41_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_36_6687.jpg', 2), ('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_29_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/03/42/image_18032025_03_42_23_5890.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c541f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c541f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c541f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:43:31.777723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_53_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_48_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_41_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_35_6027.jpg', 2), ('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_29_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_24_6646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93d34f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93d34f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93d34f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:44:02.530941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_53_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_48_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_41_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_35_6027.jpg', 2), ('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_29_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/03/43/image_18032025_03_43_24_6646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9033f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9033f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9033f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:44:31.952930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_54_6895.jpg', 2), ('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_41_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_36_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_29_5601.jpg', 2), ('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_23_5742.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ab9ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ab9ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ab9ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:45:02.473371
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_54_6895.jpg', 2), ('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_41_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_36_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_29_5601.jpg', 2), ('/home/nano/Desktop/images/18032025/03/44/image_18032025_03_44_23_5742.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f968faeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f968faeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f968faeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:45:32.059198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_53_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_47_5608.jpg', 2), ('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_42_6708.jpg', 2), ('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_35_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_29_5842.jpg', 2), ('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_23_5635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f872adf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f872adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f872adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:46:02.578552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_53_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_47_5608.jpg', 2), ('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_42_6708.jpg', 2), ('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_35_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_29_5842.jpg', 2), ('/home/nano/Desktop/images/18032025/03/45/image_18032025_03_45_23_5635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb65f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb65f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fb65f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:46:32.158547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_53_5937.jpg', 2), ('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_47_5734.jpg', 2), ('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_42_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_35_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_29_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_24_6646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c231f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c231f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c231f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:47:02.736616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_53_5937.jpg', 2), ('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_47_5734.jpg', 2), ('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_42_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_35_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_29_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/03/46/image_18032025_03_46_24_6646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fdbdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fdbdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fdbdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:47:32.279334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_47_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_42_6670.jpg', 2), ('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_35_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_29_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_24_6606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0892f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0892f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0892f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:48:02.823428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_47_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_42_6670.jpg', 2), ('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_35_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_29_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/03/47/image_18032025_03_47_24_6606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0819f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0819f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0819f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:48:32.373485
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_53_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_47_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_42_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_35_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_30_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_23_5638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad920f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad920f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad920f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:49:03.118868
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_53_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_47_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_42_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_35_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_30_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/03/48/image_18032025_03_48_23_5638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f844b2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f844b2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f844b2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:49:32.493278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_54_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_47_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_42_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_35_5607.jpg', 2), ('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_29_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_24_6648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6029f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6029f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6029f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:50:02.990024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_54_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_47_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_42_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_35_5607.jpg', 2), ('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_29_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/03/49/image_18032025_03_49_24_6648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94afaeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94afaeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94afaeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:50:32.619744
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_53_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_47_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_41_5917.jpg', 2), ('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_36_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_30_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_24_6019.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb60b5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb60b5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb60b5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:51:02.997997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_53_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_47_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_41_5917.jpg', 2), ('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_36_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_30_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/03/50/image_18032025_03_50_24_6019.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb135af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb135af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb135af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:51:32.742887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_54_5990.jpg', 2), ('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_48_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_41_5684.jpg', 2), ('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_36_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_29_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_23_6648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9072df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9072df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9072df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:52:02.334906
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_54_5990.jpg', 2), ('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_48_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_41_5684.jpg', 2), ('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_36_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_29_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/51/image_18032025_03_51_23_6648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f798a2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f798a2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f798a2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:52:31.878117
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_54_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_47_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_41_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_36_6645.jpg', 2), ('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_29_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_23_6665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1a80f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1a80f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1a80f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:53:02.331240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_54_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_47_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_41_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_36_6645.jpg', 2), ('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_29_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/03/52/image_18032025_03_52_23_6665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb11d1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb11d1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb11d1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:53:31.988758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_53_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_48_6659.jpg', 2), ('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_41_5680.jpg', 2), ('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_35_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_30_6678.jpg', 2), ('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_23_5692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85cf1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85cf1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85cf1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:54:02.625778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_53_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_48_6659.jpg', 2), ('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_41_5680.jpg', 2), ('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_35_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_30_6678.jpg', 2), ('/home/nano/Desktop/images/18032025/03/53/image_18032025_03_53_23_5692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f999cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f999cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f999cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:54:32.114555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_54_5965.jpg', 2), ('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_48_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_42_5818.jpg', 2), ('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_36_6828.jpg', 2), ('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_29_5820.jpg', 2), ('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_23_5847.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8867af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8867af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8867af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:55:02.727611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_54_5965.jpg', 2), ('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_48_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_42_5818.jpg', 2), ('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_36_6828.jpg', 2), ('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_29_5820.jpg', 2), ('/home/nano/Desktop/images/18032025/03/54/image_18032025_03_54_23_5847.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4c8ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4c8ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4c8ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:55:32.208232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_53_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_47_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_42_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_36_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_30_5933.jpg', 2), ('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_24_5848.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab143f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab143f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab143f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:56:02.656095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_53_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_47_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_42_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_36_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_30_5933.jpg', 2), ('/home/nano/Desktop/images/18032025/03/55/image_18032025_03_55_24_5848.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b595f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b595f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b595f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:56:32.304454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_53_5999.jpg', 2), ('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_47_5926.jpg', 2), ('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_41_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_35_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_30_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_24_6802.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa63e8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa63e8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa63e8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:57:02.757750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_53_5999.jpg', 2), ('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_47_5926.jpg', 2), ('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_41_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_35_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_30_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/03/56/image_18032025_03_56_24_6802.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa751bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa751bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa751bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:57:32.419164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_53_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_48_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_41_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_35_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_30_6754.jpg', 2), ('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_23_5819.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5318eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5318eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5318eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:58:02.857272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_53_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_48_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_41_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_35_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_30_6754.jpg', 2), ('/home/nano/Desktop/images/18032025/03/57/image_18032025_03_57_23_5819.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f800f2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f800f2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f800f2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:59:02.658046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/58/image_18032025_03_58_54_6658.jpg', 2), ('/home/nano/Desktop/images/18032025/03/58/image_18032025_03_58_47_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/03/58/image_18032025_03_58_41_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/03/58/image_18032025_03_58_36_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/03/58/image_18032025_03_58_29_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/03/58/image_18032025_03_58_24_6654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be82f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be82f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8be82f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 03:59:32.027207
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_53_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_48_6615.jpg', 2), ('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_41_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_35_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_30_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_23_5632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f920c8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f920c8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f920c8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:00:02.554333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_53_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_48_6615.jpg', 2), ('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_41_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_35_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_30_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/03/59/image_18032025_03_59_23_5632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91434eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91434eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91434eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:00:32.157813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_54_6788.jpg', 2), ('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_47_5820.jpg', 2), ('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_41_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_35_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_30_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_24_6830.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c34f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c34f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c34f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:01:02.720920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_54_6788.jpg', 2), ('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_47_5820.jpg', 2), ('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_41_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_35_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_30_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/04/00/image_18032025_04_00_24_6830.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79583eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79583eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79583eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:01:32.255696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_53_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_47_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_41_5876.jpg', 2), ('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_35_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_29_5822.jpg', 2), ('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_24_6791.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0efdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0efdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0efdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:02:02.819036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_53_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_47_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_41_5876.jpg', 2), ('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_35_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_29_5822.jpg', 2), ('/home/nano/Desktop/images/18032025/04/01/image_18032025_04_01_24_6791.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb11e3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb11e3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb11e3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:02:32.355887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_54_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_47_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_41_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_35_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_29_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_24_6647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5feef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5feef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5feef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:03:02.968715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_54_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_47_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_41_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_35_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_29_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/04/02/image_18032025_04_02_24_6647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f852fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f852fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f852fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:03:32.495195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_53_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_48_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_41_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_35_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_30_6663.jpg', 2), ('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_23_5649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf9cbf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf9cbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf9cbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:04:03.284793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_53_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_48_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_41_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_35_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_30_6663.jpg', 2), ('/home/nano/Desktop/images/18032025/04/03/image_18032025_04_03_23_5649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb036ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb036ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb036ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:04:32.621680
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_53_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_48_6620.jpg', 2), ('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_41_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_36_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_29_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_23_5620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90729eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90729eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90729eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:05:03.060225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_53_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_48_6620.jpg', 2), ('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_41_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_36_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_29_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/04/04/image_18032025_04_04_23_5620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0755eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0755eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0755eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:05:32.708922
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_53_5801.jpg', 2), ('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_48_5803.jpg', 2), ('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_42_6858.jpg', 2), ('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_35_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_29_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_23_5863.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b719eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b719eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b719eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:06:02.121100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_53_5801.jpg', 2), ('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_48_5803.jpg', 2), ('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_42_6858.jpg', 2), ('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_35_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_29_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/04/05/image_18032025_04_05_23_5863.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd3ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd3ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bd3ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:06:31.806696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_53_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_47_5590.jpg', 2), ('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_42_6607.jpg', 2), ('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_35_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_29_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_24_6636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e634f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e634f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e634f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:07:02.369272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_53_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_47_5590.jpg', 2), ('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_42_6607.jpg', 2), ('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_35_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_29_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/04/06/image_18032025_04_06_24_6636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d380eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d380eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d380eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:07:31.911940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_54_6670.jpg', 2), ('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_47_5904.jpg', 2), ('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_41_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_35_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_30_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_23_5689.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87644f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87644f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87644f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:08:02.450519
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_05_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_54_6670.jpg', 2), ('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_47_5904.jpg', 2), ('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_41_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_35_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/04/07/image_18032025_04_07_30_6655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d29feb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d29feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d29feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:08:32.007671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_53_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_47_5919.jpg', 2), ('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_41_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_35_5876.jpg', 2), ('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_29_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_23_5824.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9554ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9554ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9554ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:09:02.725994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_53_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_47_5919.jpg', 2), ('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_41_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_35_5876.jpg', 2), ('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_29_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/08/image_18032025_04_08_23_5824.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa27c6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa27c6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa27c6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:09:32.112871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_53_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_47_5799.jpg', 2), ('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_41_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_35_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_29_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_24_5855.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76e10f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76e10f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76e10f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:10:02.655455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_53_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_47_5799.jpg', 2), ('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_41_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_35_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_29_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/04/09/image_18032025_04_09_24_5855.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83c1af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83c1af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83c1af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:10:32.244027
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_53_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_47_6049.jpg', 2), ('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_41_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_35_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_29_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_23_5885.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3748f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3748f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3748f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:11:02.703133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_53_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_47_6049.jpg', 2), ('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_41_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_35_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_29_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/04/10/image_18032025_04_10_23_5885.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e828f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e828f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e828f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:11:32.326414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_53_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_48_6630.jpg', 2), ('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_41_5659.jpg', 2), ('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_35_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_29_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_23_5787.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa82adf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa82adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa82adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:12:02.890889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_53_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_48_6630.jpg', 2), ('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_41_5659.jpg', 2), ('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_35_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_29_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/04/11/image_18032025_04_11_23_5787.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93117f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93117f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93117f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:12:32.431576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_53_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_47_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_42_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_35_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_29_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_24_6636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84d7df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84d7df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84d7df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:13:02.956411
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_53_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_47_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_42_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_35_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_29_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/04/12/image_18032025_04_12_24_6636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf142f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf142f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf142f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:13:32.538345
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_48_6660.jpg', 2), ('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_41_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_35_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_30_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_24_6725.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f843dff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f843dff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f843dff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:14:03.256257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_06_6799.jpg', 2), ('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_48_6660.jpg', 2), ('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_41_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_35_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/04/13/image_18032025_04_13_30_5868.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b1aff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b1aff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b1aff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:14:32.664210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_53_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_47_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_41_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_36_6767.jpg', 2), ('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_29_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_23_5737.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf945f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf945f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf945f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:15:02.104316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_53_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_47_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_41_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_36_6767.jpg', 2), ('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_29_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/04/14/image_18032025_04_14_23_5737.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80c60f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80c60f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80c60f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:15:31.750400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_54_6779.jpg', 2), ('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_47_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_41_6017.jpg', 2), ('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_35_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_29_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_23_5793.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99104f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99104f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99104f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:16:02.349957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_54_6779.jpg', 2), ('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_47_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_41_6017.jpg', 2), ('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_35_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_29_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/04/15/image_18032025_04_15_23_5793.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91baff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91baff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91baff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:16:31.932494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_53_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_47_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_41_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_36_6710.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_29_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_23_5763.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8a92f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8a92f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8a92f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:17:02.475491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_53_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_47_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_41_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_36_6710.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_29_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_23_5763.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87928f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87928f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87928f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:17:32.004935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_11_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_05_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_17_00_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_53_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_47_6063.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83aa7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83aa7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83aa7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:18:02.544802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_11_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_05_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_17_00_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_53_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_47_6063.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8764f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8764f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8764f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:18:32.116890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_11_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_05_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_17_00_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_53_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_47_6063.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cbe4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cbe4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cbe4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:19:02.823733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_11_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_05_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_17_00_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_53_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_47_6063.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8557deb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8557deb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8557deb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:19:32.223688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_11_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_05_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_17_00_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_53_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_47_6063.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8387ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8387ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8387ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:20:02.841211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_11_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_05_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_17_00_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_53_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_16_47_6063.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89155eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89155eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89155eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:20:32.326300
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/20/image_18032025_04_20_54_6873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_23_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_11_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_05_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_17_00_6677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c08eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c08eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c08eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:21:02.814128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/20/image_18032025_04_20_54_6873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_23_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_11_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_05_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/04/16/image_18032025_04_17_00_6677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f817ffeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f817ffeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f817ffeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:21:32.448167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/21/image_18032025_04_21_35_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/04/20/image_18032025_04_21_00_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/20/image_18032025_04_20_54_6873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_23_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_11_5664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ff7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ff7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ff7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:22:02.972174
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/21/image_18032025_04_21_35_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/04/20/image_18032025_04_21_00_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/20/image_18032025_04_20_54_6873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_23_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_11_5664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a555eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a555eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a555eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:22:32.553229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/21/image_18032025_04_21_47_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/04/21/image_18032025_04_21_35_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/04/20/image_18032025_04_21_00_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/20/image_18032025_04_20_54_6873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_23_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81b63f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81b63f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81b63f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:23:02.991782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/21/image_18032025_04_21_47_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/04/21/image_18032025_04_21_35_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/04/20/image_18032025_04_21_00_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/20/image_18032025_04_20_54_6873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_23_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/04/17/image_18032025_04_17_18_6656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1b43f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1b43f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1b43f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:23:32.680414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_48_6875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_35_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_29_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_12_5885.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_06_6891.jpg', 2), ('/home/nano/Desktop/images/18032025/04/22/image_18032025_04_22_41_5866.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5b0ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5b0ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5b0ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:24:02.370100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_48_6875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_35_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_29_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_12_5885.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_06_6891.jpg', 2), ('/home/nano/Desktop/images/18032025/04/22/image_18032025_04_22_41_5866.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5122f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5122f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5122f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:24:31.793078
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_54_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_48_6875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_35_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_29_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_12_5885.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_06_6891.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8abeff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8abeff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8abeff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:25:02.280779
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_54_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_48_6875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_35_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_29_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_12_5885.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_06_6891.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2000f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2000f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2000f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:25:31.899010
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/25/image_18032025_04_25_47_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/04/24/image_18032025_04_24_05_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_54_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_48_6875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_35_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_29_5869.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b983f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b983f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b983f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:26:02.470451
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/25/image_18032025_04_25_47_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/04/24/image_18032025_04_24_05_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_54_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_48_6875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_35_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_29_5869.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f849ecf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f849ecf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f849ecf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:26:32.030675
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/26/image_18032025_04_26_12_6922.jpg', 2), ('/home/nano/Desktop/images/18032025/04/26/image_18032025_04_26_05_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/04/25/image_18032025_04_25_53_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/04/25/image_18032025_04_25_47_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/04/24/image_18032025_04_24_05_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_54_5860.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa28bceb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa28bceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa28bceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:27:02.450133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/26/image_18032025_04_26_12_6922.jpg', 2), ('/home/nano/Desktop/images/18032025/04/26/image_18032025_04_26_05_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/04/25/image_18032025_04_25_53_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/04/25/image_18032025_04_25_47_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/04/24/image_18032025_04_24_05_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/04/23/image_18032025_04_23_54_5860.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92988f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92988f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92988f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:27:32.113737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_54_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_48_6877.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_23_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_17_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_06_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/26/image_18032025_04_26_18_5884.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3339eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3339eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3339eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:28:02.572756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_54_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_48_6877.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_23_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_17_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_06_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/26/image_18032025_04_26_18_5884.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fdd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fdd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8fdd7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:28:32.229106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/28/image_18032025_04_28_30_6872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/28/image_18032025_04_28_23_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_59_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_54_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_48_6877.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_23_5864.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa1ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa1ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa1ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:29:02.979770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/28/image_18032025_04_28_30_6872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/28/image_18032025_04_28_23_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_59_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_54_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_48_6877.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_23_5864.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f780e9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f780e9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f780e9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:29:32.353105
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/29/image_18032025_04_29_35_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/28/image_18032025_04_28_42_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/28/image_18032025_04_28_30_6872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/28/image_18032025_04_28_23_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_59_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_54_5863.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faba7ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faba7ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faba7ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:30:02.986930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/29/image_18032025_04_29_35_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/28/image_18032025_04_28_42_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/28/image_18032025_04_28_30_6872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/28/image_18032025_04_28_23_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_59_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/27/image_18032025_04_27_54_5863.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9850feb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9850feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9850feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:30:32.460529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_41_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_35_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_24_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_18_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_12_6914.jpg', 2), ('/home/nano/Desktop/images/18032025/04/29/image_18032025_04_29_53_5868.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac53af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac53af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac53af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:31:02.819895
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_41_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_35_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_24_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_18_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_12_6914.jpg', 2), ('/home/nano/Desktop/images/18032025/04/29/image_18032025_04_29_53_5868.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb40fff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb40fff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb40fff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:31:32.640929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_35_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_23_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_17_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_06_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_47_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_41_5865.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a05cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a05cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a05cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:32:03.205303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_05_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_35_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_23_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_17_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_06_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/30/image_18032025_04_30_47_5864.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6485f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6485f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6485f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:32:32.771802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_29_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_05_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_41_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_35_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_23_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_17_5881.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93ba3eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93ba3eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93ba3eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:33:02.164142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_29_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_05_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_41_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_35_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_23_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/04/31/image_18032025_04_31_17_5881.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e36cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e36cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e36cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:33:31.865011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_36_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_17_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_05_5907.jpg', 2), ('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_53_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_29_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_05_5881.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1c8bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1c8bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1c8bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:34:02.562738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_36_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_17_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_05_5907.jpg', 2), ('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_53_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_29_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/32/image_18032025_04_32_05_5881.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa82d0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa82d0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa82d0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:34:31.984793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_24_6874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_17_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_11_5905.jpg', 2), ('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_59_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_36_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_17_5864.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6153f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6153f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6153f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:35:02.442537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_24_6874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_17_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_11_5905.jpg', 2), ('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_59_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_36_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/33/image_18032025_04_33_17_5864.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f20f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f20f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88f20f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:35:32.173949
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/35/image_18032025_04_35_47_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/35/image_18032025_04_35_41_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/35/image_18032025_04_35_18_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_35_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_24_6874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_17_5862.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb176bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb176bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb176bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:36:02.593922
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/35/image_18032025_04_35_47_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/35/image_18032025_04_35_41_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/35/image_18032025_04_35_18_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_35_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_24_6874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/34/image_18032025_04_34_17_5862.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78583eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78583eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78583eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:36:32.253765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_36_29_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_36_23_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_36_17_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_36_12_5903.jpg', 2), ('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_36_06_5880.jpg', 2), ('/home/nano/Desktop/images/18032025/04/35/image_18032025_04_35_53_5884.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f953c8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f953c8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f953c8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:37:02.673579
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_36_29_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_36_23_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_36_17_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_36_12_5903.jpg', 2), ('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_36_06_5880.jpg', 2), ('/home/nano/Desktop/images/18032025/04/35/image_18032025_04_35_53_5884.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faabaaf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faabaaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faabaaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:37:32.364583
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_48_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_42_6874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_29_5885.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_17_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_11_5919.jpg', 2), ('/home/nano/Desktop/images/18032025/04/36/image_18032025_04_37_00_5879.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d60ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d60ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d60ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:38:02.888510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/38/image_18032025_04_38_05_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_48_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_42_6874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_29_5885.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_17_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_11_5919.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77a5ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77a5ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77a5ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:38:32.461158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/38/image_18032025_04_38_05_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_59_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_48_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_42_6874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_29_5885.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_17_5892.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe7ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe7ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fe7ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:39:03.010102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/38/image_18032025_04_38_05_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_59_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_48_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_42_6874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_29_5885.jpg', 2), ('/home/nano/Desktop/images/18032025/04/37/image_18032025_04_37_17_5892.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f37bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f37bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f37bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:39:32.570357
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/39/image_18032025_04_39_53_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/04/39/image_18032025_04_39_47_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/04/39/image_18032025_04_39_36_5871.jpg', 2), ('/home/nano/Desktop/images/18032025/04/39/image_18032025_04_39_23_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/38/image_18032025_04_38_59_5880.jpg', 2), ('/home/nano/Desktop/images/18032025/04/38/image_18032025_04_38_05_5887.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e252f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e252f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e252f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:40:03.084052
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/39/image_18032025_04_39_53_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/04/39/image_18032025_04_39_47_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/04/39/image_18032025_04_39_36_5871.jpg', 2), ('/home/nano/Desktop/images/18032025/04/39/image_18032025_04_39_23_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/38/image_18032025_04_38_59_5880.jpg', 2), ('/home/nano/Desktop/images/18032025/04/38/image_18032025_04_38_05_5887.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90b93f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90b93f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90b93f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:40:32.665889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_36_5905.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_30_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_24_6881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_17_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_11_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_05_5875.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1317f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1317f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1317f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:41:02.236755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_36_5905.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_30_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_24_6881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_17_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_11_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_05_5875.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99961f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99961f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99961f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:41:31.763650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_35_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_18_6905.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_11_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_05_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_59_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_36_5905.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a127f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a127f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a127f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:42:02.299134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_35_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_18_6905.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_11_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_05_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_59_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/40/image_18032025_04_40_36_5905.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ef6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ef6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ef6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:42:31.868689
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/42/image_18032025_04_42_18_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/42/image_18032025_04_42_05_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_59_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_35_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_18_6905.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_11_5895.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafa0af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafa0af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafa0af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:43:02.266745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/42/image_18032025_04_42_18_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/42/image_18032025_04_42_05_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_59_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_35_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_18_6905.jpg', 2), ('/home/nano/Desktop/images/18032025/04/41/image_18032025_04_41_11_5895.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76933f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76933f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76933f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:43:32.002608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/43/image_18032025_04_43_54_6880.jpg', 2), ('/home/nano/Desktop/images/18032025/04/43/image_18032025_04_43_29_5900.jpg', 2), ('/home/nano/Desktop/images/18032025/04/43/image_18032025_04_43_06_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/04/42/image_18032025_04_43_00_6906.jpg', 2), ('/home/nano/Desktop/images/18032025/04/42/image_18032025_04_42_18_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/42/image_18032025_04_42_05_5879.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0917f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0917f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0917f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:44:02.634572
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/43/image_18032025_04_43_54_6880.jpg', 2), ('/home/nano/Desktop/images/18032025/04/43/image_18032025_04_43_29_5900.jpg', 2), ('/home/nano/Desktop/images/18032025/04/43/image_18032025_04_43_06_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/04/42/image_18032025_04_43_00_6906.jpg', 2), ('/home/nano/Desktop/images/18032025/04/42/image_18032025_04_42_18_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/42/image_18032025_04_42_05_5879.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90b1ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90b1ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90b1ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:44:32.156543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_54_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_41_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_35_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_29_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_11_5902.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_06_5878.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f9bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f9bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f9bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:45:02.616506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_54_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_41_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_35_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_29_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_11_5902.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_06_5878.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a6f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a6f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a6f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:45:32.238857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_48_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_42_6879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_35_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_11_5896.jpg', 2), ('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_05_5929.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_59_5882.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa488ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa488ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa488ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:46:02.752807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_48_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_42_6879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_35_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_11_5896.jpg', 2), ('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_05_5929.jpg', 2), ('/home/nano/Desktop/images/18032025/04/44/image_18032025_04_44_59_5882.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f459f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f459f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f459f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:46:32.353977
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_53_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_47_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_29_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_11_5896.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_05_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_53_5902.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a871eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a871eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a871eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:47:02.872355
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_53_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_47_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_29_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_11_5896.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_05_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/04/45/image_18032025_04_45_53_5902.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb582bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb582bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb582bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:47:32.465010
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/47/image_18032025_04_47_53_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/47/image_18032025_04_47_24_6883.jpg', 2), ('/home/nano/Desktop/images/18032025/04/47/image_18032025_04_47_17_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/47/image_18032025_04_47_11_5924.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_59_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_53_5898.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f935cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f935cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f935cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:48:03.022321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/47/image_18032025_04_47_53_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/47/image_18032025_04_47_24_6883.jpg', 2), ('/home/nano/Desktop/images/18032025/04/47/image_18032025_04_47_17_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/47/image_18032025_04_47_11_5924.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_59_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/04/46/image_18032025_04_46_53_5898.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b48f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b48f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6b48f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:48:32.558306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/48/image_18032025_04_48_35_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/48/image_18032025_04_48_24_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/48/image_18032025_04_48_18_6879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/48/image_18032025_04_48_11_5893.jpg', 2), ('/home/nano/Desktop/images/18032025/04/48/image_18032025_04_48_05_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/47/image_18032025_04_47_59_5890.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99eb0eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99eb0eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99eb0eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:49:03.307381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_06_6899.jpg', 2), ('/home/nano/Desktop/images/18032025/04/48/image_18032025_04_48_35_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/48/image_18032025_04_48_24_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/48/image_18032025_04_48_18_6879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/48/image_18032025_04_48_11_5893.jpg', 2), ('/home/nano/Desktop/images/18032025/04/48/image_18032025_04_48_05_5869.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82822f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82822f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82822f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:49:32.673656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_53_5882.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_41_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_35_5893.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_29_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_18_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_12_5925.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80437f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80437f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80437f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:50:02.055681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_53_5882.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_41_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_35_5893.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_29_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_18_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_12_5925.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f894abf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f894abf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f894abf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:50:31.795931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_48_6877.jpg', 2), ('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_41_5876.jpg', 2), ('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_17_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_12_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_50_00_6889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_53_5882.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a33f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a33f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6a33f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:51:02.177083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_48_6877.jpg', 2), ('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_41_5876.jpg', 2), ('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_17_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_12_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_50_00_6889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/49/image_18032025_04_49_53_5882.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24bff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24bff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24bff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:51:31.892627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_53_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_42_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_36_6878.jpg', 2), ('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_23_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_54_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_48_6877.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d23af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d23af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d23af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:52:02.452110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_53_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_42_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_36_6878.jpg', 2), ('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_23_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_54_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/04/50/image_18032025_04_50_48_6877.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89377f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89377f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89377f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:52:32.007362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_47_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_41_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_36_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_30_6880.jpg', 2), ('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_59_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_53_5868.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8662ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8662ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8662ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:53:02.534020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_47_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_41_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_36_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_30_6880.jpg', 2), ('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_59_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/04/51/image_18032025_04_51_53_5868.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa84c2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa84c2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa84c2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:53:32.090251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/53/image_18032025_04_53_05_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_59_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_47_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_41_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_36_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_30_6880.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f947fef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f947fef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f947fef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:54:02.758396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/53/image_18032025_04_53_05_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_59_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_47_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_41_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_36_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_30_6880.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b349f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b349f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b349f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:54:32.212816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/53/image_18032025_04_53_24_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/04/53/image_18032025_04_53_05_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_59_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_47_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_41_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_36_5868.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78e1af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78e1af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78e1af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:55:02.667484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/53/image_18032025_04_53_24_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/04/53/image_18032025_04_53_05_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_59_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_47_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_41_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/04/52/image_18032025_04_52_36_5868.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa832ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa832ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa832ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:55:32.308130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_54_6886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_47_5884.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_41_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_35_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_29_5877.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_23_5913.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad10bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad10bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad10bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:56:02.865943
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_54_6886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_47_5884.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_41_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_35_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_29_5877.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_23_5913.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e814f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e814f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e814f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:56:32.409261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/56/image_18032025_04_56_35_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/56/image_18032025_04_56_29_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/56/image_18032025_04_56_06_5884.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_56_00_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_54_6886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_47_5884.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabdd0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabdd0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabdd0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:57:02.895173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/56/image_18032025_04_56_35_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/56/image_18032025_04_56_29_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/04/56/image_18032025_04_56_06_5884.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_56_00_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_54_6886.jpg', 2), ('/home/nano/Desktop/images/18032025/04/55/image_18032025_04_55_47_5884.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94649f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94649f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94649f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:57:32.521390
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/57/image_18032025_04_57_42_6910.jpg', 2), ('/home/nano/Desktop/images/18032025/04/57/image_18032025_04_57_35_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/04/57/image_18032025_04_57_23_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/04/57/image_18032025_04_57_11_5907.jpg', 2), ('/home/nano/Desktop/images/18032025/04/57/image_18032025_04_57_05_5931.jpg', 2), ('/home/nano/Desktop/images/18032025/04/56/image_18032025_04_56_41_5876.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d50f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d50f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d50f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:59:02.593082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/58/image_18032025_04_58_53_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/58/image_18032025_04_58_11_5899.jpg', 2), ('/home/nano/Desktop/images/18032025/04/58/image_18032025_04_58_05_5913.jpg', 2), ('/home/nano/Desktop/images/18032025/04/57/image_18032025_04_57_54_5899.jpg', 2), ('/home/nano/Desktop/images/18032025/04/57/image_18032025_04_57_42_6910.jpg', 2), ('/home/nano/Desktop/images/18032025/04/57/image_18032025_04_57_35_5889.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94834f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94834f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94834f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 04:59:31.974640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_53_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_41_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_30_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_24_6904.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_17_5871.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_11_5893.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb05f2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb05f2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb05f2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:00:02.548405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_53_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_41_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_30_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_24_6904.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_17_5871.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_11_5893.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c8fcf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c8fcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c8fcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:00:32.099674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/00/image_18032025_05_00_53_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/05/00/image_18032025_05_00_41_5877.jpg', 2), ('/home/nano/Desktop/images/18032025/05/00/image_18032025_05_00_29_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/05/00/image_18032025_05_00_24_5893.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_59_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_53_5873.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faef41eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faef41eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faef41eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:01:02.540373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/00/image_18032025_05_00_53_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/05/00/image_18032025_05_00_41_5877.jpg', 2), ('/home/nano/Desktop/images/18032025/05/00/image_18032025_05_00_29_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/05/00/image_18032025_05_00_24_5893.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_59_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/04/59/image_18032025_04_59_53_5873.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f3fff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f3fff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f3fff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:01:32.202053
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_41_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_35_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_23_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_18_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_12_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_06_6924.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52cff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52cff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52cff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:02:02.812778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_41_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_35_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_23_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_18_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_12_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_06_6924.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4904f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4904f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4904f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:02:32.324192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_35_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_24_6745.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_11_5745.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_54_6873.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_41_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_35_5874.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7751df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7751df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7751df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:03:02.708002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_35_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_24_6745.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_11_5745.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_54_6873.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_41_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/05/01/image_18032025_05_01_35_5874.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8518ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8518ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8518ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:03:32.417476
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_47_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_41_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_18_6788.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_05_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_41_5732.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_35_5662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5236f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5236f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5236f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:04:03.163913
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_47_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_41_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_18_6788.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_05_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_41_5732.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_35_5662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b69cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b69cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b69cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:04:32.590558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_47_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_41_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_18_6788.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_05_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_41_5732.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_35_5662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f819adf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:05:03.030790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_47_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_41_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_18_6788.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_05_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_41_5732.jpg', 2), ('/home/nano/Desktop/images/18032025/05/02/image_18032025_05_02_35_5662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d4f2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d4f2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d4f2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:05:32.701392
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_35_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_29_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_23_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_53_5771.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_47_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_41_5644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80204f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80204f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80204f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:06:02.291449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_35_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_29_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_23_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_53_5771.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_47_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/05/03/image_18032025_05_03_41_5644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3a16f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3a16f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3a16f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:06:31.812609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_41_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_23_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_06_6764.jpg', 2), ('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_59_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_35_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_29_5823.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadb91f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadb91f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadb91f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:07:02.381398
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_05_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_41_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_23_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_06_6764.jpg', 2), ('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_59_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/05/05/image_18032025_05_05_35_5663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f964aff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f964aff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f964aff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:07:31.941049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_42_6782.jpg', 2), ('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_11_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_05_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_59_5682.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_41_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_23_5709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb584ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb584ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb584ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:08:02.407941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_42_6782.jpg', 2), ('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_11_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_05_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_59_5682.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_41_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/05/06/image_18032025_05_06_23_5709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2fe8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2fe8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2fe8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:08:32.092320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_41_5793.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_36_6767.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_12_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_06_6763.jpg', 2), ('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_59_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_42_6782.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee15f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee15f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ee15f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:09:02.793939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_41_5793.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_36_6767.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_12_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_06_6763.jpg', 2), ('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_59_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/05/07/image_18032025_05_07_42_6782.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa613aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa613aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa613aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:09:32.196928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_41_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_17_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_11_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_06_5825.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_47_5822.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_41_5793.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa284cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa284cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa284cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:10:02.664672
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_41_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_17_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_11_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_06_5825.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_47_5822.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_41_5793.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ca7ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ca7ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ca7ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:10:32.287313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_53_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_41_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_17_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_11_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_06_5825.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_47_5822.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e251f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e251f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e251f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:11:02.824873
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_53_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_41_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_17_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_11_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_06_5825.jpg', 2), ('/home/nano/Desktop/images/18032025/05/08/image_18032025_05_08_47_5822.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95517eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95517eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95517eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:11:32.401101
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_29_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_18_6717.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_11_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/05/10/image_18032025_05_10_59_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_53_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_41_5760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89938f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89938f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89938f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:12:02.913304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_29_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_18_6717.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_11_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/05/10/image_18032025_05_10_59_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_53_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/05/09/image_18032025_05_09_41_5760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97f0cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97f0cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97f0cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:12:32.509291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_23_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_17_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_06_6706.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_42_6840.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_29_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_18_6717.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa730ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa730ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa730ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:13:03.005618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_23_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_17_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_06_6706.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_42_6840.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_29_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_18_6717.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa001ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa001ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa001ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:13:32.632613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_30_6721.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_23_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_17_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_06_6706.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_42_6840.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e272f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e272f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e272f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:14:03.292970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_30_6721.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_23_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_17_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_06_6706.jpg', 2), ('/home/nano/Desktop/images/18032025/05/11/image_18032025_05_11_42_6840.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b25ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b25ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b25ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:14:32.760646
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/14/image_18032025_05_14_23_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_59_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_30_6721.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_23_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_17_5758.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafb6bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafb6bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafb6bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:15:02.373068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/14/image_18032025_05_14_23_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_59_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_30_6721.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_23_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_17_5758.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97672eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97672eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97672eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:15:31.852042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/14/image_18032025_05_14_23_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_59_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_30_6721.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_23_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_17_5758.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d3ebf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d3ebf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d3ebf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:16:02.184633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/14/image_18032025_05_14_23_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_59_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_30_6721.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_23_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/05/12/image_18032025_05_12_17_5758.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80295f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80295f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80295f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:16:31.973721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_54_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_30_6754.jpg', 2), ('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_23_5774.jpg', 2), ('/home/nano/Desktop/images/18032025/05/14/image_18032025_05_14_29_5783.jpg', 2), ('/home/nano/Desktop/images/18032025/05/14/image_18032025_05_14_23_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_59_5699.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87b0ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87b0ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87b0ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:17:02.525747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_54_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_30_6754.jpg', 2), ('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_23_5774.jpg', 2), ('/home/nano/Desktop/images/18032025/05/14/image_18032025_05_14_29_5783.jpg', 2), ('/home/nano/Desktop/images/18032025/05/14/image_18032025_05_14_23_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/05/13/image_18032025_05_13_59_5699.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83baceb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83baceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83baceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:17:32.067437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_42_6824.jpg', 2), ('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_11_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_05_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_59_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_54_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_30_6754.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a502f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a502f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a502f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:18:02.597919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_42_6824.jpg', 2), ('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_11_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_05_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_59_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_54_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/05/16/image_18032025_05_16_30_6754.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f975f2eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f975f2eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f975f2eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:18:32.158196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_18_54_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_18_47_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_18_23_5742.jpg', 2), ('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_48_5694.jpg', 2), ('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_42_6824.jpg', 2), ('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_11_5730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b5abf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b5abf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b5abf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:19:02.909996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_05_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_18_54_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_18_47_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_18_23_5742.jpg', 2), ('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_48_5694.jpg', 2), ('/home/nano/Desktop/images/18032025/05/17/image_18032025_05_17_42_6824.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b79df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b79df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b79df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:19:32.282407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_42_6751.jpg', 2), ('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_35_5687.jpg', 2), ('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_05_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_19_00_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_18_54_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_18_47_5730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5535f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5535f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5535f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:20:02.798187
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_42_6751.jpg', 2), ('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_35_5687.jpg', 2), ('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_05_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_19_00_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_18_54_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/05/18/image_18032025_05_18_47_5730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0d55f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0d55f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0d55f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:20:32.499059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_29_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_24_6748.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_17_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_11_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_53_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_42_6751.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93e97eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93e97eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93e97eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:21:03.035496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_29_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_24_6748.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_17_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_11_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_53_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_42_6751.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facc78eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facc78eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facc78eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:21:32.595546
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_35_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_29_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_24_6748.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_17_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_11_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_53_5664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa9ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa9ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa9ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:22:03.128428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_35_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_29_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_24_6748.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_17_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_11_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/05/19/image_18032025_05_19_53_5664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9164cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9164cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9164cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:22:32.691900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/22/image_18032025_05_22_23_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/05/22/image_18032025_05_22_05_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/05/21/image_18032025_05_21_17_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_35_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_29_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_24_6748.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ffd1eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ffd1eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9ffd1eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:23:02.144918
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/22/image_18032025_05_22_23_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/05/22/image_18032025_05_22_05_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/05/21/image_18032025_05_21_17_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_35_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_29_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/05/20/image_18032025_05_20_24_6748.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7838eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7838eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7838eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:23:31.783001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_53_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_47_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_42_6614.jpg', 2), ('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_35_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_29_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_24_6649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76707f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76707f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76707f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:24:02.561235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_53_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_47_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_42_6614.jpg', 2), ('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_35_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_29_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/05/23/image_18032025_05_23_24_6649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ceef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ceef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3ceef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:24:31.948558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_53_5980.jpg', 2), ('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_47_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_42_6807.jpg', 2), ('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_35_5745.jpg', 2), ('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_29_5739.jpg', 2), ('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_23_5685.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa97fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa97fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa97fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:25:02.519399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_05_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_53_5980.jpg', 2), ('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_47_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_42_6807.jpg', 2), ('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_35_5745.jpg', 2), ('/home/nano/Desktop/images/18032025/05/24/image_18032025_05_24_29_5739.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9be33f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9be33f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9be33f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:25:32.053824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_53_5803.jpg', 2), ('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_47_5731.jpg', 2), ('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_41_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_36_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_29_5850.jpg', 2), ('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_24_6679.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9facdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9facdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9facdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:26:02.407457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_53_5803.jpg', 2), ('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_47_5731.jpg', 2), ('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_41_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_36_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_29_5850.jpg', 2), ('/home/nano/Desktop/images/18032025/05/25/image_18032025_05_25_24_6679.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fabe87f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabe87f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fabe87f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:26:32.206077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_53_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_47_5880.jpg', 2), ('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_42_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_36_6727.jpg', 2), ('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_29_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_23_5768.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d62f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d62f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78d62f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:27:02.537956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_53_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_47_5880.jpg', 2), ('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_42_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_36_6727.jpg', 2), ('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_29_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/05/26/image_18032025_05_26_23_5768.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa10ebf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa10ebf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa10ebf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:27:32.352848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_53_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_47_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_41_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_36_6788.jpg', 2), ('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_29_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_17_5784.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c55deb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c55deb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c55deb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:28:02.835646
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_53_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_47_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_41_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_36_6788.jpg', 2), ('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_29_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/05/27/image_18032025_05_27_17_5784.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f825d7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f825d7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f825d7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:28:32.471256
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_54_5944.jpg', 2), ('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_48_6775.jpg', 2), ('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_35_5726.jpg', 2), ('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_30_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_24_5959.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f838b8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f838b8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f838b8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:29:03.125290
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_54_5944.jpg', 2), ('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_48_6775.jpg', 2), ('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_35_5726.jpg', 2), ('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_30_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/05/28/image_18032025_05_28_24_5959.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d606f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d606f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d606f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:29:32.580236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_53_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_47_6032.jpg', 2), ('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_41_5983.jpg', 2), ('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_35_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_30_5952.jpg', 2), ('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_24_5859.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2b0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2b0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2b0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:30:03.163762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_53_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_47_6032.jpg', 2), ('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_41_5983.jpg', 2), ('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_35_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_30_5952.jpg', 2), ('/home/nano/Desktop/images/18032025/05/29/image_18032025_05_29_24_5859.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6f5df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6f5df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6f5df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:30:32.668185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_53_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_47_6097.jpg', 2), ('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_41_5918.jpg', 2), ('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_35_5955.jpg', 2), ('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_29_6001.jpg', 2), ('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_23_6076.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cc38f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cc38f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9cc38f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:31:02.074205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_53_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_47_6097.jpg', 2), ('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_41_5918.jpg', 2), ('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_35_5955.jpg', 2), ('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_29_6001.jpg', 2), ('/home/nano/Desktop/images/18032025/05/30/image_18032025_05_30_23_6076.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93ae2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93ae2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93ae2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:31:31.834928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_53_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_47_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_41_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_35_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_29_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_23_6106.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b66df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b66df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b66df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:32:02.326209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_53_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_47_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_41_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_35_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_29_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/05/31/image_18032025_05_31_23_6106.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81fb9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81fb9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81fb9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:32:31.968843
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_48_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_41_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_35_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_23_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_17_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_11_5171.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94c36f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94c36f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94c36f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:33:02.471969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_48_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_41_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_35_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_23_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_17_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/05/32/image_18032025_05_32_11_5171.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f567f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f567f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f567f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:33:32.074022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_47_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_41_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_35_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_23_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_17_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_11_6106.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fed6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fed6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fed6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:34:02.779045
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_47_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_41_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_35_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_23_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_17_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/05/33/image_18032025_05_33_11_6106.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faddfbf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faddfbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faddfbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:34:32.199090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_47_5775.jpg', 2), ('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_42_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_36_6891.jpg', 2), ('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_29_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_23_5922.jpg', 2), ('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_17_5994.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c5f3eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c5f3eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c5f3eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:35:02.671868
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_47_5775.jpg', 2), ('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_42_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_36_6891.jpg', 2), ('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_29_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_23_5922.jpg', 2), ('/home/nano/Desktop/images/18032025/05/34/image_18032025_05_34_17_5994.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c69f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c69f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c69f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:35:32.273333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_53_5669.jpg', 2), ('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_47_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_42_6633.jpg', 2), ('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_35_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_30_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_23_5633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac3cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac3cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac3cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:36:02.684435
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_53_5669.jpg', 2), ('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_47_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_42_6633.jpg', 2), ('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_35_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_30_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/05/35/image_18032025_05_35_23_5633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3c64eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3c64eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb3c64eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:36:32.407553
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_53_6631.jpg', 2), ('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_47_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_41_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_36_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_29_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_23_5635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96922eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96922eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96922eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:37:02.778298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_53_6631.jpg', 2), ('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_47_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_41_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_36_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_29_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/05/36/image_18032025_05_36_23_5635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89760eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89760eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89760eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:37:32.494029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_53_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_47_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_42_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_35_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_29_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_24_6646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7858af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7858af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7858af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:38:03.078223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_53_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_47_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_42_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_35_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_29_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/05/37/image_18032025_05_37_24_6646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa75f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa75f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faaa75f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:38:32.594228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_53_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_47_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_41_5815.jpg', 2), ('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_36_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_30_6823.jpg', 2), ('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_23_5733.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb5bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb5bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeb5bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:39:03.410121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_05_5739.jpg', 2), ('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_53_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_47_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_41_5815.jpg', 2), ('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_36_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/05/38/image_18032025_05_38_30_6823.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d52f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d52f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb5d52f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:39:32.700984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_54_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_47_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_41_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_36_6762.jpg', 2), ('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_29_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_23_5769.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f963e6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f963e6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f963e6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:40:02.294645
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_54_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_47_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_41_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_36_6762.jpg', 2), ('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_29_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/05/39/image_18032025_05_39_23_5769.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e27cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e27cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e27cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:40:31.804976
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_47_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_42_6653.jpg', 2), ('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_35_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_29_6653.jpg', 2), ('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_23_5612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab55ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab55ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab55ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:41:02.323946
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_47_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_42_6653.jpg', 2), ('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_35_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_29_6653.jpg', 2), ('/home/nano/Desktop/images/18032025/05/40/image_18032025_05_40_23_5612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f7cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f7cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f7cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:41:31.924201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_54_6620.jpg', 2), ('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_47_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_36_6687.jpg', 2), ('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_29_5678.jpg', 2), ('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_23_5621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a158eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a158eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a158eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:42:02.455905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_54_6620.jpg', 2), ('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_47_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_36_6687.jpg', 2), ('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_29_5678.jpg', 2), ('/home/nano/Desktop/images/18032025/05/41/image_18032025_05_41_23_5621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f3a3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f3a3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f3a3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:42:32.022835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_54_6774.jpg', 2), ('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_47_5763.jpg', 2), ('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_41_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_35_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_30_6802.jpg', 2), ('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_23_5731.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6afceb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6afceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6afceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:43:02.477805
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_54_6774.jpg', 2), ('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_47_5763.jpg', 2), ('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_41_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_35_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_30_6802.jpg', 2), ('/home/nano/Desktop/images/18032025/05/42/image_18032025_05_42_23_5731.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ceaeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ceaeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2ceaeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:43:32.118321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_54_6610.jpg', 2), ('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_47_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_41_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_36_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_29_5716.jpg', 2), ('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_23_5752.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb354ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb354ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb354ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:44:02.776463
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_54_6610.jpg', 2), ('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_47_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_41_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_36_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_29_5716.jpg', 2), ('/home/nano/Desktop/images/18032025/05/43/image_18032025_05_43_23_5752.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0e91f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0e91f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0e91f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:44:32.215819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_53_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_47_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_42_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_35_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_29_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_24_6627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82e52f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82e52f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82e52f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:45:02.679531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_53_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_47_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_42_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_35_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_29_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/05/44/image_18032025_05_44_24_6627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d894f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d894f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d894f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:45:32.324850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_53_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_48_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_41_5686.jpg', 2), ('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_35_5592.jpg', 2), ('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_30_6665.jpg', 2), ('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_23_5610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b951f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b951f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b951f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:46:02.890046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_53_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_48_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_41_5686.jpg', 2), ('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_35_5592.jpg', 2), ('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_30_6665.jpg', 2), ('/home/nano/Desktop/images/18032025/05/45/image_18032025_05_45_23_5610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa348af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa348af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa348af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:46:32.449656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_53_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_47_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_42_6664.jpg', 2), ('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_35_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_29_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_24_6674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1270f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1270f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1270f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:47:02.892732
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_53_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_47_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_42_6664.jpg', 2), ('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_35_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_29_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/05/46/image_18032025_05_46_24_6674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f996b3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f996b3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f996b3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:47:32.540113
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_54_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_47_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_41_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_36_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_29_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_23_5668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f778f5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f778f5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f778f5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:48:03.085390
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_54_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_47_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_41_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_36_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_29_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/05/47/image_18032025_05_47_23_5668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87760f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87760f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87760f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:48:32.644147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_53_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_48_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_41_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_35_5692.jpg', 2), ('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_30_6695.jpg', 2), ('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_23_5626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86258eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86258eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86258eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:49:03.525252
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_53_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_48_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_41_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_35_5692.jpg', 2), ('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_30_6695.jpg', 2), ('/home/nano/Desktop/images/18032025/05/48/image_18032025_05_48_23_5626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e26cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e26cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e26cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:49:32.753351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_54_6613.jpg', 2), ('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_47_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_42_6609.jpg', 2), ('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_35_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_29_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_24_6635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d307f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d307f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d307f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:50:02.311674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_54_6613.jpg', 2), ('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_47_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_42_6609.jpg', 2), ('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_35_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_29_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/05/49/image_18032025_05_49_24_6635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fae2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fae2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9fae2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:50:31.866679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_53_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_47_5850.jpg', 2), ('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_41_5849.jpg', 2), ('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_35_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_30_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_23_5669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9753bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9753bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9753bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:51:02.420342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_53_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_47_5850.jpg', 2), ('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_41_5849.jpg', 2), ('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_35_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_30_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/05/50/image_18032025_05_50_23_5669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a250f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a250f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a250f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:51:31.953434
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_53_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_47_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_41_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_35_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_29_5858.jpg', 2), ('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_24_5860.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ebd5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ebd5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ebd5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:52:02.535374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_53_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_47_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_41_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_35_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_29_5858.jpg', 2), ('/home/nano/Desktop/images/18032025/05/51/image_18032025_05_51_24_5860.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f962c6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f962c6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f962c6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:52:32.066990
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_53_5918.jpg', 2), ('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_48_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_42_6824.jpg', 2), ('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_35_5814.jpg', 2), ('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_29_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_23_5812.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91031f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91031f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91031f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:53:02.611035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_53_5918.jpg', 2), ('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_48_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_42_6824.jpg', 2), ('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_35_5814.jpg', 2), ('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_29_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/05/52/image_18032025_05_52_23_5812.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88881f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88881f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88881f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:53:32.225901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_35_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_29_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_23_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_17_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_11_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_06_5944.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7892df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7892df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7892df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:54:02.865914
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_35_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_29_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_23_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_17_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_11_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_06_5944.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa88ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa88ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa88ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:54:32.369499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/54/image_18032025_05_54_54_6829.jpg', 2), ('/home/nano/Desktop/images/18032025/05/54/image_18032025_05_54_35_5999.jpg', 2), ('/home/nano/Desktop/images/18032025/05/54/image_18032025_05_54_29_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/05/54/image_18032025_05_54_23_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/05/54/image_18032025_05_54_17_5988.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_47_6040.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e138eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e138eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e138eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:55:02.711115
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/54/image_18032025_05_54_54_6829.jpg', 2), ('/home/nano/Desktop/images/18032025/05/54/image_18032025_05_54_35_5999.jpg', 2), ('/home/nano/Desktop/images/18032025/05/54/image_18032025_05_54_29_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/05/54/image_18032025_05_54_23_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/05/54/image_18032025_05_54_17_5988.jpg', 2), ('/home/nano/Desktop/images/18032025/05/53/image_18032025_05_53_47_6040.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a434f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a434f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a434f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:55:32.471024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_53_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_48_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_42_6823.jpg', 2), ('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_35_5818.jpg', 2), ('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_29_5888.jpg', 2), ('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_23_5856.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa682bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa682bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa682bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:56:03.096533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_53_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_48_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_42_6823.jpg', 2), ('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_35_5818.jpg', 2), ('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_29_5888.jpg', 2), ('/home/nano/Desktop/images/18032025/05/55/image_18032025_05_55_23_5856.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f834d3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f834d3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f834d3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:56:32.574338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_54_6626.jpg', 2), ('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_47_5600.jpg', 2), ('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_41_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_36_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_29_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_23_5875.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f950eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f950eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f950eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:57:02.956636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_54_6626.jpg', 2), ('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_47_5600.jpg', 2), ('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_41_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_36_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_29_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/05/56/image_18032025_05_56_23_5875.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f853e8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f853e8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f853e8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:57:32.697620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/57/image_18032025_05_57_53_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/05/57/image_18032025_05_57_47_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/05/57/image_18032025_05_57_42_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/05/57/image_18032025_05_57_35_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/05/57/image_18032025_05_57_29_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/05/57/image_18032025_05_57_24_6640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f944b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f944b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f944b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:59:02.785061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/58/image_18032025_05_58_53_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/05/58/image_18032025_05_58_48_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/05/58/image_18032025_05_58_41_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/05/58/image_18032025_05_58_35_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/05/58/image_18032025_05_58_29_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/05/58/image_18032025_05_58_23_5616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b7bef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b7bef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b7bef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 05:59:32.249551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_53_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_47_5979.jpg', 2), ('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_41_5935.jpg', 2), ('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_35_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_29_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_23_5826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c332f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c332f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c332f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:00:02.762670
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_53_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_47_5979.jpg', 2), ('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_41_5935.jpg', 2), ('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_35_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_29_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/05/59/image_18032025_05_59_23_5826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9268eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9268eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9268eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:00:32.444132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_53_5066.jpg', 2), ('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_48_6819.jpg', 2), ('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_41_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_35_5815.jpg', 2), ('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_29_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_24_6045.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad4a5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad4a5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad4a5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:01:02.918104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_53_5066.jpg', 2), ('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_48_6819.jpg', 2), ('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_41_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_35_5815.jpg', 2), ('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_29_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/06/00/image_18032025_06_00_24_6045.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f853eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f853eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f853eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:01:32.505920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_53_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_47_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_42_6757.jpg', 2), ('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_35_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_29_5849.jpg', 2), ('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_23_5785.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f875ecf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f875ecf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f875ecf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:02:03.054398
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_53_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_47_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_42_6757.jpg', 2), ('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_35_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_29_5849.jpg', 2), ('/home/nano/Desktop/images/18032025/06/01/image_18032025_06_01_23_5785.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a1fdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:02:32.611948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_54_6645.jpg', 2), ('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_47_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_41_6610.jpg', 2), ('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_35_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_29_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_24_6637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa854f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa854f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa854f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:03:03.126565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_54_6645.jpg', 2), ('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_47_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_41_6610.jpg', 2), ('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_35_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_29_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/06/02/image_18032025_06_02_24_6637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa29ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa29ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa29ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:03:32.724748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_53_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_47_5583.jpg', 2), ('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_42_6670.jpg', 2), ('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_35_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_29_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_23_5616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4dbbf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4dbbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4dbbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:04:02.411566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_53_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_47_5583.jpg', 2), ('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_42_6670.jpg', 2), ('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_35_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_29_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/06/03/image_18032025_06_03_23_5616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f986f4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f986f4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f986f4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:04:31.878237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_54_6693.jpg', 2), ('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_47_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_41_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_36_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_29_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_23_5620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90773f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90773f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90773f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:05:02.428367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_54_6693.jpg', 2), ('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_47_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_41_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_36_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_29_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/06/04/image_18032025_06_04_23_5620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e09ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e09ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e09ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:05:31.973528
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_53_5814.jpg', 2), ('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_48_5783.jpg', 2), ('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_42_6848.jpg', 2), ('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_35_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_29_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_23_5753.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7facb00f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facb00f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7facb00f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:06:02.349387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_53_5814.jpg', 2), ('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_48_5783.jpg', 2), ('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_42_6848.jpg', 2), ('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_35_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_29_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/06/05/image_18032025_06_05_23_5753.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a5ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a5ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f79a5ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:06:32.074641
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_53_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_48_5922.jpg', 2), ('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_42_6758.jpg', 2), ('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_35_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_29_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_23_5732.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2627f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2627f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2627f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:07:02.501917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_53_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_48_5922.jpg', 2), ('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_42_6758.jpg', 2), ('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_35_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_29_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/06/06/image_18032025_06_06_23_5732.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f911aaf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f911aaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f911aaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:07:32.188252
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_54_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_47_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_41_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_36_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_29_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_23_5645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2873eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2873eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2873eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:08:02.726995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_54_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_47_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_41_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_36_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_29_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/06/07/image_18032025_06_07_23_5645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad902f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad902f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad902f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:08:32.319091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_53_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_47_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_42_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_35_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_29_5682.jpg', 2), ('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_24_6611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81036f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81036f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81036f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:09:02.873449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_53_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_47_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_42_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_35_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_29_5682.jpg', 2), ('/home/nano/Desktop/images/18032025/06/08/image_18032025_06_08_24_6611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d09ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d09ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d09ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:09:32.404844
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_53_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_47_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_41_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_35_5722.jpg', 2), ('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_30_6778.jpg', 2), ('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_23_5763.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f795e6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f795e6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f795e6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:10:02.853200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_53_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_47_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_41_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_35_5722.jpg', 2), ('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_30_6778.jpg', 2), ('/home/nano/Desktop/images/18032025/06/09/image_18032025_06_09_23_5763.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd77f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd77f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9dd77f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:10:32.507371
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_54_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_48_6833.jpg', 2), ('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_41_5713.jpg', 2), ('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_35_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_29_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_24_6854.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab170f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab170f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab170f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:11:03.004184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_54_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_48_6833.jpg', 2), ('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_41_5713.jpg', 2), ('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_35_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_29_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/06/10/image_18032025_06_10_24_6854.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c67cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c67cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c67cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:11:32.688520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_53_5688.jpg', 2), ('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_48_6790.jpg', 2), ('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_35_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_29_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_24_6758.jpg', 2), ('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_17_5719.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e69bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e69bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e69bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:12:02.126800
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_53_5688.jpg', 2), ('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_48_6790.jpg', 2), ('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_35_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_29_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_24_6758.jpg', 2), ('/home/nano/Desktop/images/18032025/06/11/image_18032025_06_11_17_5719.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1d03f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1d03f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1d03f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:12:31.780128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_54_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_47_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_41_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_36_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_29_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_24_6652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa717f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa717f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa717f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:13:02.399743
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_54_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_47_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_41_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_36_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_29_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/06/12/image_18032025_06_12_24_6652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc04f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc04f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc04f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:13:31.858133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_53_5598.jpg', 2), ('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_48_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_41_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_35_5598.jpg', 2), ('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_30_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_23_5647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b6aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b6aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1b6aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:14:02.549494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_53_5598.jpg', 2), ('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_48_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_41_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_35_5598.jpg', 2), ('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_30_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/06/13/image_18032025_06_13_23_5647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78ff4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78ff4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78ff4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:14:31.968168
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_53_5707.jpg', 2), ('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_47_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_41_5716.jpg', 2), ('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_36_6711.jpg', 2), ('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_29_5677.jpg', 2), ('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_23_5633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ba5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ba5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4ba5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:15:02.486688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_53_5707.jpg', 2), ('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_47_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_41_5716.jpg', 2), ('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_36_6711.jpg', 2), ('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_29_5677.jpg', 2), ('/home/nano/Desktop/images/18032025/06/14/image_18032025_06_14_23_5633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87d6aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87d6aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87d6aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:15:32.076735
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_54_6665.jpg', 2), ('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_47_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_41_5595.jpg', 2), ('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_36_6737.jpg', 2), ('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_29_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_23_5898.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4c0ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4c0ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4c0ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:16:02.634208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_54_6665.jpg', 2), ('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_47_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_41_5595.jpg', 2), ('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_36_6737.jpg', 2), ('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_29_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/06/15/image_18032025_06_15_23_5898.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ac6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ac6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ac6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:16:32.218322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_41_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_35_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_29_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_17_5801.jpg', 2), ('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_12_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_05_5666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbeaf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbeaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbeaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:17:02.553065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_41_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_35_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_29_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_17_5801.jpg', 2), ('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_12_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/06/16/image_18032025_06_16_05_5666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0c76f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0c76f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0c76f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:17:32.301298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_53_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_48_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_41_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_35_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_17_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_11_5900.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac0adf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac0adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac0adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:18:02.612783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_53_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_48_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_41_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_35_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_17_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/06/17/image_18032025_06_17_11_5900.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e1bef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e1bef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e1bef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:18:32.405292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_54_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_47_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_41_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_36_6681.jpg', 2), ('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_29_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_24_6619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9383ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9383ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9383ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:19:03.193690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_54_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_47_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_41_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_36_6681.jpg', 2), ('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_29_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/06/18/image_18032025_06_18_24_6619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c813eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c813eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c813eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:19:32.504757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_54_6806.jpg', 2), ('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_47_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_41_5727.jpg', 2), ('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_35_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_30_6659.jpg', 2), ('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_23_5667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d206f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d206f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d206f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:20:02.947635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_54_6806.jpg', 2), ('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_47_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_41_5727.jpg', 2), ('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_35_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_30_6659.jpg', 2), ('/home/nano/Desktop/images/18032025/06/19/image_18032025_06_19_23_5667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89bf2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89bf2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89bf2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:20:32.625565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_53_5950.jpg', 2), ('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_48_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_42_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_36_6860.jpg', 2), ('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_29_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_23_5848.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f5b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f5b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f5b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:21:03.198649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_53_5950.jpg', 2), ('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_48_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_42_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_36_6860.jpg', 2), ('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_29_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/06/20/image_18032025_06_20_23_5848.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92515eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92515eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92515eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:21:32.711702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_53_5821.jpg', 2), ('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_47_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_41_5891.jpg', 2), ('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_36_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_30_6860.jpg', 2), ('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_23_5922.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99dc3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99dc3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99dc3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:22:02.307049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_53_5821.jpg', 2), ('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_47_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_41_5891.jpg', 2), ('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_36_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_30_6860.jpg', 2), ('/home/nano/Desktop/images/18032025/06/21/image_18032025_06_21_23_5922.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f893c4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f893c4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f893c4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:22:31.810695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_48_6710.jpg', 2), ('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_41_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_35_5604.jpg', 2), ('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_30_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_23_5672.jpg', 2), ('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_18_5746.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5768eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5768eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5768eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:23:02.353604
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_48_6710.jpg', 2), ('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_41_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_35_5604.jpg', 2), ('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_30_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_23_5672.jpg', 2), ('/home/nano/Desktop/images/18032025/06/22/image_18032025_06_22_18_5746.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89445f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89445f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89445f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:23:31.947871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_53_5674.jpg', 2), ('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_47_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_41_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_35_5861.jpg', 2), ('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_29_5678.jpg', 2), ('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_24_6816.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa689ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa689ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa689ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:24:02.845964
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_53_5674.jpg', 2), ('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_47_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_41_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_35_5861.jpg', 2), ('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_29_5678.jpg', 2), ('/home/nano/Desktop/images/18032025/06/23/image_18032025_06_23_24_6816.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb98f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb98f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cb98f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:24:32.086975
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_53_5599.jpg', 2), ('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_48_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_41_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_35_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_30_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_23_5647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f871ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f871ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f871ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:25:02.402463
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_53_5599.jpg', 2), ('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_48_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_41_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_35_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_30_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/06/24/image_18032025_06_24_23_5647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ea0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ea0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90ea0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:25:32.214938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_53_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_48_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_41_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_35_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_30_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_24_6891.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d2f0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d2f0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d2f0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:26:02.674176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_53_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_48_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_41_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_35_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_30_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_24_6891.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87479eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87479eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87479eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:26:32.307021
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/26/image_18032025_06_26_41_5913.jpg', 2), ('/home/nano/Desktop/images/18032025/06/26/image_18032025_06_26_17_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/06/26/image_18032025_06_26_11_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/06/26/image_18032025_06_26_06_6631.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_59_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_53_5632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fbb8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fbb8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fbb8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:27:02.897093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/26/image_18032025_06_26_41_5913.jpg', 2), ('/home/nano/Desktop/images/18032025/06/26/image_18032025_06_26_17_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/06/26/image_18032025_06_26_11_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/06/26/image_18032025_06_26_06_6631.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_59_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/06/25/image_18032025_06_25_53_5632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2591eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2591eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2591eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:27:32.408052
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_53_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_47_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_42_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_35_5669.jpg', 2), ('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_29_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_24_6750.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80616f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80616f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80616f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:28:02.785249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_53_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_47_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_42_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_35_5669.jpg', 2), ('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_29_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/06/27/image_18032025_06_27_24_6750.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb48c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb48c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb48c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:28:32.550782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_53_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_47_5836.jpg', 2), ('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_41_5903.jpg', 2), ('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_36_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_30_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_23_5595.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7fdef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7fdef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7fdef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:29:03.415734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_06_6865.jpg', 2), ('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_53_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_47_5836.jpg', 2), ('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_41_5903.jpg', 2), ('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_36_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/06/28/image_18032025_06_28_30_6648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f35cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f35cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f35cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:29:32.653597
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_53_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_47_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_41_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_35_5988.jpg', 2), ('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_29_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_23_5835.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f931edf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f931edf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f931edf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:30:02.213109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_53_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_47_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_41_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_35_5988.jpg', 2), ('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_29_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/06/29/image_18032025_06_29_23_5835.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f916f3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f916f3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f916f3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:30:31.778018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_53_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_48_6770.jpg', 2), ('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_41_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_35_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_29_5902.jpg', 2), ('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_23_5987.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78f7ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78f7ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78f7ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:31:02.419904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_53_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_48_6770.jpg', 2), ('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_41_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_35_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_29_5902.jpg', 2), ('/home/nano/Desktop/images/18032025/06/30/image_18032025_06_30_23_5987.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d010f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d010f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d010f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:31:31.880878
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_53_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_48_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_42_5998.jpg', 2), ('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_36_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_30_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_24_6827.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c35f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c35f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89c35f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:32:02.609658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_53_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_48_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_42_5998.jpg', 2), ('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_36_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_30_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/06/31/image_18032025_06_31_24_6827.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99a18f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99a18f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99a18f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:32:31.990336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_54_6652.jpg', 2), ('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_47_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_41_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_36_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_29_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_24_6650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78e81f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78e81f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78e81f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:33:02.646869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_54_6652.jpg', 2), ('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_47_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_41_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_36_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_29_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/06/32/image_18032025_06_32_24_6650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d828f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d828f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d828f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:33:32.093767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_53_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_47_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_42_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_35_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_29_6626.jpg', 2), ('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_23_5622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1047f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1047f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1047f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:34:03.069525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_53_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_47_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_42_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_35_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_29_6626.jpg', 2), ('/home/nano/Desktop/images/18032025/06/33/image_18032025_06_33_23_5622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c641f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c641f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c641f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:34:32.191091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_53_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_47_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_41_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_36_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_29_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_23_5650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91f62eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91f62eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91f62eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:35:02.753728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_53_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_47_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_41_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_36_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_29_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/06/34/image_18032025_06_34_23_5650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4cebf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4cebf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4cebf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:35:32.307324
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_53_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_47_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_42_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_36_6764.jpg', 2), ('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_29_5917.jpg', 2), ('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_23_6028.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92464f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92464f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92464f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:36:02.916362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_53_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_47_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_42_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_36_6764.jpg', 2), ('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_29_5917.jpg', 2), ('/home/nano/Desktop/images/18032025/06/35/image_18032025_06_35_23_6028.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a38df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a38df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a38df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:36:32.405516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_54_5888.jpg', 2), ('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_48_5951.jpg', 2), ('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_42_6820.jpg', 2), ('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_35_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_29_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_23_5712.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81ccff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81ccff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81ccff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:37:03.155807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_54_5888.jpg', 2), ('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_48_5951.jpg', 2), ('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_42_6820.jpg', 2), ('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_35_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_29_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/06/36/image_18032025_06_36_23_5712.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b287eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b287eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b287eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:37:32.520773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_47_5720.jpg', 2), ('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_41_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_35_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_30_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_24_5972.jpg', 2), ('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_18_6795.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e9cbf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e9cbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e9cbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:38:03.299955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_47_5720.jpg', 2), ('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_41_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_35_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_30_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_24_5972.jpg', 2), ('/home/nano/Desktop/images/18032025/06/37/image_18032025_06_37_18_6795.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b689f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b689f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b689f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:38:32.678247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_54_6625.jpg', 2), ('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_47_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_42_6645.jpg', 2), ('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_35_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_29_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_24_6654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99ec5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99ec5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99ec5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:39:02.207324
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_54_6625.jpg', 2), ('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_47_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_42_6645.jpg', 2), ('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_35_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_29_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/06/38/image_18032025_06_38_24_6654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a4bef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a4bef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a4bef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:39:31.775292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_53_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_48_6615.jpg', 2), ('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_41_5690.jpg', 2), ('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_35_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_30_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_23_5615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8480bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8480bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8480bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:40:02.591614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_53_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_48_6615.jpg', 2), ('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_41_5690.jpg', 2), ('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_35_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_30_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/06/39/image_18032025_06_39_23_5615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76ef7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76ef7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76ef7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:40:31.898029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_54_6681.jpg', 2), ('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_47_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_41_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_36_6668.jpg', 2), ('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_29_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_23_5621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7adaf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7adaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7adaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:41:02.480302
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_54_6681.jpg', 2), ('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_47_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_41_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_36_6668.jpg', 2), ('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_29_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/06/40/image_18032025_06_40_23_5621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafd09f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafd09f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafd09f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:41:31.998568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_53_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_47_5732.jpg', 2), ('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_42_6750.jpg', 2), ('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_35_5747.jpg', 2), ('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_29_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_23_5759.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f904f7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f904f7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f904f7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:42:02.663423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_53_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_47_5732.jpg', 2), ('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_42_6750.jpg', 2), ('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_35_5747.jpg', 2), ('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_29_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/06/41/image_18032025_06_41_23_5759.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e4f7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e4f7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e4f7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:42:32.101229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_53_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_48_5768.jpg', 2), ('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_42_6796.jpg', 2), ('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_35_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_29_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_23_5739.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7993f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7993f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7993f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:43:02.824717
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_53_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_48_5768.jpg', 2), ('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_42_6796.jpg', 2), ('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_35_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_29_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/06/42/image_18032025_06_42_23_5739.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b232f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b232f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b232f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:43:32.194407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_53_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_47_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_42_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_35_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_29_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_23_5642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fb07f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fb07f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fb07f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:44:03.251231
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_53_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_47_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_42_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_35_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_29_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_23_5642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac6adf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac6adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac6adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:44:32.320819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/44/image_18032025_06_44_53_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/06/44/image_18032025_06_44_47_5998.jpg', 2), ('/home/nano/Desktop/images/18032025/06/44/image_18032025_06_44_41_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/06/44/image_18032025_06_44_35_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_44_00_6686.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_53_5657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e93f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e93f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9e93f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:45:02.989869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/44/image_18032025_06_44_53_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/06/44/image_18032025_06_44_47_5998.jpg', 2), ('/home/nano/Desktop/images/18032025/06/44/image_18032025_06_44_41_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/06/44/image_18032025_06_44_35_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_44_00_6686.jpg', 2), ('/home/nano/Desktop/images/18032025/06/43/image_18032025_06_43_53_5657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa17fef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa17fef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa17fef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:45:32.436673
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_53_5955.jpg', 2), ('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_47_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_42_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_35_5728.jpg', 2), ('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_29_5824.jpg', 2), ('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_23_5768.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf81f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf81f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bf81f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:46:03.268619
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_53_5955.jpg', 2), ('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_47_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_42_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_35_5728.jpg', 2), ('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_29_5824.jpg', 2), ('/home/nano/Desktop/images/18032025/06/45/image_18032025_06_45_23_5768.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91521f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91521f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91521f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:46:32.525727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_53_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_48_5700.jpg', 2), ('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_42_6753.jpg', 2), ('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_35_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_29_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_24_5899.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ae8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ae8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96ae8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:47:03.258663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_05_5842.jpg', 2), ('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_53_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_48_5700.jpg', 2), ('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_42_6753.jpg', 2), ('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_35_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/06/46/image_18032025_06_46_29_5752.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7422f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7422f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7422f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:47:32.645232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_54_6750.jpg', 2), ('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_47_5712.jpg', 2), ('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_41_5742.jpg', 2), ('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_35_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_30_5933.jpg', 2), ('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_24_5916.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90865f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90865f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90865f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:48:02.449928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_54_6750.jpg', 2), ('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_47_5712.jpg', 2), ('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_41_5742.jpg', 2), ('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_35_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_30_5933.jpg', 2), ('/home/nano/Desktop/images/18032025/06/47/image_18032025_06_47_24_5916.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fab7daf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab7daf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fab7daf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:48:31.756987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_54_5800.jpg', 2), ('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_48_6879.jpg', 2), ('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_41_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_35_6028.jpg', 2), ('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_29_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_23_5813.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94ca4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94ca4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94ca4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:49:02.770429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_54_5800.jpg', 2), ('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_48_6879.jpg', 2), ('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_41_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_35_6028.jpg', 2), ('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_29_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/06/48/image_18032025_06_48_23_5813.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e6dcf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e6dcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e6dcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:49:31.862239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_54_5904.jpg', 2), ('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_48_6810.jpg', 2), ('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_41_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_35_5792.jpg', 2), ('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_29_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_24_6713.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb23c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb23c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb23c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:50:02.630820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_54_5904.jpg', 2), ('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_48_6810.jpg', 2), ('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_41_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_35_5792.jpg', 2), ('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_29_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/06/49/image_18032025_06_49_24_6713.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f851f4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f851f4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f851f4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:50:32.014850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_53_5925.jpg', 2), ('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_47_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_41_5715.jpg', 2), ('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_36_6795.jpg', 2), ('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_29_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_23_5908.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f767b4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f767b4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f767b4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:51:02.793134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_53_5925.jpg', 2), ('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_47_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_41_5715.jpg', 2), ('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_36_6795.jpg', 2), ('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_29_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/06/50/image_18032025_06_50_23_5908.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f4ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f4ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82f4ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:51:32.124050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_54_6711.jpg', 2), ('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_47_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_41_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_35_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_29_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_23_5744.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e407f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e407f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9e407f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:52:02.851700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_54_6711.jpg', 2), ('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_47_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_41_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_35_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_29_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/06/51/image_18032025_06_51_23_5744.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ccc4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ccc4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ccc4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:52:32.228609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_53_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_48_6717.jpg', 2), ('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_41_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_35_6620.jpg', 2), ('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_29_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_23_5687.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc0ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc0ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fafc0ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:53:02.950248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_06_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_53_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_48_6717.jpg', 2), ('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_41_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_35_6620.jpg', 2), ('/home/nano/Desktop/images/18032025/06/52/image_18032025_06_52_29_5634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f719f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f719f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f719f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:53:32.353457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_53_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_47_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_42_6669.jpg', 2), ('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_35_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_29_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_24_6622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76fddf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76fddf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76fddf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:54:03.287047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_53_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_47_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_42_6669.jpg', 2), ('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_35_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_29_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/06/53/image_18032025_06_53_24_6622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99962eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99962eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99962eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:54:32.491714
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_48_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_41_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_35_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_30_6621.jpg', 2), ('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_23_5677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b4d3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b4d3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b4d3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:55:02.968620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_48_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_41_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_35_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_30_6621.jpg', 2), ('/home/nano/Desktop/images/18032025/06/54/image_18032025_06_54_23_5677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c22f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c22f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91c22f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:55:32.610764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_53_5947.jpg', 2), ('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_47_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_41_5723.jpg', 2), ('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_35_5765.jpg', 2), ('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_30_6746.jpg', 2), ('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_23_5822.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7a60f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7a60f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7a60f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:56:03.364862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_53_5947.jpg', 2), ('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_47_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_41_5723.jpg', 2), ('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_35_5765.jpg', 2), ('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_30_6746.jpg', 2), ('/home/nano/Desktop/images/18032025/06/55/image_18032025_06_55_23_5822.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5b5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5b5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5b5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:56:32.740648
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_54_6690.jpg', 2), ('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_47_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_41_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_35_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_29_5602.jpg', 2), ('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_24_6633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a3a7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a3a7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a3a7eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:57:02.488230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_54_6690.jpg', 2), ('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_47_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_41_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_35_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_29_5602.jpg', 2), ('/home/nano/Desktop/images/18032025/06/56/image_18032025_06_56_24_6633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cc9ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cc9ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cc9ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:57:31.832297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_53_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_42_6621.jpg', 2), ('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_35_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_29_6605.jpg', 2), ('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_23_5648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9529bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9529bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9529bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:58:02.473651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_53_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_42_6621.jpg', 2), ('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_35_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_29_6605.jpg', 2), ('/home/nano/Desktop/images/18032025/06/57/image_18032025_06_57_23_5648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f819f6eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819f6eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819f6eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:59:03.464866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/58/image_18032025_06_58_54_6683.jpg', 2), ('/home/nano/Desktop/images/18032025/06/58/image_18032025_06_58_47_5725.jpg', 2), ('/home/nano/Desktop/images/18032025/06/58/image_18032025_06_58_41_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/06/58/image_18032025_06_58_35_6622.jpg', 2), ('/home/nano/Desktop/images/18032025/06/58/image_18032025_06_58_29_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/06/58/image_18032025_06_58_23_5632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f918c4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f918c4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f918c4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 06:59:32.649262
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_53_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_48_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_41_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_35_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_30_6671.jpg', 2), ('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_23_5619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2d6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2d6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f2d6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:00:02.328662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_53_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_48_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_41_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_35_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_30_6671.jpg', 2), ('/home/nano/Desktop/images/18032025/06/59/image_18032025_06_59_23_5619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b220f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b220f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b220f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:00:31.770988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_53_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_47_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_42_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_35_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_29_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_24_6678.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb43d9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb43d9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb43d9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:01:02.328622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_53_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_47_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_42_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_35_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_29_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/07/00/image_18032025_07_00_24_6678.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa124f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa124f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa124f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:01:31.891103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_53_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_48_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_36_6684.jpg', 2), ('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_29_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_23_5631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8353beb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8353beb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8353beb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:02:02.515888
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_53_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_48_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_36_6684.jpg', 2), ('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_29_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/07/01/image_18032025_07_01_23_5631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6db1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6db1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6db1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:02:31.971746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_53_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_47_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_42_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_35_5659.jpg', 2), ('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_29_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_24_6627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2007f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2007f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2007f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:03:02.697478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_53_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_47_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_42_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_35_5659.jpg', 2), ('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_29_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/07/02/image_18032025_07_02_24_6627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b89f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b89f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b89f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:03:32.093399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_53_5739.jpg', 2), ('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_47_5735.jpg', 2), ('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_42_6762.jpg', 2), ('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_35_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_29_5777.jpg', 2), ('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_23_5761.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa54f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa54f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa54f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:04:02.976385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_53_5739.jpg', 2), ('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_47_5735.jpg', 2), ('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_42_6762.jpg', 2), ('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_35_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_29_5777.jpg', 2), ('/home/nano/Desktop/images/18032025/07/03/image_18032025_07_03_23_5761.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a54eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a54eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2a54eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:04:32.207672
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_53_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_47_5992.jpg', 2), ('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_41_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_36_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_29_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_23_5759.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91542f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91542f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91542f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:05:02.878730
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_06_6823.jpg', 2), ('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_53_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_47_5992.jpg', 2), ('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_41_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_36_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/07/04/image_18032025_07_04_29_5757.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa708ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa708ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa708ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:05:32.327280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_53_5723.jpg', 2), ('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_47_5753.jpg', 2), ('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_42_6723.jpg', 2), ('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_35_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_29_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_17_5728.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77400eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77400eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77400eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:06:02.989807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_53_5723.jpg', 2), ('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_47_5753.jpg', 2), ('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_42_6723.jpg', 2), ('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_35_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_29_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/07/05/image_18032025_07_05_17_5728.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f942a1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f942a1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f942a1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:06:32.478079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_54_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_47_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_41_6592.jpg', 2), ('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_35_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_29_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_24_6620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ea4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ea4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98ea4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:07:03.139711
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_54_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_47_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_41_6592.jpg', 2), ('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_35_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_29_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/07/06/image_18032025_07_06_24_6620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb25d9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb25d9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb25d9eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:07:32.584100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_53_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_47_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_42_6660.jpg', 2), ('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_35_5592.jpg', 2), ('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_30_6617.jpg', 2), ('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_23_5629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f78117f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78117f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f78117f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:08:03.247323
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_53_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_47_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_42_6660.jpg', 2), ('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_35_5592.jpg', 2), ('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_30_6617.jpg', 2), ('/home/nano/Desktop/images/18032025/07/07/image_18032025_07_07_23_5629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa34fff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa34fff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa34fff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:08:32.677427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_53_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_48_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_41_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_36_6658.jpg', 2), ('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_29_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_23_5614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b85f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b85f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91b85f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:09:02.612668
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_53_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_48_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_41_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_36_6658.jpg', 2), ('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_29_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/07/08/image_18032025_07_08_23_5614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92cb1eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92cb1eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92cb1eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:09:31.796879
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_53_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_47_5722.jpg', 2), ('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_42_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_36_6822.jpg', 2), ('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_29_5708.jpg', 2), ('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_23_5812.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c5f8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c5f8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c5f8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:10:02.633950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_53_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_47_5722.jpg', 2), ('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_42_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_36_6822.jpg', 2), ('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_29_5708.jpg', 2), ('/home/nano/Desktop/images/18032025/07/09/image_18032025_07_09_23_5812.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa39adf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa39adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa39adf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:10:31.927140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_53_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_47_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_41_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_36_5903.jpg', 2), ('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_30_6826.jpg', 2), ('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_23_5720.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77b4feb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77b4feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77b4feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:11:02.486265
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_53_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_47_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_41_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_36_5903.jpg', 2), ('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_30_6826.jpg', 2), ('/home/nano/Desktop/images/18032025/07/10/image_18032025_07_10_23_5720.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f915a7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f915a7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f915a7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:11:32.025404
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_53_5678.jpg', 2), ('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_48_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_41_5610.jpg', 2), ('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_36_6621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_29_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_23_5619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed90f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed90f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ed90f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:12:02.756443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_53_5678.jpg', 2), ('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_48_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_41_5610.jpg', 2), ('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_36_6621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_29_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/07/11/image_18032025_07_11_23_5619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d760f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d760f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d760f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:12:32.190401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_53_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_48_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_41_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_35_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_30_5949.jpg', 2), ('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_24_6626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac7e8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac7e8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac7e8eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:13:02.852248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_53_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_48_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_41_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_35_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_30_5949.jpg', 2), ('/home/nano/Desktop/images/18032025/07/12/image_18032025_07_12_24_6626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9755f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9755f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9755f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:13:32.317655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_54_5930.jpg', 2), ('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_48_6792.jpg', 2), ('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_41_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_35_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_29_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_23_5825.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bccbf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bccbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bccbf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:14:03.264104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_54_5930.jpg', 2), ('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_48_6792.jpg', 2), ('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_41_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_35_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_29_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/07/13/image_18032025_07_13_23_5825.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2c97f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2c97f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2c97f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:14:32.430797
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_53_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_47_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_41_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_35_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_30_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_24_6826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa32cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa32cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa32cdf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:15:03.018464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_53_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_47_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_41_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_35_5914.jpg', 2), ('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_30_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/07/14/image_18032025_07_14_24_6826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f964f9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f964f9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f964f9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:15:32.561140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_53_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_47_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_41_5818.jpg', 2), ('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_35_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_29_5825.jpg', 2), ('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_24_5922.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f77013f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77013f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f77013f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:16:03.391450
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_53_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_47_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_41_5818.jpg', 2), ('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_35_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_29_5825.jpg', 2), ('/home/nano/Desktop/images/18032025/07/15/image_18032025_07_15_24_5922.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb37feeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb37feeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb37feeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:16:32.724766
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_54_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_47_5601.jpg', 2), ('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_41_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_36_6805.jpg', 2), ('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_29_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_23_5626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8640ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8640ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8640ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:17:02.307065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_54_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_47_5601.jpg', 2), ('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_41_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_36_6805.jpg', 2), ('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_29_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/07/16/image_18032025_07_16_23_5626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1573f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1573f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb1573f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:17:31.823427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_53_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_47_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_41_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_35_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_30_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_23_5681.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8483aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8483aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8483aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:18:02.573395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_53_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_47_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_41_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_35_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_30_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/07/17/image_18032025_07_17_23_5681.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b7df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b7df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b7df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:18:31.941747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_53_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_48_6605.jpg', 2), ('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_41_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_36_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_29_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_23_5603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d76f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d76f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1d76f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:19:02.965984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_53_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_48_6605.jpg', 2), ('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_41_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_36_6612.jpg', 2), ('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_29_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/07/18/image_18032025_07_18_23_5603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faad42f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faad42f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faad42f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:19:32.032738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_54_6767.jpg', 2), ('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_47_5763.jpg', 2), ('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_41_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_35_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_30_6749.jpg', 2), ('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_23_5760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80003f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80003f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80003f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:20:02.465733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_54_6767.jpg', 2), ('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_47_5763.jpg', 2), ('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_41_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_35_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_30_6749.jpg', 2), ('/home/nano/Desktop/images/18032025/07/19/image_18032025_07_19_23_5760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8da3df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8da3df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8da3df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:20:32.160490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_54_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_41_6670.jpg', 2), ('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_35_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_29_5717.jpg', 2), ('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_23_5899.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8819cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8819cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8819cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:21:02.777083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_54_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_41_6670.jpg', 2), ('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_35_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_29_5717.jpg', 2), ('/home/nano/Desktop/images/18032025/07/20/image_18032025_07_20_23_5899.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d832f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d832f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9d832f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:21:32.276768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_48_6692.jpg', 2), ('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_41_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_35_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_30_6615.jpg', 2), ('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_23_5622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f82cd1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82cd1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f82cd1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:22:02.958248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_48_6692.jpg', 2), ('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_41_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_35_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_30_6615.jpg', 2), ('/home/nano/Desktop/images/18032025/07/21/image_18032025_07_21_23_5622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ce40f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ce40f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7ce40f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:22:32.406424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_53_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_48_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_41_5690.jpg', 2), ('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_35_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_30_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_23_5666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b40beb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b40beb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b40beb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:23:03.095330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_53_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_48_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_41_5690.jpg', 2), ('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_35_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_30_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/07/22/image_18032025_07_22_23_5666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f644f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f644f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f644f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:23:32.537937
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_54_6851.jpg', 2), ('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_47_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_41_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_35_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_29_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_24_5798.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a789f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a789f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a789f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:24:03.502688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_54_6851.jpg', 2), ('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_47_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_41_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_35_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_29_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/07/23/image_18032025_07_23_24_5798.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c383f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c383f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c383f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:24:32.655272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_53_6015.jpg', 2), ('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_47_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_42_5897.jpg', 2), ('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_36_6755.jpg', 2), ('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_29_5764.jpg', 2), ('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_23_5846.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b117eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b117eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7b117eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:25:02.259065
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_53_6015.jpg', 2), ('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_47_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_42_5897.jpg', 2), ('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_36_6755.jpg', 2), ('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_29_5764.jpg', 2), ('/home/nano/Desktop/images/18032025/07/24/image_18032025_07_24_23_5846.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad738f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad738f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad738f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:25:31.817552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_53_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_47_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_41_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_36_6723.jpg', 2), ('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_29_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_23_6037.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb26c3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb26c3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb26c3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:26:02.472240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_53_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_47_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_41_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_36_6723.jpg', 2), ('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_29_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/07/25/image_18032025_07_25_23_6037.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f02f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f02f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86f02f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:26:31.918037
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_54_5795.jpg', 2), ('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_48_6803.jpg', 2), ('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_41_5906.jpg', 2), ('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_29_5756.jpg', 2), ('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_23_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_18_6798.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb351ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb351ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb351ceb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:27:02.365437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_54_5795.jpg', 2), ('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_48_6803.jpg', 2), ('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_41_5906.jpg', 2), ('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_29_5756.jpg', 2), ('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_23_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/07/26/image_18032025_07_26_18_6798.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ada7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ada7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ada7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:27:32.004297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_54_6671.jpg', 2), ('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_47_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_41_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_36_6757.jpg', 2), ('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_29_5694.jpg', 2), ('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_23_5686.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d6fef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d6fef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d6fef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:28:02.730190
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_05_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_54_6671.jpg', 2), ('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_47_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_41_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_36_6757.jpg', 2), ('/home/nano/Desktop/images/18032025/07/27/image_18032025_07_27_29_5694.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f705f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f705f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f705f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:28:32.094587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_42_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_35_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_30_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_23_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_17_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_12_6646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac49df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac49df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac49df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:29:03.062426
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_42_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_35_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_30_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_23_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_17_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/07/28/image_18032025_07_28_12_6646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de5cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de5cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de5cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:29:32.228423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_53_5726.jpg', 2), ('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_47_5770.jpg', 2), ('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_41_5764.jpg', 2), ('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_36_6717.jpg', 2), ('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_29_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_23_5630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96150f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96150f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96150f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:30:02.888471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_53_5726.jpg', 2), ('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_47_5770.jpg', 2), ('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_41_5764.jpg', 2), ('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_36_6717.jpg', 2), ('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_29_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/29/image_18032025_07_29_23_5630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf71ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf71ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf71ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:30:32.357266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_54_6764.jpg', 2), ('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_47_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_41_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_35_5735.jpg', 2), ('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_30_6711.jpg', 2), ('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_23_5829.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52a3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52a3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb52a3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:31:03.095718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_54_6764.jpg', 2), ('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_47_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_41_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_35_5735.jpg', 2), ('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_30_6711.jpg', 2), ('/home/nano/Desktop/images/18032025/07/30/image_18032025_07_30_23_5829.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89cabf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89cabf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89cabf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:31:32.442571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_54_6772.jpg', 2), ('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_47_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_41_5923.jpg', 2), ('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_35_5717.jpg', 2), ('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_30_6734.jpg', 2), ('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_23_5709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5f5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5f5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d5f5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:32:03.246149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_54_6772.jpg', 2), ('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_47_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_41_5923.jpg', 2), ('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_35_5717.jpg', 2), ('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_30_6734.jpg', 2), ('/home/nano/Desktop/images/18032025/07/31/image_18032025_07_31_23_5709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f995daf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f995daf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f995daf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:32:32.555771
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_53_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_47_5602.jpg', 2), ('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_42_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_35_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_29_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_24_6875.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4458f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4458f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb4458f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:33:03.240332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_53_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_47_5602.jpg', 2), ('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_42_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_35_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_29_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/32/image_18032025_07_32_24_6875.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5dd1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5dd1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5dd1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:33:32.683827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_53_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_48_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_41_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_35_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_30_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_23_5620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f28cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f28cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f28cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:34:02.631665
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_53_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_48_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_41_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_35_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_30_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/07/33/image_18032025_07_33_23_5620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f910b6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f910b6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f910b6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:34:31.771456
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_54_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_47_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_41_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_35_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_29_5598.jpg', 2), ('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_24_6636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa39f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa39f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa39f6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:35:02.525009
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_05_5703.jpg', 2), ('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_54_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_47_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_41_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_35_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/07/34/image_18032025_07_34_29_5598.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cb8df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cb8df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cb8df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:35:31.973322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_53_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_48_5793.jpg', 2), ('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_42_6805.jpg', 2), ('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_35_5783.jpg', 2), ('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_29_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_23_5747.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9811df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9811df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9811df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:36:02.699779
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_53_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_48_5793.jpg', 2), ('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_42_6805.jpg', 2), ('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_35_5783.jpg', 2), ('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_29_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/07/35/image_18032025_07_35_23_5747.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0cc2eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0cc2eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0cc2eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:36:32.090973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_53_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_47_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_42_6810.jpg', 2), ('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_35_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_29_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_23_5798.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9809ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9809ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9809ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:37:02.608644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_53_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_47_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_42_6810.jpg', 2), ('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_35_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_29_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/07/36/image_18032025_07_36_23_5798.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac1b3eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac1b3eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac1b3eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:37:32.230650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_42_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_35_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_29_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_24_6600.jpg', 2), ('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_17_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_11_5674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aeaef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aeaef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9aeaef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:38:02.860446
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_42_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_35_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_29_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_24_6600.jpg', 2), ('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_17_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/07/37/image_18032025_07_37_11_5674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de47f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de47f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9de47f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:38:32.330936
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_53_5703.jpg', 2), ('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_47_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_42_6687.jpg', 2), ('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_35_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_29_5597.jpg', 2), ('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_24_6653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2adeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2adeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2adeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:39:03.139284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_53_5703.jpg', 2), ('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_47_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_42_6687.jpg', 2), ('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_35_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_29_5597.jpg', 2), ('/home/nano/Desktop/images/18032025/07/38/image_18032025_07_38_24_6653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88105f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88105f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88105f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:39:32.498783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_53_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_47_5700.jpg', 2), ('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_41_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_36_6704.jpg', 2), ('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_29_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_23_5664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac769f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac769f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac769f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:40:03.255004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_53_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_47_5700.jpg', 2), ('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_41_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_36_6704.jpg', 2), ('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_29_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/39/image_18032025_07_39_23_5664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f89502f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89502f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f89502f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:40:32.589882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_53_5941.jpg', 2), ('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_47_5958.jpg', 2), ('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_41_5909.jpg', 2), ('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_35_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_30_6713.jpg', 2), ('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_23_5760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fade89f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fade89f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fade89f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:41:03.300225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_53_5941.jpg', 2), ('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_47_5958.jpg', 2), ('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_41_5909.jpg', 2), ('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_35_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_30_6713.jpg', 2), ('/home/nano/Desktop/images/18032025/07/40/image_18032025_07_40_23_5760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80527f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80527f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80527f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:41:32.702769
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_53_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_48_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_42_6826.jpg', 2), ('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_35_5912.jpg', 2), ('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_29_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_23_5793.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d65ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d65ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d65ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:42:02.323748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_53_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_48_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_42_6826.jpg', 2), ('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_35_5912.jpg', 2), ('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_29_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/07/41/image_18032025_07_41_23_5793.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98d35f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98d35f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98d35f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:42:31.808127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_53_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_47_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_41_5740.jpg', 2), ('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_36_6695.jpg', 2), ('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_29_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_23_5771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f91fa2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91fa2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f91fa2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:43:02.479737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_53_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_47_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_41_5740.jpg', 2), ('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_36_6695.jpg', 2), ('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_29_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/07/42/image_18032025_07_42_23_5771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f856c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f856c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f856c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:43:31.936191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_53_5777.jpg', 2), ('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_47_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_41_5742.jpg', 2), ('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_36_5848.jpg', 2), ('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_24_6685.jpg', 2), ('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_17_5729.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f6b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f6b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f6b9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:44:02.784317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_53_5777.jpg', 2), ('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_47_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_41_5742.jpg', 2), ('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_36_5848.jpg', 2), ('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_24_6685.jpg', 2), ('/home/nano/Desktop/images/18032025/07/43/image_18032025_07_43_17_5729.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bcc2f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bcc2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bcc2f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:44:32.034436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_54_6762.jpg', 2), ('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_47_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_41_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_35_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_30_6741.jpg', 2), ('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_23_5678.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cd38eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cd38eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8cd38eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:45:02.792748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_54_6762.jpg', 2), ('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_47_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_41_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_35_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_30_6741.jpg', 2), ('/home/nano/Desktop/images/18032025/07/44/image_18032025_07_44_23_5678.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa274df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa274df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa274df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:45:32.146621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_53_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_47_5813.jpg', 2), ('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_42_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_36_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_30_5818.jpg', 2), ('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_24_6768.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cf3ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cf3ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7cf3ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:46:02.745966
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_53_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_47_5813.jpg', 2), ('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_42_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_36_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_30_5818.jpg', 2), ('/home/nano/Desktop/images/18032025/07/45/image_18032025_07_45_24_6768.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95e41f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95e41f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95e41f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:46:32.260192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_53_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_47_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_42_6664.jpg', 2), ('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_35_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_29_5721.jpg', 2), ('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_24_5844.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99e6feb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99e6feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99e6feb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:47:03.010741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_53_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_47_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_42_6664.jpg', 2), ('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_35_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_29_5721.jpg', 2), ('/home/nano/Desktop/images/18032025/07/46/image_18032025_07_46_24_5844.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a4caf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a4caf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a4caf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:47:32.382987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_54_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_47_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_41_6619.jpg', 2), ('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_35_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_29_5915.jpg', 2), ('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_23_5616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93d5af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93d5af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93d5af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:48:02.989039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_54_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_47_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_41_6619.jpg', 2), ('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_35_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_29_5915.jpg', 2), ('/home/nano/Desktop/images/18032025/07/47/image_18032025_07_47_23_5616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9556af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9556af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9556af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:48:32.471047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_54_6709.jpg', 2), ('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_47_5736.jpg', 2), ('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_41_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_35_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_30_6630.jpg', 2), ('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_23_5614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98253f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98253f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98253f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:49:03.422649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_54_6709.jpg', 2), ('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_47_5736.jpg', 2), ('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_41_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_35_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_30_6630.jpg', 2), ('/home/nano/Desktop/images/18032025/07/48/image_18032025_07_48_23_5614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2eb1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2eb1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2eb1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:49:32.559445
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_54_6841.jpg', 2), ('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_47_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_41_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_35_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_29_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_24_5826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f902a8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f902a8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f902a8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:50:03.383049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_54_6841.jpg', 2), ('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_47_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_41_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_35_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_29_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/07/49/image_18032025_07_49_24_5826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92734f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92734f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92734f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:50:32.778182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_54_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_48_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_42_6784.jpg', 2), ('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_35_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_29_5815.jpg', 2), ('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_23_5815.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98703f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98703f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98703f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:51:02.444361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_54_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_48_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_42_6784.jpg', 2), ('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_35_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_29_5815.jpg', 2), ('/home/nano/Desktop/images/18032025/07/50/image_18032025_07_50_23_5815.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a75ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a75ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a75ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:51:31.877749
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_53_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_48_6818.jpg', 2), ('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_41_5917.jpg', 2), ('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_35_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_29_6017.jpg', 2), ('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_23_5823.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f891aff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f891aff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f891aff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:52:02.514244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_53_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_48_6818.jpg', 2), ('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_41_5917.jpg', 2), ('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_35_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_29_6017.jpg', 2), ('/home/nano/Desktop/images/18032025/07/51/image_18032025_07_51_23_5823.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fad250f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad250f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fad250f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:52:32.010127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_54_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_47_5899.jpg', 2), ('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_41_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_35_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_29_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_23_5779.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4656f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4656f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa4656f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:53:02.770149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_54_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_47_5899.jpg', 2), ('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_41_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_35_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_29_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/07/52/image_18032025_07_52_23_5779.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d85f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d85f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa9d85f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:53:32.099647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_53_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_48_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_41_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_35_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_30_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_23_5645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94cdcf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94cdcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94cdcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:54:02.956237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_53_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_48_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_41_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_35_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_30_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/07/53/image_18032025_07_53_23_5645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8db40f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8db40f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8db40f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:54:32.238745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_54_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_47_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_41_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_36_6623.jpg', 2), ('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_29_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_23_5625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b87f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b87f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f95b87f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:55:02.915175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_54_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_47_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_41_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_36_6623.jpg', 2), ('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_29_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/07/54/image_18032025_07_54_23_5625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8050eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8050eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8050eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:55:32.359614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_54_6731.jpg', 2), ('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_47_5770.jpg', 2), ('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_41_5723.jpg', 2), ('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_35_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_30_6760.jpg', 2), ('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_23_5678.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb600bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb600bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb600bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:56:03.078726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_54_6731.jpg', 2), ('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_47_5770.jpg', 2), ('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_41_5723.jpg', 2), ('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_35_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_30_6760.jpg', 2), ('/home/nano/Desktop/images/18032025/07/55/image_18032025_07_55_23_5678.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac2ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac2ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac2ccf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:56:32.446716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_53_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_48_6661.jpg', 2), ('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_41_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_35_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_29_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_23_5733.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8baceeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8baceeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8baceeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:57:03.215750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_53_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_48_6661.jpg', 2), ('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_41_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_35_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_29_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/07/56/image_18032025_07_56_23_5733.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b487f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b487f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b487f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:57:32.557300
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/57/image_18032025_07_57_53_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/07/57/image_18032025_07_57_47_5605.jpg', 2), ('/home/nano/Desktop/images/18032025/07/57/image_18032025_07_57_42_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/07/57/image_18032025_07_57_35_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/07/57/image_18032025_07_57_29_5607.jpg', 2), ('/home/nano/Desktop/images/18032025/07/57/image_18032025_07_57_24_6649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f90d69f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90d69f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f90d69f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:59:03.091208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_53_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_48_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_41_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_35_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_30_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_23_5618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f99cbcf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99cbcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f99cbcf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 07:59:32.197212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_53_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_48_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_41_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_35_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_30_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_23_5618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e1e1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e1e1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e1e1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:00:02.537461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_53_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_48_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_41_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_35_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_30_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/07/58/image_18032025_07_58_23_5618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3b1af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3b1af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa3b1af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:00:32.063207
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_53_5734.jpg', 2), ('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_47_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_42_5816.jpg', 2), ('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_36_6790.jpg', 2), ('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_29_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_23_5716.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b73ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b73ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b73ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:01:02.904688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_53_5734.jpg', 2), ('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_47_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_42_5816.jpg', 2), ('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_36_6790.jpg', 2), ('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_29_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/08/00/image_18032025_08_00_23_5716.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e45eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e45eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f81e45eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:01:32.238948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_54_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_47_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_41_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_36_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_29_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_24_6627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e85f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e85f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f98e85f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:02:02.920018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_54_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_47_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_41_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_36_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_29_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/08/01/image_18032025_08_01_24_6627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbe8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbe8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fadbe8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:02:32.337734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_53_5610.jpg', 2), ('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_47_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_41_5659.jpg', 2), ('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_35_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_30_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_23_5641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fae694f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae694f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fae694f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:03:03.090214
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_53_5610.jpg', 2), ('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_47_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_41_5659.jpg', 2), ('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_35_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_30_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/08/02/image_18032025_08_02_23_5641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8b33f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8b33f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8b33f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:03:32.445104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_54_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_47_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_41_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_36_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_29_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_23_5624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76562f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76562f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76562f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:04:03.285264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_54_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_47_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_41_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_36_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_29_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/08/03/image_18032025_08_03_23_5624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5a16f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5a16f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5a16f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:04:32.538312
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_53_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_48_6711.jpg', 2), ('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_35_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_30_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_23_5714.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf32deb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf32deb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf32deb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:05:03.252185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_53_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_48_6711.jpg', 2), ('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_41_5693.jpg', 2), ('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_35_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_30_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/08/04/image_18032025_08_04_23_5714.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faadb0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faadb0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faadb0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:05:32.632681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_53_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_48_6691.jpg', 2), ('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_41_5672.jpg', 2), ('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_35_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_30_5733.jpg', 2), ('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_24_6669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f997eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f997eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f997eaf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:06:03.437629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_53_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_48_6691.jpg', 2), ('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_41_5672.jpg', 2), ('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_35_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_30_5733.jpg', 2), ('/home/nano/Desktop/images/18032025/08/05/image_18032025_08_05_24_6669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faff43f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faff43f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faff43f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:06:32.764405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_53_5728.jpg', 2), ('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_47_5907.jpg', 2), ('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_41_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_36_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_29_5598.jpg', 2), ('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_24_6622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e3ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e3ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80e3ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:07:02.518878
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_53_5728.jpg', 2), ('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_47_5907.jpg', 2), ('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_41_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_36_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_29_5598.jpg', 2), ('/home/nano/Desktop/images/18032025/08/06/image_18032025_08_06_24_6622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2c3ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2c3ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb2c3ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:07:31.902833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_54_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_47_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_41_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_36_6678.jpg', 2), ('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_29_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_24_6615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c102f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c102f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c102f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:08:02.638382
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_54_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_47_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_41_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_36_6678.jpg', 2), ('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_29_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/08/07/image_18032025_08_07_24_6615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92a83eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92a83eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92a83eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:08:32.000674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_53_5911.jpg', 2), ('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_48_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_42_6820.jpg', 2), ('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_35_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_29_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_23_5883.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f76b65eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76b65eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f76b65eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:09:02.942862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_53_5911.jpg', 2), ('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_48_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_42_6820.jpg', 2), ('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_35_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_29_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/08/08/image_18032025_08_08_23_5883.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fd63f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fd63f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fd63f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:09:32.096866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_48_6625.jpg', 2), ('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_36_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_29_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_23_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_18_6628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f914b4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f914b4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f914b4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:10:02.762723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_05_5714.jpg', 2), ('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_48_6625.jpg', 2), ('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_36_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_29_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/08/09/image_18032025_08_09_23_5657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93eaef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93eaef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93eaef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:10:32.216756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_54_6689.jpg', 2), ('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_47_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_41_5599.jpg', 2), ('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_36_6630.jpg', 2), ('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_29_5600.jpg', 2), ('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_24_6621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86a64f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86a64f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86a64f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:11:03.034800
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_54_6689.jpg', 2), ('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_47_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_41_5599.jpg', 2), ('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_36_6630.jpg', 2), ('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_29_5600.jpg', 2), ('/home/nano/Desktop/images/18032025/08/10/image_18032025_08_10_24_6621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9db69f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9db69f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9db69f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:11:32.321281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_53_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_47_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_42_6606.jpg', 2), ('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_35_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_30_6628.jpg', 2), ('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_23_5631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f85d4af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85d4af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f85d4af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:12:03.048652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_53_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_47_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_42_6606.jpg', 2), ('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_35_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_30_6628.jpg', 2), ('/home/nano/Desktop/images/18032025/08/11/image_18032025_08_11_23_5631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa67a8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa67a8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa67a8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:12:32.406721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_53_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_47_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_41_5697.jpg', 2), ('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_36_6664.jpg', 2), ('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_29_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_23_5639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2b82f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2b82f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2b82f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:13:03.146144
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_53_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_47_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_41_5697.jpg', 2), ('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_36_6664.jpg', 2), ('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_29_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/08/12/image_18032025_08_12_23_5639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97ddef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97ddef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97ddef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:13:32.533239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_54_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_48_6823.jpg', 2), ('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_41_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_23_5929.jpg', 2), ('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_17_5793.jpg', 2), ('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_11_5751.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9838ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9838ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9838ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:14:03.493504
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_54_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_48_6823.jpg', 2), ('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_41_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_23_5929.jpg', 2), ('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_17_5793.jpg', 2), ('/home/nano/Desktop/images/18032025/08/13/image_18032025_08_13_11_5751.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a404f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a404f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8a404f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:14:32.701487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_53_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_47_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_41_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_36_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_30_6784.jpg', 2), ('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_23_5785.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c637eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c637eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c637eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:15:02.154887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_53_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_47_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_41_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_36_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_30_6784.jpg', 2), ('/home/nano/Desktop/images/18032025/08/14/image_18032025_08_14_23_5785.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2c70f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2c70f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa2c70f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:15:31.784316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_53_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_47_5711.jpg', 2), ('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_41_5710.jpg', 2), ('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_36_6789.jpg', 2), ('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_29_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_17_5737.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4caf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4caf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4caf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:16:02.530365
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_53_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_47_5711.jpg', 2), ('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_41_5710.jpg', 2), ('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_36_6789.jpg', 2), ('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_29_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/08/15/image_18032025_08_15_17_5737.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2f9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2f9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7a2f9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:16:31.910982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_54_6614.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_41_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_36_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_29_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_23_6620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f819c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f819c7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:17:02.622240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_54_6614.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_41_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_36_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_29_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_23_6620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1755f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1755f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1755f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:17:32.019208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/17/image_18032025_08_17_30_5942.jpg', 2), ('/home/nano/Desktop/images/18032025/08/17/image_18032025_08_17_24_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/08/17/image_18032025_08_17_17_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/08/17/image_18032025_08_17_12_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/08/17/image_18032025_08_17_05_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_59_5636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb561df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb561df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb561df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:18:02.647170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/17/image_18032025_08_17_30_5942.jpg', 2), ('/home/nano/Desktop/images/18032025/08/17/image_18032025_08_17_24_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/08/17/image_18032025_08_17_17_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/08/17/image_18032025_08_17_12_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/08/17/image_18032025_08_17_05_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/08/16/image_18032025_08_16_59_5636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5308f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5308f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa5308f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:18:32.109181
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_54_6785.jpg', 2), ('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_47_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_41_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_35_5735.jpg', 2), ('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_30_6763.jpg', 2), ('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_23_5621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa077df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa077df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa077df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:19:03.099371
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_54_6785.jpg', 2), ('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_47_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_41_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_35_5735.jpg', 2), ('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_30_6763.jpg', 2), ('/home/nano/Desktop/images/18032025/08/18/image_18032025_08_18_23_5621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6925f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6925f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6925f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:19:32.242535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_53_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_48_6735.jpg', 2), ('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_41_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_35_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_29_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_24_6814.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb372ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb372ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb372ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:20:02.931919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_53_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_48_6735.jpg', 2), ('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_41_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_35_5744.jpg', 2), ('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_29_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/08/19/image_18032025_08_19_24_6814.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bc0eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bc0eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9bc0eeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:20:32.376510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_54_6763.jpg', 2), ('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_47_5768.jpg', 2), ('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_41_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_35_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_29_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_24_6851.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f94cd0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94cd0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f94cd0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:21:03.067533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_54_6763.jpg', 2), ('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_47_5768.jpg', 2), ('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_41_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_35_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_29_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/08/20/image_18032025_08_20_24_6851.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f96e60f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96e60f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f96e60f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:21:32.490252
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_53_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_47_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_42_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_35_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_29_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_24_6818.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6387f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6387f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6387f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:22:03.212435
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_05_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_53_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_47_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_42_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_35_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/08/21/image_18032025_08_21_29_5667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4bef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4bef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4bef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:22:32.593917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_53_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_48_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_41_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_35_6630.jpg', 2), ('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_29_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_23_5640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f936c5eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f936c5eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f936c5eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:23:03.323409
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_53_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_48_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_41_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_35_6630.jpg', 2), ('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_29_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/08/22/image_18032025_08_22_23_5640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb30e1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb30e1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb30e1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:23:32.690674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_54_6633.jpg', 2), ('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_47_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_42_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_35_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_29_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_24_6630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa088ef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa088ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa088ef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:24:02.683558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_54_6633.jpg', 2), ('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_47_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_42_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_35_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_29_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/08/23/image_18032025_08_23_24_6630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f87caff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87caff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f87caff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:24:31.785000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_53_5897.jpg', 2), ('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_47_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_42_6768.jpg', 2), ('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_35_5740.jpg', 2), ('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_29_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_23_5741.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f80869f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80869f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f80869f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:25:02.322184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_53_5897.jpg', 2), ('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_47_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_42_6768.jpg', 2), ('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_35_5740.jpg', 2), ('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_29_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/08/24/image_18032025_08_24_23_5741.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faffd0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faffd0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faffd0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:25:31.913128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_42_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_35_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_29_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_23_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_17_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_12_6690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b24df28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b24df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8b24df28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:26:02.647443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_42_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_35_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_29_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_23_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_17_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/08/25/image_18032025_08_25_12_6690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0c8bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0c8bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0c8bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:26:32.017665
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_53_6626.jpg', 2), ('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_47_5674.jpg', 2), ('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_41_5913.jpg', 2), ('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_35_5877.jpg', 2), ('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_18_6722.jpg', 2), ('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_11_5783.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f83e97eb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83e97eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f83e97eb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:27:02.629838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_53_6626.jpg', 2), ('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_47_5674.jpg', 2), ('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_41_5913.jpg', 2), ('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_35_5877.jpg', 2), ('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_18_6722.jpg', 2), ('/home/nano/Desktop/images/18032025/08/26/image_18032025_08_26_11_5783.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb013ff28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb013ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb013ff28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:27:32.127818
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_54_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_47_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_42_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_35_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_29_5605.jpg', 2), ('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_24_6636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bda6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bda6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8bda6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:28:02.801480
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_54_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_47_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_42_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_35_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_29_5605.jpg', 2), ('/home/nano/Desktop/images/18032025/08/27/image_18032025_08_27_24_6636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f97870f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97870f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f97870f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:28:32.247280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_53_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_48_6609.jpg', 2), ('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_41_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_35_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_30_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_23_5640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f850d6f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f850d6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f850d6f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:29:03.073493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_53_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_48_6609.jpg', 2), ('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_41_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_35_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_30_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/08/28/image_18032025_08_28_23_5640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f815f0f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f815f0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f815f0f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:29:32.366638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_53_5731.jpg', 2), ('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_48_6705.jpg', 2), ('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_41_5845.jpg', 2), ('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_35_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_29_5762.jpg', 2), ('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_24_6717.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f88dcef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88dcef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f88dcef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:30:03.176432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_53_5731.jpg', 2), ('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_48_6705.jpg', 2), ('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_41_5845.jpg', 2), ('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_35_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_29_5762.jpg', 2), ('/home/nano/Desktop/images/18032025/08/29/image_18032025_08_29_24_6717.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f996a8f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f996a8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f996a8f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:30:32.482642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_53_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_47_5820.jpg', 2), ('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_42_6733.jpg', 2), ('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_35_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_29_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_23_5811.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7afbef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7afbef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7afbef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:31:03.257152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_53_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_47_5820.jpg', 2), ('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_42_6733.jpg', 2), ('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_35_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_29_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/08/30/image_18032025_08_30_23_5811.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f92ba1f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92ba1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f92ba1f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:31:32.579073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_53_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_47_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_42_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_35_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_30_6628.jpg', 2), ('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_23_5626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d999f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d999f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8d999f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:32:03.278384
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_53_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_47_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_42_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_35_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_30_6628.jpg', 2), ('/home/nano/Desktop/images/18032025/08/31/image_18032025_08_31_23_5626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f86388f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86388f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f86388f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:32:32.688707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_53_5687.jpg', 2), ('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_47_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_41_5924.jpg', 2), ('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_36_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_29_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_23_5641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa133cf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa133cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa133cf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:33:02.443136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_53_5687.jpg', 2), ('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_47_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_41_5924.jpg', 2), ('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_36_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_29_5664.jpg', 2), ('/home/nano/Desktop/images/18032025/08/32/image_18032025_08_32_23_5641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa455af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa455af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa455af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:33:31.872047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_53_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_47_5837.jpg', 2), ('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_41_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_35_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_30_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_24_5838.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c3e7f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c3e7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9c3e7f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:34:02.947185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_06_5848.jpg', 2), ('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_53_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_47_5837.jpg', 2), ('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_41_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_35_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/08/33/image_18032025_08_33_30_5854.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93167f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93167f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93167f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:34:32.015891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_53_6016.jpg', 2), ('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_47_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_41_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_35_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_29_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_23_5837.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7911f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7911f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7911f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:35:02.742940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_53_6016.jpg', 2), ('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_47_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_41_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_35_5887.jpg', 2), ('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_29_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/08/34/image_18032025_08_34_23_5837.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e23bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e23bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e23bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:35:32.094740
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_53_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_47_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_41_6171.jpg', 2), ('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_35_5940.jpg', 2), ('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_29_5836.jpg', 2), ('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_23_5884.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faf522f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf522f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faf522f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:36:02.873960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_53_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_47_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_41_6171.jpg', 2), ('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_35_5940.jpg', 2), ('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_29_5836.jpg', 2), ('/home/nano/Desktop/images/18032025/08/35/image_18032025_08_35_23_5884.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f854c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f854c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f854c5f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:36:32.217908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_53_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_48_6653.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_41_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_35_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_30_6619.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_23_5749.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e15af28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e15af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e15af28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:37:02.913815
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_53_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_48_6653.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_41_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_35_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_30_6619.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_23_5749.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f787e9f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f787e9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f787e9f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:37:32.410699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/37/image_18032025_08_37_11_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/08/37/image_18032025_08_37_06_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_59_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_53_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_48_6653.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_41_5648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a2e3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a2e3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a2e3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:38:03.193041
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/37/image_18032025_08_37_11_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/08/37/image_18032025_08_37_06_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_59_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_53_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_48_6653.jpg', 2), ('/home/nano/Desktop/images/18032025/08/36/image_18032025_08_36_41_5648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e19bf28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e19bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e19bf28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:38:32.556768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_53_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_48_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_41_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_35_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_30_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_23_5973.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fa53f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fa53f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7fa53f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:39:03.482340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_53_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_48_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_41_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_35_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_30_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/08/38/image_18032025_08_38_23_5973.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7faa69aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa69aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7faa69aeb8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:39:32.635332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_53_5696.jpg', 2), ('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_48_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_42_6824.jpg', 2), ('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_35_5934.jpg', 2), ('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_29_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_23_5764.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f920e4f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f920e4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f920e4f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:40:03.437158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_53_5696.jpg', 2), ('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_48_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_42_6824.jpg', 2), ('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_35_5934.jpg', 2), ('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_29_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/08/39/image_18032025_08_39_23_5764.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f93caef28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93caef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93caef28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:40:32.754029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_54_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_48_6952.jpg', 2), ('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_41_5024.jpg', 2), ('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_36_6810.jpg', 2), ('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_29_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_23_5738.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18032025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d0c3f28>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d0c3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7d0c3f28>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:41:02.480860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_18032025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
533
2675786
533
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_54_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_48_6952.jpg', 2), ('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_41_5024.jpg', 2), ('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_36_6810.jpg', 2), ('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_29_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_23_5738.jpg', 2)]
{'portfolio_id': 21508857, 'actiontaken': ['Created new portfolio'], 'error': 'Photos id not exist !', 'updated_at': 1742283722000}
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_54_5755.jpg', '/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_48_6952.jpg', '/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_41_5024.jpg', '/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_36_6810.jpg', '/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_29_5758.jpg', '/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_23_5738.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_54_5755.jpg
/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_48_6952.jpg
/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_41_5024.jpg
/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_36_6810.jpg
/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_29_5758.jpg
/home/nano/Desktop/images/18032025/08/40/image_18032025_08_40_23_5738.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 08:59:03.378183
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_54_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_47_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_41_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_35_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_29_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_24_6627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_54_6632.jpg', '/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_47_5637.jpg', '/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_41_6654.jpg', '/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_35_5609.jpg', '/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_29_5668.jpg', '/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_24_6627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_54_6632.jpg
/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_47_5637.jpg
/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_41_6654.jpg
/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_35_5609.jpg
/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_29_5668.jpg
/home/nano/Desktop/images/18032025/08/57/image_18032025_08_57_24_6627.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345064753","1345064759","1345064666","1345064729","1345064698","1345064635"],"photo_ids_order":["1345064635","1345064666","1345064698","1345064729","1345064753","1345064759"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ae27a5b13da7c21e822d1572fab68e7.jpg","text":"TemporaryFile(/tmp/multipartBody4316557888223092945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284803716,"filename":"image_18032025_08_57_29_5668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dc27b5530bcf121258cf710d61af38e3.jpg","text":"TemporaryFile(/tmp/multipartBody5410614295599790442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284803716,"filename":"image_18032025_08_57_24_6627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a1ed4fc5a1fac82b650394efef1f448.jpg","text":"TemporaryFile(/tmp/multipartBody1795666661219578668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284803716,"filename":"image_18032025_08_57_47_5637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c8bf4bf4eb6d735b13e6eede96c58852.jpg","text":"TemporaryFile(/tmp/multipartBody4137634582205993172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284803716,"filename":"image_18032025_08_57_35_5609.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3fee2b415e30d13c7484b841ebab7286.jpg","text":"TemporaryFile(/tmp/multipartBody2016916271482912696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284803716,"filename":"image_18032025_08_57_41_6654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1bf6a36eb6ac8f1d802509aa22b03b2d.jpg","text":"TemporaryFile(/tmp/multipartBody1985667289229059721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284803716,"filename":"image_18032025_08_57_54_6632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345064698","file1":"1345064666","file0":"1345064635","file4":"1345064753","file5":"1345064759","file3":"1345064729"},"map_files_photo_id_array":[{"photo_id":"1345064759","filename":"file5"},{"photo_id":"1345064698","filename":"file2"},{"photo_id":"1345064753","filename":"file4"},{"photo_id":"1345064666","filename":"file1"},{"photo_id":"1345064635","filename":"file0"},{"photo_id":"1345064729","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345064753":["hashtag1","hashtag2"]},{"1345064759":["hashtag1","hashtag2"]},{"1345064666":["hashtag1","hashtag2"]},{"1345064729":["hashtag1","hashtag2"]},{"1345064698":["hashtag1","hashtag2"]},{"1345064635":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345064753, 1345064759, 1345064666, 1345064729, 1345064698, 1345064635)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.562034845352173 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:00:03.156491
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_54_6831.jpg', 2), ('/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_47_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_41_5783.jpg', 2), ('/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_35_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_29_5689.jpg', 2), ('/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_24_6649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_54_6831.jpg', '/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_47_5833.jpg', '/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_41_5783.jpg', '/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_35_5865.jpg', '/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_29_5689.jpg', '/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_24_6649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_54_6831.jpg
/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_47_5833.jpg
/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_41_5783.jpg
/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_35_5865.jpg
/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_29_5689.jpg
/home/nano/Desktop/images/18032025/08/59/image_18032025_08_59_24_6649.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345064865","1345064925","1345064897","1345064858","1345065007","1345064953"],"photo_ids_order":["1345064858","1345064865","1345064897","1345064925","1345064953","1345065007"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e930f9f33f6c2a23fa9a54bacd3f086f.jpg","text":"TemporaryFile(/tmp/multipartBody3302537803904552217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284863576,"filename":"image_18032025_08_59_47_5833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/21e4cbdf5c8d4f675b213cf911db234b.jpg","text":"TemporaryFile(/tmp/multipartBody6548863320243441425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284863576,"filename":"image_18032025_08_59_35_5865.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c0d36bbfc611ab664be4cc112616a333.jpg","text":"TemporaryFile(/tmp/multipartBody4267066751322129433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284863576,"filename":"image_18032025_08_59_41_5783.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/23d50ccb08c3aac1be4c6a716d7d836e.jpg","text":"TemporaryFile(/tmp/multipartBody4779840738677582720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284863576,"filename":"image_18032025_08_59_54_6831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a7e66d69adbfcc2bce66d2dc18913870.jpg","text":"TemporaryFile(/tmp/multipartBody8723972299964074718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284863576,"filename":"image_18032025_08_59_24_6649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/df55a773769955943d938e2a902d11cd.jpg","text":"TemporaryFile(/tmp/multipartBody3507708320151567382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284863576,"filename":"image_18032025_08_59_29_5689.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345064897","file1":"1345064865","file0":"1345064858","file4":"1345064953","file5":"1345065007","file3":"1345064925"},"map_files_photo_id_array":[{"photo_id":"1345065007","filename":"file5"},{"photo_id":"1345064897","filename":"file2"},{"photo_id":"1345064953","filename":"file4"},{"photo_id":"1345064865","filename":"file1"},{"photo_id":"1345064858","filename":"file0"},{"photo_id":"1345064925","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345064865":["hashtag1","hashtag2"]},{"1345064925":["hashtag1","hashtag2"]},{"1345064897":["hashtag1","hashtag2"]},{"1345064858":["hashtag1","hashtag2"]},{"1345065007":["hashtag1","hashtag2"]},{"1345064953":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345064865, 1345064925, 1345064897, 1345064858, 1345065007, 1345064953)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.714261293411255 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:01:03.265143
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_53_6174.jpg', 2), ('/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_47_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_41_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_35_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_29_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_23_5854.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_53_6174.jpg', '/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_47_6040.jpg', '/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_41_5892.jpg', '/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_35_5776.jpg', '/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_29_5808.jpg', '/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_23_5854.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_53_6174.jpg
/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_47_6040.jpg
/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_41_5892.jpg
/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_35_5776.jpg
/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_29_5808.jpg
/home/nano/Desktop/images/18032025/09/00/image_18032025_09_00_23_5854.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345065248","1345065292","1345065224","1345065276","1345065234","1345065237"],"photo_ids_order":["1345065224","1345065234","1345065237","1345065248","1345065276","1345065292"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd017595c17133183d136a16245fab84.jpg","text":"TemporaryFile(/tmp/multipartBody222512299213734883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284923725,"filename":"image_18032025_09_00_35_5776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e501b8a224c2c2b369a0e8fee5b66d67.jpg","text":"TemporaryFile(/tmp/multipartBody8183876366956939458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284923725,"filename":"image_18032025_09_00_23_5854.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0655a750a2e471b85b14942f48a21e5c.jpg","text":"TemporaryFile(/tmp/multipartBody8544415498053453824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284923725,"filename":"image_18032025_09_00_53_6174.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/539af5f8b2b8a63bf19abdea062e6b77.jpg","text":"TemporaryFile(/tmp/multipartBody3970927843153760203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284923725,"filename":"image_18032025_09_00_29_5808.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3d0aeae9619e543e578bd8be43f7bdb.jpg","text":"TemporaryFile(/tmp/multipartBody7036958304838194605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284923725,"filename":"image_18032025_09_00_47_6040.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c20bcb34e8023eecdaa3a15e8c5532f5.jpg","text":"TemporaryFile(/tmp/multipartBody7085884927725174658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284923725,"filename":"image_18032025_09_00_41_5892.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345065237","file1":"1345065234","file0":"1345065224","file4":"1345065276","file5":"1345065292","file3":"1345065248"},"map_files_photo_id_array":[{"photo_id":"1345065292","filename":"file5"},{"photo_id":"1345065237","filename":"file2"},{"photo_id":"1345065276","filename":"file4"},{"photo_id":"1345065234","filename":"file1"},{"photo_id":"1345065224","filename":"file0"},{"photo_id":"1345065248","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345065248":["hashtag1","hashtag2"]},{"1345065292":["hashtag1","hashtag2"]},{"1345065224":["hashtag1","hashtag2"]},{"1345065276":["hashtag1","hashtag2"]},{"1345065234":["hashtag1","hashtag2"]},{"1345065237":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345065248, 1345065292, 1345065224, 1345065276, 1345065234, 1345065237)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.67263960838318 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:02:03.187912
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_47_5800.jpg', 2), ('/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_41_5804.jpg', 2), ('/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_35_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_30_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_23_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_18_5825.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_47_5800.jpg', '/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_41_5804.jpg', '/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_35_5786.jpg', '/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_30_6145.jpg', '/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_23_5844.jpg', '/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_18_5825.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_47_5800.jpg
/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_41_5804.jpg
/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_35_5786.jpg
/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_30_6145.jpg
/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_23_5844.jpg
/home/nano/Desktop/images/18032025/09/01/image_18032025_09_01_18_5825.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345065330","1345065335","1345065337","1345065345","1345065333","1345065336"],"photo_ids_order":["1345065330","1345065333","1345065335","1345065336","1345065337","1345065345"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9f8da9916504ddc3bacd18d4441887e6.jpg","text":"TemporaryFile(/tmp/multipartBody5480457433333440900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284983625,"filename":"image_18032025_09_01_47_5800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b128b3afb766fe2ad2613e9619bcd0f6.jpg","text":"TemporaryFile(/tmp/multipartBody1024192371016815768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284983625,"filename":"image_18032025_09_01_35_5786.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/932f749fdd786701aefa8cc5d51fbab4.jpg","text":"TemporaryFile(/tmp/multipartBody299102919831301822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284983625,"filename":"image_18032025_09_01_23_5844.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/61dab355bbd8893c9c3c7e48a40bf4b2.jpg","text":"TemporaryFile(/tmp/multipartBody959103411818008621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284983625,"filename":"image_18032025_09_01_18_5825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd147cd5002d436ab1b40cdfb2c4c726.jpg","text":"TemporaryFile(/tmp/multipartBody3477421446441103203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284983625,"filename":"image_18032025_09_01_41_5804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/25f8c1a372e28ad87ca04242cc7fbbbb.jpg","text":"TemporaryFile(/tmp/multipartBody4103079413377805900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742284983625,"filename":"image_18032025_09_01_30_6145.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345065335","file1":"1345065333","file0":"1345065330","file4":"1345065337","file5":"1345065345","file3":"1345065336"},"map_files_photo_id_array":[{"photo_id":"1345065345","filename":"file5"},{"photo_id":"1345065335","filename":"file2"},{"photo_id":"1345065337","filename":"file4"},{"photo_id":"1345065333","filename":"file1"},{"photo_id":"1345065330","filename":"file0"},{"photo_id":"1345065336","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345065330":["hashtag1","hashtag2"]},{"1345065335":["hashtag1","hashtag2"]},{"1345065337":["hashtag1","hashtag2"]},{"1345065345":["hashtag1","hashtag2"]},{"1345065333":["hashtag1","hashtag2"]},{"1345065336":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345065330, 1345065335, 1345065337, 1345065345, 1345065333, 1345065336)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.0361487865448 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:03:02.526375
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_05_6025.jpg', 2), ('/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_53_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_47_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_41_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_35_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_30_6648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_05_6025.jpg', '/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_53_5612.jpg', '/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_47_6667.jpg', '/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_41_5620.jpg', '/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_35_5620.jpg', '/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_30_6648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_05_6025.jpg
/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_53_5612.jpg
/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_47_6667.jpg
/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_41_5620.jpg
/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_35_5620.jpg
/home/nano/Desktop/images/18032025/09/02/image_18032025_09_02_30_6648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345065438","1345065430","1345065432","1345065426","1345065441","1345065435"],"photo_ids_order":["1345065426","1345065430","1345065432","1345065435","1345065438","1345065441"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3a3b91de7986acb5961eb057aa208c0e.jpg","text":"TemporaryFile(/tmp/multipartBody4796129556870490435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285042893,"filename":"image_18032025_09_02_35_5620.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5628cad427a62ba40d8a258a3d71d5b8.jpg","text":"TemporaryFile(/tmp/multipartBody1916008233354174869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285042893,"filename":"image_18032025_09_02_53_5612.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb1329bd8202f18e0a11c07125654c53.jpg","text":"TemporaryFile(/tmp/multipartBody7475888652576692266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285042893,"filename":"image_18032025_09_02_47_6667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2666499236e008bde05a3c3416723ab2.jpg","text":"TemporaryFile(/tmp/multipartBody4232403949484168315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285042893,"filename":"image_18032025_09_03_05_6025.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a2ef76272b1d2c48b0900c57337deae3.jpg","text":"TemporaryFile(/tmp/multipartBody351042538917360885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285042893,"filename":"image_18032025_09_02_30_6648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6380cb7e391bd58a7ed3b4aa8d95aa5f.jpg","text":"TemporaryFile(/tmp/multipartBody4294661486995255966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285042893,"filename":"image_18032025_09_02_41_5620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345065432","file1":"1345065430","file0":"1345065426","file4":"1345065438","file5":"1345065441","file3":"1345065435"},"map_files_photo_id_array":[{"photo_id":"1345065441","filename":"file5"},{"photo_id":"1345065432","filename":"file2"},{"photo_id":"1345065438","filename":"file4"},{"photo_id":"1345065430","filename":"file1"},{"photo_id":"1345065426","filename":"file0"},{"photo_id":"1345065435","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345065438":["hashtag1","hashtag2"]},{"1345065430":["hashtag1","hashtag2"]},{"1345065432":["hashtag1","hashtag2"]},{"1345065426":["hashtag1","hashtag2"]},{"1345065441":["hashtag1","hashtag2"]},{"1345065435":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345065438, 1345065430, 1345065432, 1345065426, 1345065441, 1345065435)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.998250246047974 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:04:02.897518
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_53_5982.jpg', 2), ('/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_47_6010.jpg', 2), ('/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_41_5008.jpg', 2), ('/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_36_6940.jpg', 2), ('/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_29_6009.jpg', 2), ('/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_23_5990.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_53_5982.jpg', '/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_47_6010.jpg', '/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_41_5008.jpg', '/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_36_6940.jpg', '/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_29_6009.jpg', '/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_23_5990.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_53_5982.jpg
/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_47_6010.jpg
/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_41_5008.jpg
/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_36_6940.jpg
/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_29_6009.jpg
/home/nano/Desktop/images/18032025/09/03/image_18032025_09_03_23_5990.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345065519","1345065521","1345065515","1345065520","1345065517","1345065513"],"photo_ids_order":["1345065513","1345065515","1345065517","1345065519","1345065520","1345065521"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6e49a7d48755c73a3f3cc436f028d4b.jpg","text":"TemporaryFile(/tmp/multipartBody7097571512042973413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285103397,"filename":"image_18032025_09_03_36_6940.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eecbfa898dbf14cd843e0bae3096d3a0.jpg","text":"TemporaryFile(/tmp/multipartBody664424394377961941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285103397,"filename":"image_18032025_09_03_23_5990.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/355dec64fde240b97b132c60213c2a22.jpg","text":"TemporaryFile(/tmp/multipartBody4019198865231443890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285103397,"filename":"image_18032025_09_03_47_6010.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3dfe5dcb5dd4f297d5d797581ee9ed18.jpg","text":"TemporaryFile(/tmp/multipartBody7813844020803640104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285103397,"filename":"image_18032025_09_03_29_6009.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5908a95adb5aadab3e7cd632985d21dd.jpg","text":"TemporaryFile(/tmp/multipartBody9222267844277973557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285103397,"filename":"image_18032025_09_03_41_5008.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fefdfdaad30286c3be0d99bbf41a43e9.jpg","text":"TemporaryFile(/tmp/multipartBody1216199012302962305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285103397,"filename":"image_18032025_09_03_53_5982.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345065517","file1":"1345065515","file0":"1345065513","file4":"1345065520","file5":"1345065521","file3":"1345065519"},"map_files_photo_id_array":[{"photo_id":"1345065521","filename":"file5"},{"photo_id":"1345065517","filename":"file2"},{"photo_id":"1345065520","filename":"file4"},{"photo_id":"1345065515","filename":"file1"},{"photo_id":"1345065513","filename":"file0"},{"photo_id":"1345065519","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345065519":["hashtag1","hashtag2"]},{"1345065521":["hashtag1","hashtag2"]},{"1345065515":["hashtag1","hashtag2"]},{"1345065520":["hashtag1","hashtag2"]},{"1345065517":["hashtag1","hashtag2"]},{"1345065513":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345065519, 1345065521, 1345065515, 1345065520, 1345065517, 1345065513)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.107488870620728 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:05:02.820076
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_53_6012.jpg', 2), ('/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_47_6010.jpg', 2), ('/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_41_6010.jpg', 2), ('/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_29_6021.jpg', 2), ('/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_23_6016.jpg', 2), ('/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_17_6023.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_53_6012.jpg', '/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_47_6010.jpg', '/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_41_6010.jpg', '/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_29_6021.jpg', '/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_23_6016.jpg', '/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_17_6023.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_53_6012.jpg
/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_47_6010.jpg
/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_41_6010.jpg
/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_29_6021.jpg
/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_23_6016.jpg
/home/nano/Desktop/images/18032025/09/04/image_18032025_09_04_17_6023.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345065554","1345065557","1345065559","1345065558","1345065552","1345065555"],"photo_ids_order":["1345065552","1345065554","1345065555","1345065557","1345065558","1345065559"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8761e519f40145536f98388279d41f2.jpg","text":"TemporaryFile(/tmp/multipartBody8518773473577119226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285163265,"filename":"image_18032025_09_04_47_6010.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f63a57c776aebe2c5e69c4e368ea6080.jpg","text":"TemporaryFile(/tmp/multipartBody1015626617218315990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285163265,"filename":"image_18032025_09_04_29_6021.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c93a08acca28996950fd54ed45694631.jpg","text":"TemporaryFile(/tmp/multipartBody217012243779068622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285163265,"filename":"image_18032025_09_04_17_6023.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/adbfce3597a5bffba433ed5f2e95b765.jpg","text":"TemporaryFile(/tmp/multipartBody3309712463407097449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285163265,"filename":"image_18032025_09_04_23_6016.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3c26d5829bd0f23f2d1fb7ff0acb856f.jpg","text":"TemporaryFile(/tmp/multipartBody4406591341618777497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285163265,"filename":"image_18032025_09_04_53_6012.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/46d65da661a58c306ff91066bd925bdb.jpg","text":"TemporaryFile(/tmp/multipartBody5383857280933579866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285163265,"filename":"image_18032025_09_04_41_6010.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345065555","file1":"1345065554","file0":"1345065552","file4":"1345065558","file5":"1345065559","file3":"1345065557"},"map_files_photo_id_array":[{"photo_id":"1345065559","filename":"file5"},{"photo_id":"1345065555","filename":"file2"},{"photo_id":"1345065558","filename":"file4"},{"photo_id":"1345065554","filename":"file1"},{"photo_id":"1345065552","filename":"file0"},{"photo_id":"1345065557","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345065554":["hashtag1","hashtag2"]},{"1345065557":["hashtag1","hashtag2"]},{"1345065559":["hashtag1","hashtag2"]},{"1345065558":["hashtag1","hashtag2"]},{"1345065552":["hashtag1","hashtag2"]},{"1345065555":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345065554, 1345065557, 1345065559, 1345065558, 1345065552, 1345065555)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.075262546539307 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:06:02.984492
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_53_6017.jpg', 2), ('/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_47_6019.jpg', 2), ('/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_41_6018.jpg', 2), ('/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_35_6022.jpg', 2), ('/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_29_6021.jpg', 2), ('/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_23_6016.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_53_6017.jpg', '/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_47_6019.jpg', '/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_41_6018.jpg', '/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_35_6022.jpg', '/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_29_6021.jpg', '/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_23_6016.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_53_6017.jpg
/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_47_6019.jpg
/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_41_6018.jpg
/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_35_6022.jpg
/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_29_6021.jpg
/home/nano/Desktop/images/18032025/09/05/image_18032025_09_05_23_6016.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345065593","1345065596","1345065595","1345065598","1345065594","1345065597"],"photo_ids_order":["1345065593","1345065594","1345065595","1345065596","1345065597","1345065598"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/23320e88809e6dec450c56fa852512ab.jpg","text":"TemporaryFile(/tmp/multipartBody7987574612039586586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285223411,"filename":"image_18032025_09_05_53_6017.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ef81106b320ea388ba2e102ea21b22b9.jpg","text":"TemporaryFile(/tmp/multipartBody8342090564259013546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285223411,"filename":"image_18032025_09_05_35_6022.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bcac28d708ae5155f701b0fe4c6dfafc.jpg","text":"TemporaryFile(/tmp/multipartBody7036875464775766833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285223411,"filename":"image_18032025_09_05_41_6018.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/44e1557f04f887b6200fdbece8e7c911.jpg","text":"TemporaryFile(/tmp/multipartBody7922427678263202284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285223411,"filename":"image_18032025_09_05_23_6016.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/232d14d50ce5930c69ea57035e371343.jpg","text":"TemporaryFile(/tmp/multipartBody1994716490223430623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285223411,"filename":"image_18032025_09_05_47_6019.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6c73f5f7db61c9dbc517d7ca292d46db.jpg","text":"TemporaryFile(/tmp/multipartBody2522971195311675665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285223411,"filename":"image_18032025_09_05_29_6021.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345065595","file1":"1345065594","file0":"1345065593","file4":"1345065597","file5":"1345065598","file3":"1345065596"},"map_files_photo_id_array":[{"photo_id":"1345065598","filename":"file5"},{"photo_id":"1345065595","filename":"file2"},{"photo_id":"1345065597","filename":"file4"},{"photo_id":"1345065594","filename":"file1"},{"photo_id":"1345065593","filename":"file0"},{"photo_id":"1345065596","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345065593":["hashtag1","hashtag2"]},{"1345065596":["hashtag1","hashtag2"]},{"1345065595":["hashtag1","hashtag2"]},{"1345065598":["hashtag1","hashtag2"]},{"1345065594":["hashtag1","hashtag2"]},{"1345065597":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345065593, 1345065596, 1345065595, 1345065598, 1345065594, 1345065597)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.094093561172485 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:07:02.988596
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_53_6020.jpg', 2), ('/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_47_6015.jpg', 2), ('/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_41_6023.jpg', 2), ('/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_35_6022.jpg', 2), ('/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_23_6018.jpg', 2), ('/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_17_6026.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_53_6020.jpg', '/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_47_6015.jpg', '/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_41_6023.jpg', '/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_35_6022.jpg', '/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_23_6018.jpg', '/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_17_6026.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_53_6020.jpg
/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_47_6015.jpg
/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_41_6023.jpg
/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_35_6022.jpg
/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_23_6018.jpg
/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_17_6026.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345065698","1345065719","1345065713","1345065724","1345065669","1345065705"],"photo_ids_order":["1345065669","1345065698","1345065705","1345065713","1345065719","1345065724"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0b3eabd7d6d227f512482af75e37684e.jpg","text":"TemporaryFile(/tmp/multipartBody1614070593725984780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285283426,"filename":"image_18032025_09_06_47_6015.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d53070d6f0320302eb0265ec31e5f2d7.jpg","text":"TemporaryFile(/tmp/multipartBody7729869894802360101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285283426,"filename":"image_18032025_09_06_23_6018.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8decd9d3e703a92fbc72632d9621e46e.jpg","text":"TemporaryFile(/tmp/multipartBody6562457278354920274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285283426,"filename":"image_18032025_09_06_35_6022.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7b9b38a1929a686169fdcd1f3f756124.jpg","text":"TemporaryFile(/tmp/multipartBody8008518571238896970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285283426,"filename":"image_18032025_09_06_17_6026.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18563401d71201efc45fa8bea16bd7d6.jpg","text":"TemporaryFile(/tmp/multipartBody6910083805204705470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285283426,"filename":"image_18032025_09_06_53_6020.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aa4e067ef2c3c09e3f21c86ec3b8d2a3.jpg","text":"TemporaryFile(/tmp/multipartBody4631860318063718333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285283426,"filename":"image_18032025_09_06_41_6023.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345065705","file1":"1345065698","file0":"1345065669","file4":"1345065719","file5":"1345065724","file3":"1345065713"},"map_files_photo_id_array":[{"photo_id":"1345065724","filename":"file5"},{"photo_id":"1345065705","filename":"file2"},{"photo_id":"1345065719","filename":"file4"},{"photo_id":"1345065698","filename":"file1"},{"photo_id":"1345065669","filename":"file0"},{"photo_id":"1345065713","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345065698":["hashtag1","hashtag2"]},{"1345065719":["hashtag1","hashtag2"]},{"1345065713":["hashtag1","hashtag2"]},{"1345065724":["hashtag1","hashtag2"]},{"1345065669":["hashtag1","hashtag2"]},{"1345065705":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345065698, 1345065719, 1345065713, 1345065724, 1345065669, 1345065705)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.12811779975891 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:08:03.114150
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_53_5026.jpg', 2), ('/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_48_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_42_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_36_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_30_6034.jpg', 2), ('/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_59_6021.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_53_5026.jpg', '/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_48_6059.jpg', '/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_42_6057.jpg', '/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_36_6029.jpg', '/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_30_6034.jpg', '/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_59_6021.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_53_5026.jpg
/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_48_6059.jpg
/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_42_6057.jpg
/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_36_6029.jpg
/home/nano/Desktop/images/18032025/09/07/image_18032025_09_07_30_6034.jpg
/home/nano/Desktop/images/18032025/09/06/image_18032025_09_06_59_6021.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345065807","1345065836","1345065838","1345065832","1345065795","1345065834"],"photo_ids_order":["1345065795","1345065807","1345065832","1345065834","1345065836","1345065838"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84bfe36886e9b5371600ac0e050fcbef.jpg","text":"TemporaryFile(/tmp/multipartBody2088775649640678531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285343619,"filename":"image_18032025_09_07_48_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52a3d71ae8e1c2d0f1f9821fbc7c9e27.jpg","text":"TemporaryFile(/tmp/multipartBody2968886653944165041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285343619,"filename":"image_18032025_09_07_30_6034.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d167a36221808bd7d9919cdad7eda81.jpg","text":"TemporaryFile(/tmp/multipartBody8095874025589817721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285343619,"filename":"image_18032025_09_06_59_6021.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5514e4cab97ec17179ecffa6c0165e59.jpg","text":"TemporaryFile(/tmp/multipartBody2434391518871688557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285343619,"filename":"image_18032025_09_07_42_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6c180663fa5b345ed738d8bbd404c851.jpg","text":"TemporaryFile(/tmp/multipartBody3060817467890630033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285343619,"filename":"image_18032025_09_07_53_5026.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d06df3c7afaafbde6836bb81171c1a5f.jpg","text":"TemporaryFile(/tmp/multipartBody1349135562531961604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285343619,"filename":"image_18032025_09_07_36_6029.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345065832","file1":"1345065807","file0":"1345065795","file4":"1345065836","file5":"1345065838","file3":"1345065834"},"map_files_photo_id_array":[{"photo_id":"1345065838","filename":"file5"},{"photo_id":"1345065832","filename":"file2"},{"photo_id":"1345065836","filename":"file4"},{"photo_id":"1345065807","filename":"file1"},{"photo_id":"1345065795","filename":"file0"},{"photo_id":"1345065834","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345065807":["hashtag1","hashtag2"]},{"1345065836":["hashtag1","hashtag2"]},{"1345065838":["hashtag1","hashtag2"]},{"1345065832":["hashtag1","hashtag2"]},{"1345065795":["hashtag1","hashtag2"]},{"1345065834":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345065807, 1345065836, 1345065838, 1345065832, 1345065795, 1345065834)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.03699278831482 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:09:03.793096
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_53_6027.jpg', 2), ('/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_47_6035.jpg', 2), ('/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_41_6034.jpg', 2), ('/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_35_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_29_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_23_6045.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_53_6027.jpg', '/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_47_6035.jpg', '/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_41_6034.jpg', '/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_35_6029.jpg', '/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_29_6030.jpg', '/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_23_6045.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_53_6027.jpg
/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_47_6035.jpg
/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_41_6034.jpg
/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_35_6029.jpg
/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_29_6030.jpg
/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_23_6045.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345065872","1345065869","1345065868","1345065871","1345065870","1345065876"],"photo_ids_order":["1345065868","1345065869","1345065870","1345065871","1345065872","1345065876"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/864e7b9dc76dd1f025e509e9bcfc9d71.jpg","text":"TemporaryFile(/tmp/multipartBody6400729397744194018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285404217,"filename":"image_18032025_09_08_29_6030.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6c6ba1eafba4608d08d09b7e806f4630.jpg","text":"TemporaryFile(/tmp/multipartBody6278825564280847296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285404217,"filename":"image_18032025_09_08_47_6035.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/442ef245fb58ab6ce51ab6bb3bbebdd1.jpg","text":"TemporaryFile(/tmp/multipartBody2804476110639020836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285404217,"filename":"image_18032025_09_08_53_6027.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/88880f7b26e2d8f6cf31f61950350d36.jpg","text":"TemporaryFile(/tmp/multipartBody9006372321925852921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285404217,"filename":"image_18032025_09_08_35_6029.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ff3d764786b4f5f2353d652fda97f20.jpg","text":"TemporaryFile(/tmp/multipartBody1456188268647165026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285404217,"filename":"image_18032025_09_08_41_6034.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e9087ebdb93e412d71de11747270e02.jpg","text":"TemporaryFile(/tmp/multipartBody3269637469564764493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285404217,"filename":"image_18032025_09_08_23_6045.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345065870","file1":"1345065869","file0":"1345065868","file4":"1345065872","file5":"1345065876","file3":"1345065871"},"map_files_photo_id_array":[{"photo_id":"1345065876","filename":"file5"},{"photo_id":"1345065870","filename":"file2"},{"photo_id":"1345065872","filename":"file4"},{"photo_id":"1345065869","filename":"file1"},{"photo_id":"1345065868","filename":"file0"},{"photo_id":"1345065871","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345065872":["hashtag1","hashtag2"]},{"1345065869":["hashtag1","hashtag2"]},{"1345065868":["hashtag1","hashtag2"]},{"1345065871":["hashtag1","hashtag2"]},{"1345065870":["hashtag1","hashtag2"]},{"1345065876":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345065872, 1345065869, 1345065868, 1345065871, 1345065870, 1345065876)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.119083642959595 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:10:02.351411
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_48_6034.jpg', 2), ('/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_41_6035.jpg', 2), ('/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_23_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_17_6022.jpg', 2), ('/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_05_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_59_6027.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_48_6034.jpg', '/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_41_6035.jpg', '/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_23_6029.jpg', '/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_17_6022.jpg', '/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_05_6048.jpg', '/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_59_6027.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_48_6034.jpg
/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_41_6035.jpg
/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_23_6029.jpg
/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_17_6022.jpg
/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_05_6048.jpg
/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_59_6027.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345066270","1345066170","1345066140","1345066224","1345066110","1345066196"],"photo_ids_order":["1345066110","1345066140","1345066170","1345066196","1345066224","1345066270"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9357da49020a4ed63c4a3b7f78699df1.jpg","text":"TemporaryFile(/tmp/multipartBody1540513803743911140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285462796,"filename":"image_18032025_09_08_59_6027.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/42ac91ad685fcdad0cbfaf210deeaa17.jpg","text":"TemporaryFile(/tmp/multipartBody5296009110531058202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285462796,"filename":"image_18032025_09_09_23_6029.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5eceb70159fee927d8f15899d0750a7.jpg","text":"TemporaryFile(/tmp/multipartBody7764178803796201588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285462796,"filename":"image_18032025_09_09_41_6035.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6a3a0b4f5b1a980bf3631a1c2fe74b3.jpg","text":"TemporaryFile(/tmp/multipartBody5713873235047179592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285462796,"filename":"image_18032025_09_09_05_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/07d4edc4dacb01346b37da4dbd4e471a.jpg","text":"TemporaryFile(/tmp/multipartBody4521339103745990870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285462796,"filename":"image_18032025_09_09_48_6034.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2b54aea32bda2aa24aa55e80543d4242.jpg","text":"TemporaryFile(/tmp/multipartBody1021629161465425535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285462796,"filename":"image_18032025_09_09_17_6022.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345066170","file1":"1345066140","file0":"1345066110","file4":"1345066224","file5":"1345066270","file3":"1345066196"},"map_files_photo_id_array":[{"photo_id":"1345066270","filename":"file5"},{"photo_id":"1345066170","filename":"file2"},{"photo_id":"1345066224","filename":"file4"},{"photo_id":"1345066140","filename":"file1"},{"photo_id":"1345066110","filename":"file0"},{"photo_id":"1345066196","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345066270":["hashtag1","hashtag2"]},{"1345066170":["hashtag1","hashtag2"]},{"1345066140":["hashtag1","hashtag2"]},{"1345066224":["hashtag1","hashtag2"]},{"1345066110":["hashtag1","hashtag2"]},{"1345066196":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345066270, 1345066170, 1345066140, 1345066224, 1345066110, 1345066196)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 28.742644548416138 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:10:31.877348
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_47_6035.jpg', 2), ('/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_41_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_29_5014.jpg', 2), ('/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_12_6062.jpg', 2), ('/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_54_6032.jpg', 2), ('/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_17_6035.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_47_6035.jpg', '/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_41_6029.jpg', '/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_29_5014.jpg', '/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_12_6062.jpg', '/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_54_6032.jpg', '/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_17_6035.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_47_6035.jpg
/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_41_6029.jpg
/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_29_5014.jpg
/home/nano/Desktop/images/18032025/09/10/image_18032025_09_10_12_6062.jpg
/home/nano/Desktop/images/18032025/09/09/image_18032025_09_09_54_6032.jpg
/home/nano/Desktop/images/18032025/09/08/image_18032025_09_08_17_6035.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345066358","1345066462","1345066456","1345066423","1345066466","1345066388"],"photo_ids_order":["1345066358","1345066388","1345066423","1345066456","1345066462","1345066466"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/48808475bfef6fc27cb20ce15845fdb7.jpg","text":"TemporaryFile(/tmp/multipartBody547303425390325012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285492321,"filename":"image_18032025_09_10_47_6035.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b1921d13ca672266ab8b59cb1dce16f.jpg","text":"TemporaryFile(/tmp/multipartBody3916288939336338136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285492321,"filename":"image_18032025_09_09_54_6032.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69230cc2ca17c0e2550b2ab167c72c3d.jpg","text":"TemporaryFile(/tmp/multipartBody6248523562575609886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285492321,"filename":"image_18032025_09_10_12_6062.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/523dbd01ec92df9398250897d913af64.jpg","text":"TemporaryFile(/tmp/multipartBody3953475610378040963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285492321,"filename":"image_18032025_09_10_29_5014.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90ac10e3398b5b3080d7f28ca0f1db71.jpg","text":"TemporaryFile(/tmp/multipartBody6221028075599955350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285492321,"filename":"image_18032025_09_08_17_6035.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/737c658f66588b90912bf3913bd22dea.jpg","text":"TemporaryFile(/tmp/multipartBody2385594389268906211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285492321,"filename":"image_18032025_09_10_41_6029.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345066423","file1":"1345066388","file0":"1345066358","file4":"1345066462","file5":"1345066466","file3":"1345066456"},"map_files_photo_id_array":[{"photo_id":"1345066466","filename":"file5"},{"photo_id":"1345066423","filename":"file2"},{"photo_id":"1345066462","filename":"file4"},{"photo_id":"1345066388","filename":"file1"},{"photo_id":"1345066358","filename":"file0"},{"photo_id":"1345066456","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345066358":["hashtag1","hashtag2"]},{"1345066462":["hashtag1","hashtag2"]},{"1345066456":["hashtag1","hashtag2"]},{"1345066423":["hashtag1","hashtag2"]},{"1345066466":["hashtag1","hashtag2"]},{"1345066388":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345066358, 1345066462, 1345066456, 1345066423, 1345066466, 1345066388)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.866286277770996 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:11:31.955508
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_53_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_47_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_41_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_35_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_29_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_23_6031.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_53_6061.jpg', '/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_47_6052.jpg', '/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_41_6063.jpg', '/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_35_6030.jpg', '/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_29_6036.jpg', '/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_23_6031.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_53_6061.jpg
/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_47_6052.jpg
/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_41_6063.jpg
/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_35_6030.jpg
/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_29_6036.jpg
/home/nano/Desktop/images/18032025/09/11/image_18032025_09_11_23_6031.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345066492","1345066495","1345066489","1345066508","1345066504","1345066499"],"photo_ids_order":["1345066489","1345066492","1345066495","1345066499","1345066504","1345066508"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0548e7cd5c2ca8b65a21eba55bd79375.jpg","text":"TemporaryFile(/tmp/multipartBody7192866329462046902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285552446,"filename":"image_18032025_09_11_47_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bfdd4b751eae8995dda432636f66dc1b.jpg","text":"TemporaryFile(/tmp/multipartBody1763262976064634351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285552446,"filename":"image_18032025_09_11_41_6063.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c1dc8c71c18dc1a298c3d5c551114440.jpg","text":"TemporaryFile(/tmp/multipartBody8243490609608616280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285552446,"filename":"image_18032025_09_11_53_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14dc5da0f674850b66d5f65c218b6b74.jpg","text":"TemporaryFile(/tmp/multipartBody8544514031683061434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285552446,"filename":"image_18032025_09_11_23_6031.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/971ab67a8072e726816331f8a14c5864.jpg","text":"TemporaryFile(/tmp/multipartBody2912278639967910748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285552446,"filename":"image_18032025_09_11_29_6036.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2cd272c834dff11ed0c54db1a4573987.jpg","text":"TemporaryFile(/tmp/multipartBody6220594254427990976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285552446,"filename":"image_18032025_09_11_35_6030.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345066495","file1":"1345066492","file0":"1345066489","file4":"1345066504","file5":"1345066508","file3":"1345066499"},"map_files_photo_id_array":[{"photo_id":"1345066508","filename":"file5"},{"photo_id":"1345066495","filename":"file2"},{"photo_id":"1345066504","filename":"file4"},{"photo_id":"1345066492","filename":"file1"},{"photo_id":"1345066489","filename":"file0"},{"photo_id":"1345066499","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345066492":["hashtag1","hashtag2"]},{"1345066495":["hashtag1","hashtag2"]},{"1345066489":["hashtag1","hashtag2"]},{"1345066508":["hashtag1","hashtag2"]},{"1345066504":["hashtag1","hashtag2"]},{"1345066499":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345066492, 1345066495, 1345066489, 1345066508, 1345066504, 1345066499)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.31407952308655 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:12:32.061385
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_53_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_47_5051.jpg', 2), ('/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_42_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_30_6033.jpg', 2), ('/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_24_6034.jpg', 2), ('/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_18_6071.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_53_6071.jpg', '/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_47_5051.jpg', '/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_42_6055.jpg', '/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_30_6033.jpg', '/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_24_6034.jpg', '/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_18_6071.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_53_6071.jpg
/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_47_5051.jpg
/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_42_6055.jpg
/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_30_6033.jpg
/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_24_6034.jpg
/home/nano/Desktop/images/18032025/09/12/image_18032025_09_12_18_6071.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345066574","1345066556","1345066607","1345066633","1345066560","1345066656"],"photo_ids_order":["1345066556","1345066560","1345066574","1345066607","1345066633","1345066656"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/99c045033dc1808d707bfe3bd7851223.jpg","text":"TemporaryFile(/tmp/multipartBody6769807732775359557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285612500,"filename":"image_18032025_09_12_42_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/46bf7b4116dd225b605ad5c887368d31.jpg","text":"TemporaryFile(/tmp/multipartBody9092087492615103255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285612500,"filename":"image_18032025_09_12_53_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1206a1d675fe8d2a0dba3ee28ebf4e66.jpg","text":"TemporaryFile(/tmp/multipartBody9194308847868749047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285612500,"filename":"image_18032025_09_12_30_6033.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7ec2cdaa160efad8a742b09e5c18b7e2.jpg","text":"TemporaryFile(/tmp/multipartBody7796021164784971132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285612500,"filename":"image_18032025_09_12_24_6034.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/461ac110a583c9a749e0cd0e7bc50a4e.jpg","text":"TemporaryFile(/tmp/multipartBody9130891019627016999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285612500,"filename":"image_18032025_09_12_47_5051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1dfc60d861ae941dd14bf6a29d85ba50.jpg","text":"TemporaryFile(/tmp/multipartBody9025007453768165251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285612500,"filename":"image_18032025_09_12_18_6071.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345066574","file1":"1345066560","file0":"1345066556","file4":"1345066633","file5":"1345066656","file3":"1345066607"},"map_files_photo_id_array":[{"photo_id":"1345066656","filename":"file5"},{"photo_id":"1345066574","filename":"file2"},{"photo_id":"1345066633","filename":"file4"},{"photo_id":"1345066560","filename":"file1"},{"photo_id":"1345066556","filename":"file0"},{"photo_id":"1345066607","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345066574":["hashtag1","hashtag2"]},{"1345066556":["hashtag1","hashtag2"]},{"1345066607":["hashtag1","hashtag2"]},{"1345066633":["hashtag1","hashtag2"]},{"1345066560":["hashtag1","hashtag2"]},{"1345066656":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345066574, 1345066556, 1345066607, 1345066633, 1345066560, 1345066656)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.6832640171051 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:13:32.210825
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_53_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_47_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_41_6033.jpg', 2), ('/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_35_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_29_6035.jpg', 2), ('/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_23_6034.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_53_6041.jpg', '/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_47_6067.jpg', '/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_41_6033.jpg', '/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_35_6036.jpg', '/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_29_6035.jpg', '/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_23_6034.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_53_6041.jpg
/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_47_6067.jpg
/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_41_6033.jpg
/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_35_6036.jpg
/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_29_6035.jpg
/home/nano/Desktop/images/18032025/09/13/image_18032025_09_13_23_6034.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345066699","1345066705","1345066701","1345066725","1345066710","1345066694"],"photo_ids_order":["1345066694","1345066699","1345066701","1345066705","1345066710","1345066725"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/529e09155cb69b9c4badc8a531012373.jpg","text":"TemporaryFile(/tmp/multipartBody9005980112556785229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285672633,"filename":"image_18032025_09_13_47_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4f8478404ad5b164d48fde136cdf9c9.jpg","text":"TemporaryFile(/tmp/multipartBody2365421576118573180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285672633,"filename":"image_18032025_09_13_35_6036.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e61b28ae77abf2abf5d5c7fb0e5fa544.jpg","text":"TemporaryFile(/tmp/multipartBody4722812864570515100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285672633,"filename":"image_18032025_09_13_41_6033.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f768778948d2f5434a5a01944a1ae15a.jpg","text":"TemporaryFile(/tmp/multipartBody2934450486498542368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285672633,"filename":"image_18032025_09_13_23_6034.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e077d17f05a83e9e3ff7e154b4f1b872.jpg","text":"TemporaryFile(/tmp/multipartBody2774691235377360719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285672633,"filename":"image_18032025_09_13_29_6035.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/772fc277707e73f736914155657af2f0.jpg","text":"TemporaryFile(/tmp/multipartBody8645007435117157761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285672633,"filename":"image_18032025_09_13_53_6041.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345066701","file1":"1345066699","file0":"1345066694","file4":"1345066710","file5":"1345066725","file3":"1345066705"},"map_files_photo_id_array":[{"photo_id":"1345066725","filename":"file5"},{"photo_id":"1345066701","filename":"file2"},{"photo_id":"1345066710","filename":"file4"},{"photo_id":"1345066699","filename":"file1"},{"photo_id":"1345066694","filename":"file0"},{"photo_id":"1345066705","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345066699":["hashtag1","hashtag2"]},{"1345066705":["hashtag1","hashtag2"]},{"1345066701":["hashtag1","hashtag2"]},{"1345066725":["hashtag1","hashtag2"]},{"1345066710":["hashtag1","hashtag2"]},{"1345066694":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345066699, 1345066705, 1345066701, 1345066725, 1345066710, 1345066694)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.161785364151 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:14:32.307065
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_53_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_47_5032.jpg', 2), ('/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_42_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_36_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_30_6035.jpg', 2), ('/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_18_6050.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_53_6069.jpg', '/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_47_5032.jpg', '/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_42_6053.jpg', '/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_36_6041.jpg', '/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_30_6035.jpg', '/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_18_6050.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_53_6069.jpg
/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_47_5032.jpg
/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_42_6053.jpg
/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_36_6041.jpg
/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_30_6035.jpg
/home/nano/Desktop/images/18032025/09/14/image_18032025_09_14_18_6050.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345066865","1345066873","1345066861","1345066858","1345066878","1345066869"],"photo_ids_order":["1345066858","1345066861","1345066865","1345066869","1345066873","1345066878"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c0ae4abff8e4998239ec26a81c5af1d2.jpg","text":"TemporaryFile(/tmp/multipartBody8880946287494592074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285732756,"filename":"image_18032025_09_14_42_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f57a294ba5c4860fa6a281003b93258.jpg","text":"TemporaryFile(/tmp/multipartBody4235049823773063344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285732756,"filename":"image_18032025_09_14_30_6035.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c263e0880d887715a4e61091899b3350.jpg","text":"TemporaryFile(/tmp/multipartBody8531526878293230124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285732756,"filename":"image_18032025_09_14_47_5032.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/256a36ea036f3ad4363639c4d2252e0d.jpg","text":"TemporaryFile(/tmp/multipartBody4004722979532864054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285732756,"filename":"image_18032025_09_14_53_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/05a22bae4d529bd0c37a131f3d973b1c.jpg","text":"TemporaryFile(/tmp/multipartBody1236096517605771799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285732756,"filename":"image_18032025_09_14_18_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cc8762cea17d2cee6867ce78d1b2970a.jpg","text":"TemporaryFile(/tmp/multipartBody7694446605754702440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285732756,"filename":"image_18032025_09_14_36_6041.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345066865","file1":"1345066861","file0":"1345066858","file4":"1345066873","file5":"1345066878","file3":"1345066869"},"map_files_photo_id_array":[{"photo_id":"1345066878","filename":"file5"},{"photo_id":"1345066865","filename":"file2"},{"photo_id":"1345066873","filename":"file4"},{"photo_id":"1345066861","filename":"file1"},{"photo_id":"1345066858","filename":"file0"},{"photo_id":"1345066869","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345066865":["hashtag1","hashtag2"]},{"1345066873":["hashtag1","hashtag2"]},{"1345066861":["hashtag1","hashtag2"]},{"1345066858":["hashtag1","hashtag2"]},{"1345066878":["hashtag1","hashtag2"]},{"1345066869":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345066865, 1345066873, 1345066861, 1345066858, 1345066878, 1345066869)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.22915434837341 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:15:32.425266
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_47_6039.jpg', 2), ('/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_35_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_29_6033.jpg', 2), ('/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_23_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_17_6034.jpg', 2), ('/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_11_6059.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_47_6039.jpg', '/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_35_6044.jpg', '/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_29_6033.jpg', '/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_23_6042.jpg', '/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_17_6034.jpg', '/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_11_6059.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_47_6039.jpg
/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_35_6044.jpg
/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_29_6033.jpg
/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_23_6042.jpg
/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_17_6034.jpg
/home/nano/Desktop/images/18032025/09/15/image_18032025_09_15_11_6059.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345066915","1345066912","1345066908","1345066902","1345066905","1345066898"],"photo_ids_order":["1345066898","1345066902","1345066905","1345066908","1345066912","1345066915"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a9d8014d070c14a7d2b421f04abed6f4.jpg","text":"TemporaryFile(/tmp/multipartBody6270949050050596514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285792851,"filename":"image_18032025_09_15_11_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/92a067281db4f795ab151f7a83355fde.jpg","text":"TemporaryFile(/tmp/multipartBody2437911606192526758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285792851,"filename":"image_18032025_09_15_17_6034.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/532801e429aa8a4aac824ac6a19ba802.jpg","text":"TemporaryFile(/tmp/multipartBody4681859693126319480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285792851,"filename":"image_18032025_09_15_23_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a39362297f39a5e94073b43e340307fb.jpg","text":"TemporaryFile(/tmp/multipartBody2815643813886109801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285792851,"filename":"image_18032025_09_15_35_6044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c57fd4c06c5547ee074dadb6f8ef4c6.jpg","text":"TemporaryFile(/tmp/multipartBody5904373001767457976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285792851,"filename":"image_18032025_09_15_29_6033.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cb287b1054cd7f0232439b3a0a929cef.jpg","text":"TemporaryFile(/tmp/multipartBody5752963614936980395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285792851,"filename":"image_18032025_09_15_47_6039.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345066905","file1":"1345066902","file0":"1345066898","file4":"1345066912","file5":"1345066915","file3":"1345066908"},"map_files_photo_id_array":[{"photo_id":"1345066915","filename":"file5"},{"photo_id":"1345066905","filename":"file2"},{"photo_id":"1345066912","filename":"file4"},{"photo_id":"1345066902","filename":"file1"},{"photo_id":"1345066898","filename":"file0"},{"photo_id":"1345066908","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345066915":["hashtag1","hashtag2"]},{"1345066912":["hashtag1","hashtag2"]},{"1345066908":["hashtag1","hashtag2"]},{"1345066902":["hashtag1","hashtag2"]},{"1345066905":["hashtag1","hashtag2"]},{"1345066898":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345066915, 1345066912, 1345066908, 1345066902, 1345066905, 1345066898)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.96450352668762 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:16:32.558270
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_47_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_41_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_35_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_29_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_23_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_17_6045.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_47_6050.jpg', '/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_41_6048.jpg', '/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_35_6080.jpg', '/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_29_6036.jpg', '/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_23_6042.jpg', '/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_17_6045.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_47_6050.jpg
/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_41_6048.jpg
/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_35_6080.jpg
/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_29_6036.jpg
/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_23_6042.jpg
/home/nano/Desktop/images/18032025/09/16/image_18032025_09_16_17_6045.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345066958","1345066945","1345066938","1345066953","1345066941","1345066949"],"photo_ids_order":["1345066938","1345066941","1345066945","1345066949","1345066953","1345066958"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5c1a411dfa7bef19890f833abaefc852.jpg","text":"TemporaryFile(/tmp/multipartBody4047490138260212134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285853172,"filename":"image_18032025_09_16_17_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c11cfbff6fe789bfea8880c915ccb4f.jpg","text":"TemporaryFile(/tmp/multipartBody7222273968891892953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285853172,"filename":"image_18032025_09_16_35_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7224c831aad203bf7cf4c6d71309be1d.jpg","text":"TemporaryFile(/tmp/multipartBody946417449011265239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285853172,"filename":"image_18032025_09_16_47_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7ce0d9228cd01134d2e379198bfa76f8.jpg","text":"TemporaryFile(/tmp/multipartBody8076559826626605807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285853172,"filename":"image_18032025_09_16_23_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9975811ea2b228ea65d7a07a6f960a8a.jpg","text":"TemporaryFile(/tmp/multipartBody7284829921981202200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285853172,"filename":"image_18032025_09_16_41_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/87e24fd877be852f4b17f3a11dee05c2.jpg","text":"TemporaryFile(/tmp/multipartBody7029184342668791860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285853172,"filename":"image_18032025_09_16_29_6036.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345066945","file1":"1345066941","file0":"1345066938","file4":"1345066953","file5":"1345066958","file3":"1345066949"},"map_files_photo_id_array":[{"photo_id":"1345066958","filename":"file5"},{"photo_id":"1345066945","filename":"file2"},{"photo_id":"1345066953","filename":"file4"},{"photo_id":"1345066941","filename":"file1"},{"photo_id":"1345066938","filename":"file0"},{"photo_id":"1345066949","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345066958":["hashtag1","hashtag2"]},{"1345066945":["hashtag1","hashtag2"]},{"1345066938":["hashtag1","hashtag2"]},{"1345066953":["hashtag1","hashtag2"]},{"1345066941":["hashtag1","hashtag2"]},{"1345066949":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345066958, 1345066945, 1345066938, 1345066953, 1345066941, 1345066949)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.46139693260193 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:17:32.654595
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_53_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_47_6073.jpg', 2), ('/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_41_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_23_5030.jpg', 2), ('/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_18_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_12_6105.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_53_6077.jpg', '/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_47_6073.jpg', '/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_41_6050.jpg', '/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_23_5030.jpg', '/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_18_6048.jpg', '/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_12_6105.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_53_6077.jpg
/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_47_6073.jpg
/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_41_6050.jpg
/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_23_5030.jpg
/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_18_6048.jpg
/home/nano/Desktop/images/18032025/09/17/image_18032025_09_17_12_6105.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067105","1345066990","1345067140","1345067073","1345067046","1345067018"],"photo_ids_order":["1345066990","1345067018","1345067046","1345067073","1345067105","1345067140"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d934bacff026bf01416a9532fad947ca.jpg","text":"TemporaryFile(/tmp/multipartBody7074630392422771641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285913226,"filename":"image_18032025_09_17_18_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a93ae1eef981d9a6d90bfd44eeb7cc9a.jpg","text":"TemporaryFile(/tmp/multipartBody4960478565056432123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285913226,"filename":"image_18032025_09_17_53_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3dd9056bb15b09587914c0ac13ee05d.jpg","text":"TemporaryFile(/tmp/multipartBody5016993023926512807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285913226,"filename":"image_18032025_09_17_12_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/edda09ed8413e8053eb97e08089dd160.jpg","text":"TemporaryFile(/tmp/multipartBody8465328305073029455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285913226,"filename":"image_18032025_09_17_23_5030.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/11047ab4d085c583f4dee84adecdd62f.jpg","text":"TemporaryFile(/tmp/multipartBody1710939240795643515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285913226,"filename":"image_18032025_09_17_41_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d390bad6609d0cda737b2024a731f320.jpg","text":"TemporaryFile(/tmp/multipartBody1301621785706669029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285913226,"filename":"image_18032025_09_17_47_6073.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067046","file1":"1345067018","file0":"1345066990","file4":"1345067105","file5":"1345067140","file3":"1345067073"},"map_files_photo_id_array":[{"photo_id":"1345067140","filename":"file5"},{"photo_id":"1345067046","filename":"file2"},{"photo_id":"1345067105","filename":"file4"},{"photo_id":"1345067018","filename":"file1"},{"photo_id":"1345066990","filename":"file0"},{"photo_id":"1345067073","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067105":["hashtag1","hashtag2"]},{"1345066990":["hashtag1","hashtag2"]},{"1345067140":["hashtag1","hashtag2"]},{"1345067073":["hashtag1","hashtag2"]},{"1345067046":["hashtag1","hashtag2"]},{"1345067018":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067105, 1345066990, 1345067140, 1345067073, 1345067046, 1345067018)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.75974369049072 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:18:31.790197
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_54_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_48_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_42_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_30_6037.jpg', 2), ('/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_24_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_11_6109.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_54_6070.jpg', '/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_48_6078.jpg', '/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_42_6058.jpg', '/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_30_6037.jpg', '/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_24_6070.jpg', '/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_11_6109.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_54_6070.jpg
/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_48_6078.jpg
/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_42_6058.jpg
/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_30_6037.jpg
/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_24_6070.jpg
/home/nano/Desktop/images/18032025/09/18/image_18032025_09_18_11_6109.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067303","1345067299","1345067284","1345067278","1345067289","1345067294"],"photo_ids_order":["1345067278","1345067284","1345067289","1345067294","1345067299","1345067303"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9f04722764c19a8e449a682fa8af45e4.jpg","text":"TemporaryFile(/tmp/multipartBody2014454863163092468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285972348,"filename":"image_18032025_09_18_11_6109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f57ec6c121e081b3079869259c8f5ff.jpg","text":"TemporaryFile(/tmp/multipartBody4347220432274735592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285972348,"filename":"image_18032025_09_18_24_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/22ab22ddc5a3d9a5e2d0785f9192fc0d.jpg","text":"TemporaryFile(/tmp/multipartBody2600152764849644770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285972348,"filename":"image_18032025_09_18_48_6078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8b496185e2e3719997121e72227cac93.jpg","text":"TemporaryFile(/tmp/multipartBody3086030841386362546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285972348,"filename":"image_18032025_09_18_54_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6d41e49e89a81bf3e49af63c68ff388e.jpg","text":"TemporaryFile(/tmp/multipartBody2866826653328134486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285972348,"filename":"image_18032025_09_18_42_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0674cf196b54e1b444163d7f81156d7f.jpg","text":"TemporaryFile(/tmp/multipartBody7168939307193543020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742285972348,"filename":"image_18032025_09_18_30_6037.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067289","file1":"1345067284","file0":"1345067278","file4":"1345067299","file5":"1345067303","file3":"1345067294"},"map_files_photo_id_array":[{"photo_id":"1345067303","filename":"file5"},{"photo_id":"1345067289","filename":"file2"},{"photo_id":"1345067299","filename":"file4"},{"photo_id":"1345067284","filename":"file1"},{"photo_id":"1345067278","filename":"file0"},{"photo_id":"1345067294","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067303":["hashtag1","hashtag2"]},{"1345067299":["hashtag1","hashtag2"]},{"1345067284":["hashtag1","hashtag2"]},{"1345067278":["hashtag1","hashtag2"]},{"1345067289":["hashtag1","hashtag2"]},{"1345067294":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067303, 1345067299, 1345067284, 1345067278, 1345067289, 1345067294)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.3077552318573 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:19:31.877416
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_53_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_47_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_41_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_35_5923.jpg', 2), ('/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_29_5848.jpg', 2), ('/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_17_6046.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_53_6067.jpg', '/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_47_6050.jpg', '/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_41_6041.jpg', '/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_35_5923.jpg', '/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_29_5848.jpg', '/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_17_6046.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_53_6067.jpg
/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_47_6050.jpg
/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_41_6041.jpg
/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_35_5923.jpg
/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_29_5848.jpg
/home/nano/Desktop/images/18032025/09/19/image_18032025_09_19_17_6046.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067356","1345067350","1345067326","1345067335","1345067321","1345067315"],"photo_ids_order":["1345067315","1345067321","1345067326","1345067335","1345067350","1345067356"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1758ec8dbf9620a254e8b0fe6266a74c.jpg","text":"TemporaryFile(/tmp/multipartBody3149358059558106291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286032326,"filename":"image_18032025_09_19_17_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0cfe55d96de0a4c93197d124da92cde8.jpg","text":"TemporaryFile(/tmp/multipartBody3390031652960996041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286032326,"filename":"image_18032025_09_19_29_5848.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12b946ee385c618c6f9c37536f51a60b.jpg","text":"TemporaryFile(/tmp/multipartBody4573335627610824690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286032326,"filename":"image_18032025_09_19_41_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/761dabcc517183aebb35dee5ef1d3527.jpg","text":"TemporaryFile(/tmp/multipartBody8265855996845061117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286032326,"filename":"image_18032025_09_19_35_5923.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/893d094d6005091b19aa1e4d2138b5bb.jpg","text":"TemporaryFile(/tmp/multipartBody6329836396908864245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286032326,"filename":"image_18032025_09_19_47_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/010cdb850186643951eae73221affc28.jpg","text":"TemporaryFile(/tmp/multipartBody9027321311659668370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286032326,"filename":"image_18032025_09_19_53_6067.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067326","file1":"1345067321","file0":"1345067315","file4":"1345067350","file5":"1345067356","file3":"1345067335"},"map_files_photo_id_array":[{"photo_id":"1345067356","filename":"file5"},{"photo_id":"1345067326","filename":"file2"},{"photo_id":"1345067350","filename":"file4"},{"photo_id":"1345067321","filename":"file1"},{"photo_id":"1345067315","filename":"file0"},{"photo_id":"1345067335","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067356":["hashtag1","hashtag2"]},{"1345067350":["hashtag1","hashtag2"]},{"1345067326":["hashtag1","hashtag2"]},{"1345067335":["hashtag1","hashtag2"]},{"1345067321":["hashtag1","hashtag2"]},{"1345067315":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067356, 1345067350, 1345067326, 1345067335, 1345067321, 1345067315)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.14105248451233 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:20:32.005865
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_54_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_48_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_41_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_35_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_29_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_23_6003.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_54_6077.jpg', '/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_48_6067.jpg', '/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_41_6065.jpg', '/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_35_6045.jpg', '/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_29_6069.jpg', '/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_23_6003.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_54_6077.jpg
/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_48_6067.jpg
/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_41_6065.jpg
/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_35_6045.jpg
/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_29_6069.jpg
/home/nano/Desktop/images/18032025/09/20/image_18032025_09_20_23_6003.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067377","1345067397","1345067391","1345067388","1345067382","1345067372"],"photo_ids_order":["1345067372","1345067377","1345067382","1345067388","1345067391","1345067397"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd68b154a1e056f0bcda863f035360b9.jpg","text":"TemporaryFile(/tmp/multipartBody377800285993155663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286092448,"filename":"image_18032025_09_20_48_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/edcf889f7076aa7e50938472940d5546.jpg","text":"TemporaryFile(/tmp/multipartBody5124655139706111881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286092448,"filename":"image_18032025_09_20_23_6003.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f8633c02a9f00db2b1e616b81c11bc7c.jpg","text":"TemporaryFile(/tmp/multipartBody5873225148875113785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286092448,"filename":"image_18032025_09_20_29_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18abd652164ae7797260e7c1517361fb.jpg","text":"TemporaryFile(/tmp/multipartBody6194699190590763896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286092448,"filename":"image_18032025_09_20_35_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/21b8901dfa8c2484a14f4c15415448d5.jpg","text":"TemporaryFile(/tmp/multipartBody3909025554344543512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286092448,"filename":"image_18032025_09_20_41_6065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d23f53d44faff56f06ddd8fd0164a99b.jpg","text":"TemporaryFile(/tmp/multipartBody4150187066947676036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286092448,"filename":"image_18032025_09_20_54_6077.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067382","file1":"1345067377","file0":"1345067372","file4":"1345067391","file5":"1345067397","file3":"1345067388"},"map_files_photo_id_array":[{"photo_id":"1345067397","filename":"file5"},{"photo_id":"1345067382","filename":"file2"},{"photo_id":"1345067391","filename":"file4"},{"photo_id":"1345067377","filename":"file1"},{"photo_id":"1345067372","filename":"file0"},{"photo_id":"1345067388","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067377":["hashtag1","hashtag2"]},{"1345067397":["hashtag1","hashtag2"]},{"1345067391":["hashtag1","hashtag2"]},{"1345067388":["hashtag1","hashtag2"]},{"1345067382":["hashtag1","hashtag2"]},{"1345067372":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067377, 1345067397, 1345067391, 1345067388, 1345067382, 1345067372)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.9115514755249 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:21:32.121862
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_47_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_41_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_23_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_17_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_11_5066.jpg', 2), ('/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_06_6068.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_47_6046.jpg', '/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_41_6045.jpg', '/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_23_6043.jpg', '/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_17_6074.jpg', '/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_11_5066.jpg', '/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_06_6068.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_47_6046.jpg
/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_41_6045.jpg
/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_23_6043.jpg
/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_17_6074.jpg
/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_11_5066.jpg
/home/nano/Desktop/images/18032025/09/21/image_18032025_09_21_06_6068.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067417","1345067425","1345067428","1345067413","1345067421","1345067432"],"photo_ids_order":["1345067413","1345067417","1345067421","1345067425","1345067428","1345067432"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3618364078e415e7f1aa4db603464323.jpg","text":"TemporaryFile(/tmp/multipartBody5249685520328147303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286152566,"filename":"image_18032025_09_21_41_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dce7fa70c756a1a8dd0feb89aab3f954.jpg","text":"TemporaryFile(/tmp/multipartBody2690528448349394742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286152566,"filename":"image_18032025_09_21_17_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9efc5c75779bc3acd6d6f8e90ef00139.jpg","text":"TemporaryFile(/tmp/multipartBody4724090680181880223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286152566,"filename":"image_18032025_09_21_11_5066.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/df8053f9754b6810a0508e5ec2796751.jpg","text":"TemporaryFile(/tmp/multipartBody2799471442112823074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286152566,"filename":"image_18032025_09_21_47_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27c8faa13d1ac28abe76474cb3ad8327.jpg","text":"TemporaryFile(/tmp/multipartBody7144405825489467998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286152566,"filename":"image_18032025_09_21_23_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a4cad70608632fc6b6b4cd18fe81615d.jpg","text":"TemporaryFile(/tmp/multipartBody5307156769535796065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286152566,"filename":"image_18032025_09_21_06_6068.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067421","file1":"1345067417","file0":"1345067413","file4":"1345067428","file5":"1345067432","file3":"1345067425"},"map_files_photo_id_array":[{"photo_id":"1345067432","filename":"file5"},{"photo_id":"1345067421","filename":"file2"},{"photo_id":"1345067428","filename":"file4"},{"photo_id":"1345067417","filename":"file1"},{"photo_id":"1345067413","filename":"file0"},{"photo_id":"1345067425","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067417":["hashtag1","hashtag2"]},{"1345067425":["hashtag1","hashtag2"]},{"1345067428":["hashtag1","hashtag2"]},{"1345067413":["hashtag1","hashtag2"]},{"1345067421":["hashtag1","hashtag2"]},{"1345067432":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067417, 1345067425, 1345067428, 1345067413, 1345067421, 1345067432)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.216411352157593 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:22:32.204349
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_54_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_48_6039.jpg', 2), ('/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_42_6049.jpg', 2), ('/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_36_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_30_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_23_6047.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_54_6040.jpg', '/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_48_6039.jpg', '/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_42_6049.jpg', '/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_36_6040.jpg', '/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_30_6047.jpg', '/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_23_6047.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_54_6040.jpg
/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_48_6039.jpg
/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_42_6049.jpg
/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_36_6040.jpg
/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_30_6047.jpg
/home/nano/Desktop/images/18032025/09/22/image_18032025_09_22_23_6047.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067467","1345067455","1345067451","1345067463","1345067471","1345067459"],"photo_ids_order":["1345067451","1345067455","1345067459","1345067463","1345067467","1345067471"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4139873a8e3922c77e5f988a530dafee.jpg","text":"TemporaryFile(/tmp/multipartBody6580743818180751386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286212652,"filename":"image_18032025_09_22_30_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/660f8f1d3e7b6861eab55dbe1a8b7dc8.jpg","text":"TemporaryFile(/tmp/multipartBody5128743840193707617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286212652,"filename":"image_18032025_09_22_48_6039.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3284c396aa3a1286680aa269acb141af.jpg","text":"TemporaryFile(/tmp/multipartBody4334888191981405908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286212652,"filename":"image_18032025_09_22_54_6040.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8116b7b4fa48438f0fd092c948a950a9.jpg","text":"TemporaryFile(/tmp/multipartBody6125502279653814340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286212652,"filename":"image_18032025_09_22_36_6040.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10a24b8207f5216f580b6e15e6f7ba71.jpg","text":"TemporaryFile(/tmp/multipartBody5756221778247817633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286212652,"filename":"image_18032025_09_22_23_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0d5226eeb01e06718bdfe78a7dcd9f6a.jpg","text":"TemporaryFile(/tmp/multipartBody2326551068328138235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286212652,"filename":"image_18032025_09_22_42_6049.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067459","file1":"1345067455","file0":"1345067451","file4":"1345067467","file5":"1345067471","file3":"1345067463"},"map_files_photo_id_array":[{"photo_id":"1345067471","filename":"file5"},{"photo_id":"1345067459","filename":"file2"},{"photo_id":"1345067467","filename":"file4"},{"photo_id":"1345067455","filename":"file1"},{"photo_id":"1345067451","filename":"file0"},{"photo_id":"1345067463","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067467":["hashtag1","hashtag2"]},{"1345067455":["hashtag1","hashtag2"]},{"1345067451":["hashtag1","hashtag2"]},{"1345067463":["hashtag1","hashtag2"]},{"1345067471":["hashtag1","hashtag2"]},{"1345067459":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067467, 1345067455, 1345067451, 1345067463, 1345067471, 1345067459)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.394373178482056 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:23:32.338235
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_53_6032.jpg', 2), ('/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_41_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_35_6031.jpg', 2), ('/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_17_6014.jpg', 2), ('/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_11_5036.jpg', 2), ('/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_06_6049.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_53_6032.jpg', '/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_41_6029.jpg', '/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_35_6031.jpg', '/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_17_6014.jpg', '/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_11_5036.jpg', '/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_06_6049.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_53_6032.jpg
/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_41_6029.jpg
/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_35_6031.jpg
/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_17_6014.jpg
/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_11_5036.jpg
/home/nano/Desktop/images/18032025/09/23/image_18032025_09_23_06_6049.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067501","1345067491","1345067506","1345067496","1345067510","1345067513"],"photo_ids_order":["1345067491","1345067496","1345067501","1345067506","1345067510","1345067513"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/35ccc26860416ed84e0d12cc530c786a.jpg","text":"TemporaryFile(/tmp/multipartBody3152185129749737623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286272766,"filename":"image_18032025_09_23_35_6031.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/70806ed73e66c38b4cc8ea3656c1f634.jpg","text":"TemporaryFile(/tmp/multipartBody565537798902838834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286272766,"filename":"image_18032025_09_23_53_6032.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1270662b9e952445f9ee65536ce1ef15.jpg","text":"TemporaryFile(/tmp/multipartBody4957725032101470718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286272766,"filename":"image_18032025_09_23_17_6014.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0737383a565b03fc52b19b898134226.jpg","text":"TemporaryFile(/tmp/multipartBody5004878162764946526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286272766,"filename":"image_18032025_09_23_41_6029.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e499897a27f84d27baef47d78ab279ea.jpg","text":"TemporaryFile(/tmp/multipartBody5038561998263706778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286272766,"filename":"image_18032025_09_23_11_5036.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c70b6e0fca77764818307adf5e2ed6a7.jpg","text":"TemporaryFile(/tmp/multipartBody2790636360868321738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286272766,"filename":"image_18032025_09_23_06_6049.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067501","file1":"1345067496","file0":"1345067491","file4":"1345067510","file5":"1345067513","file3":"1345067506"},"map_files_photo_id_array":[{"photo_id":"1345067513","filename":"file5"},{"photo_id":"1345067501","filename":"file2"},{"photo_id":"1345067510","filename":"file4"},{"photo_id":"1345067496","filename":"file1"},{"photo_id":"1345067491","filename":"file0"},{"photo_id":"1345067506","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067501":["hashtag1","hashtag2"]},{"1345067491":["hashtag1","hashtag2"]},{"1345067506":["hashtag1","hashtag2"]},{"1345067496":["hashtag1","hashtag2"]},{"1345067510":["hashtag1","hashtag2"]},{"1345067513":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067501, 1345067491, 1345067506, 1345067496, 1345067510, 1345067513)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.06374168395996 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:24:32.438063
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_53_6049.jpg', 2), ('/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_47_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_41_6039.jpg', 2), ('/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_35_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_29_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_23_6045.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_53_6049.jpg', '/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_47_6043.jpg', '/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_41_6039.jpg', '/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_35_6044.jpg', '/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_29_6040.jpg', '/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_23_6045.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_53_6049.jpg
/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_47_6043.jpg
/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_41_6039.jpg
/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_35_6044.jpg
/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_29_6040.jpg
/home/nano/Desktop/images/18032025/09/24/image_18032025_09_24_23_6045.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067560","1345067548","1345067557","1345067544","1345067538","1345067552"],"photo_ids_order":["1345067538","1345067544","1345067548","1345067552","1345067557","1345067560"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7d4d8b64ebc4128df1cf05a57aa76219.jpg","text":"TemporaryFile(/tmp/multipartBody1490612190544240095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286332879,"filename":"image_18032025_09_24_23_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7ebf91517a009c538f1365b8c84e77fb.jpg","text":"TemporaryFile(/tmp/multipartBody3086799091524154225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286332879,"filename":"image_18032025_09_24_41_6039.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c47d058d80e8ef5494c9e6e5425d55a8.jpg","text":"TemporaryFile(/tmp/multipartBody1572481207890375375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286332879,"filename":"image_18032025_09_24_29_6040.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/51a97151d5961cc34f8512edb784ac01.jpg","text":"TemporaryFile(/tmp/multipartBody44278414793896869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286332879,"filename":"image_18032025_09_24_47_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/45a69848ab8ea477e6849bfb24dc38bd.jpg","text":"TemporaryFile(/tmp/multipartBody1527760036647455166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286332879,"filename":"image_18032025_09_24_53_6049.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7bdc1f496e768b4ecdc8d84b720a2f23.jpg","text":"TemporaryFile(/tmp/multipartBody8945493195354929753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286332879,"filename":"image_18032025_09_24_35_6044.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067548","file1":"1345067544","file0":"1345067538","file4":"1345067557","file5":"1345067560","file3":"1345067552"},"map_files_photo_id_array":[{"photo_id":"1345067560","filename":"file5"},{"photo_id":"1345067548","filename":"file2"},{"photo_id":"1345067557","filename":"file4"},{"photo_id":"1345067544","filename":"file1"},{"photo_id":"1345067538","filename":"file0"},{"photo_id":"1345067552","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067560":["hashtag1","hashtag2"]},{"1345067548":["hashtag1","hashtag2"]},{"1345067557":["hashtag1","hashtag2"]},{"1345067544":["hashtag1","hashtag2"]},{"1345067538":["hashtag1","hashtag2"]},{"1345067552":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067560, 1345067548, 1345067557, 1345067544, 1345067538, 1345067552)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.64743995666504 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:25:32.505938
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_53_6018.jpg', 2), ('/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_47_6049.jpg', 2), ('/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_41_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_35_5039.jpg', 2), ('/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_30_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_24_6044.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_53_6018.jpg', '/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_47_6049.jpg', '/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_41_6074.jpg', '/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_35_5039.jpg', '/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_30_6043.jpg', '/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_24_6044.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_53_6018.jpg
/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_47_6049.jpg
/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_41_6074.jpg
/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_35_5039.jpg
/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_30_6043.jpg
/home/nano/Desktop/images/18032025/09/25/image_18032025_09_25_24_6044.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067593","1345067581","1345067598","1345067577","1345067588","1345067585"],"photo_ids_order":["1345067577","1345067581","1345067585","1345067588","1345067593","1345067598"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/76f54287c10272bf1159d3f4ca99166f.jpg","text":"TemporaryFile(/tmp/multipartBody8259490136326363773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286392942,"filename":"image_18032025_09_25_30_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6c32d5be44420e690cf5934ac8a59d28.jpg","text":"TemporaryFile(/tmp/multipartBody3925933962761596784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286392942,"filename":"image_18032025_09_25_47_6049.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5dbb8783cb1582331eb5ced6cb437191.jpg","text":"TemporaryFile(/tmp/multipartBody8918454965510148804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286392942,"filename":"image_18032025_09_25_24_6044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/299e578c0b4966f84d133398d55fd3ae.jpg","text":"TemporaryFile(/tmp/multipartBody3373096442033387719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286392942,"filename":"image_18032025_09_25_53_6018.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d75662dafd49064b32ca70e739c6aaca.jpg","text":"TemporaryFile(/tmp/multipartBody3660772060296667519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286392942,"filename":"image_18032025_09_25_35_5039.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f3b10c2e500d0e23f417f16704067065.jpg","text":"TemporaryFile(/tmp/multipartBody1776355718347393750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286392942,"filename":"image_18032025_09_25_41_6074.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067585","file1":"1345067581","file0":"1345067577","file4":"1345067593","file5":"1345067598","file3":"1345067588"},"map_files_photo_id_array":[{"photo_id":"1345067598","filename":"file5"},{"photo_id":"1345067585","filename":"file2"},{"photo_id":"1345067593","filename":"file4"},{"photo_id":"1345067581","filename":"file1"},{"photo_id":"1345067577","filename":"file0"},{"photo_id":"1345067588","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067593":["hashtag1","hashtag2"]},{"1345067581":["hashtag1","hashtag2"]},{"1345067598":["hashtag1","hashtag2"]},{"1345067577":["hashtag1","hashtag2"]},{"1345067588":["hashtag1","hashtag2"]},{"1345067585":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067593, 1345067581, 1345067598, 1345067577, 1345067588, 1345067585)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.05864453315735 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:26:32.727989
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_47_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_41_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_35_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_29_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_23_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_17_6022.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_47_6040.jpg', '/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_41_6045.jpg', '/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_35_6074.jpg', '/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_29_6050.jpg', '/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_23_6050.jpg', '/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_17_6022.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_47_6040.jpg
/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_41_6045.jpg
/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_35_6074.jpg
/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_29_6050.jpg
/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_23_6050.jpg
/home/nano/Desktop/images/18032025/09/26/image_18032025_09_26_17_6022.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067620","1345067638","1345067623","1345067628","1345067616","1345067633"],"photo_ids_order":["1345067616","1345067620","1345067623","1345067628","1345067633","1345067638"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a7dac10aa8c5c580bb6d5750d2488cf2.jpg","text":"TemporaryFile(/tmp/multipartBody9088892935673262904asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286453181,"filename":"image_18032025_09_26_41_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e97eee872a6e2cd2990d98b6e5c4969a.jpg","text":"TemporaryFile(/tmp/multipartBody2726087450515408794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286453181,"filename":"image_18032025_09_26_17_6022.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/660a2adcdde115e1a5cb1e55af369f88.jpg","text":"TemporaryFile(/tmp/multipartBody5602888362222299346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286453181,"filename":"image_18032025_09_26_35_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d1e337417b13e9254fc9714931a3ae7.jpg","text":"TemporaryFile(/tmp/multipartBody6149012210602652473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286453181,"filename":"image_18032025_09_26_29_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6463a3e5f3547156528836f02de2fbb.jpg","text":"TemporaryFile(/tmp/multipartBody5492470528790883951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286453181,"filename":"image_18032025_09_26_47_6040.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ba84151452db7a81d6fcfae8f81a3111.jpg","text":"TemporaryFile(/tmp/multipartBody7160385594147905891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286453181,"filename":"image_18032025_09_26_23_6050.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067623","file1":"1345067620","file0":"1345067616","file4":"1345067633","file5":"1345067638","file3":"1345067628"},"map_files_photo_id_array":[{"photo_id":"1345067638","filename":"file5"},{"photo_id":"1345067623","filename":"file2"},{"photo_id":"1345067633","filename":"file4"},{"photo_id":"1345067620","filename":"file1"},{"photo_id":"1345067616","filename":"file0"},{"photo_id":"1345067628","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067620":["hashtag1","hashtag2"]},{"1345067638":["hashtag1","hashtag2"]},{"1345067623":["hashtag1","hashtag2"]},{"1345067628":["hashtag1","hashtag2"]},{"1345067616":["hashtag1","hashtag2"]},{"1345067633":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067620, 1345067638, 1345067623, 1345067628, 1345067616, 1345067633)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.016722202301025 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:27:31.856081
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_53_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_41_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_35_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_29_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_23_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_17_5854.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_53_5976.jpg', '/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_41_6043.jpg', '/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_35_6048.jpg', '/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_29_6048.jpg', '/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_23_6045.jpg', '/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_17_5854.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_53_5976.jpg
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_41_6043.jpg
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_35_6048.jpg
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_29_6048.jpg
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_23_6045.jpg
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_17_5854.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3343343734741211 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:28:02.559662
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_53_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_41_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_35_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_29_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_23_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_17_5854.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_53_5976.jpg', '/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_41_6043.jpg', '/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_35_6048.jpg', '/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_29_6048.jpg', '/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_23_6045.jpg', '/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_17_5854.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_53_5976.jpg
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_41_6043.jpg
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_35_6048.jpg
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_29_6048.jpg
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_23_6045.jpg
/home/nano/Desktop/images/18032025/09/27/image_18032025_09_27_17_5854.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067689","1345067694","1345067691","1345067687","1345067681","1345067684"],"photo_ids_order":["1345067681","1345067684","1345067687","1345067689","1345067691","1345067694"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/99d95075ef812fd4e84dfa7da8af9eb0.jpg","text":"TemporaryFile(/tmp/multipartBody7303586411826637199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286543091,"filename":"image_18032025_09_27_29_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac3c2efca13cefeae87b900531570e40.jpg","text":"TemporaryFile(/tmp/multipartBody303498384959290756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286543091,"filename":"image_18032025_09_27_17_5854.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8460f59b1d7a2f39b4a181bf3c6085db.jpg","text":"TemporaryFile(/tmp/multipartBody1919707881219364406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286543091,"filename":"image_18032025_09_27_23_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c40a3e8e1574d5cb0a1ef465977b9ed.jpg","text":"TemporaryFile(/tmp/multipartBody1582068986652713465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286543091,"filename":"image_18032025_09_27_35_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a74f11069fe051b06c9b8dac1b6e212d.jpg","text":"TemporaryFile(/tmp/multipartBody7772912697122268219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286543091,"filename":"image_18032025_09_27_53_5976.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28b0b8f4aa576590992556a34559ab2a.jpg","text":"TemporaryFile(/tmp/multipartBody3807953600130819290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286543091,"filename":"image_18032025_09_27_41_6043.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067687","file1":"1345067684","file0":"1345067681","file4":"1345067691","file5":"1345067694","file3":"1345067689"},"map_files_photo_id_array":[{"photo_id":"1345067694","filename":"file5"},{"photo_id":"1345067687","filename":"file2"},{"photo_id":"1345067691","filename":"file4"},{"photo_id":"1345067684","filename":"file1"},{"photo_id":"1345067681","filename":"file0"},{"photo_id":"1345067689","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067689":["hashtag1","hashtag2"]},{"1345067694":["hashtag1","hashtag2"]},{"1345067691":["hashtag1","hashtag2"]},{"1345067687":["hashtag1","hashtag2"]},{"1345067681":["hashtag1","hashtag2"]},{"1345067684":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067689, 1345067694, 1345067691, 1345067687, 1345067681, 1345067684)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.582215547561646 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:29:03.007943
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_54_5824.jpg', 2), ('/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_48_5991.jpg', 2), ('/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_42_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_24_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_18_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_12_6106.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_54_5824.jpg', '/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_48_5991.jpg', '/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_42_6013.jpg', '/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_24_6041.jpg', '/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_18_6044.jpg', '/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_12_6106.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_54_5824.jpg
/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_48_5991.jpg
/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_42_6013.jpg
/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_24_6041.jpg
/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_18_6044.jpg
/home/nano/Desktop/images/18032025/09/28/image_18032025_09_28_12_6106.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067727","1345067741","1345067735","1345067738","1345067723","1345067732"],"photo_ids_order":["1345067723","1345067727","1345067732","1345067735","1345067738","1345067741"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d4cacd8e9f0098bd68eab242f5b4bdfa.jpg","text":"TemporaryFile(/tmp/multipartBody3914056503811593020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286603610,"filename":"image_18032025_09_28_48_5991.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f6b26c9637ba720c97a6de00b9bb432c.jpg","text":"TemporaryFile(/tmp/multipartBody1596829197789108759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286603610,"filename":"image_18032025_09_28_12_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0758be1bdc86d07ee686a9674aaf9c66.jpg","text":"TemporaryFile(/tmp/multipartBody4508384149330916491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286603610,"filename":"image_18032025_09_28_24_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/25d0188b16efc0d190109968ba6c4f92.jpg","text":"TemporaryFile(/tmp/multipartBody4314207678150418517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286603610,"filename":"image_18032025_09_28_18_6044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01218e938f3e4aa5723ae9449899487c.jpg","text":"TemporaryFile(/tmp/multipartBody5036345264140496261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286603610,"filename":"image_18032025_09_28_54_5824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b447aefe714fc73e0269fc572197793c.jpg","text":"TemporaryFile(/tmp/multipartBody7740626243689221946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286603610,"filename":"image_18032025_09_28_42_6013.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067732","file1":"1345067727","file0":"1345067723","file4":"1345067738","file5":"1345067741","file3":"1345067735"},"map_files_photo_id_array":[{"photo_id":"1345067741","filename":"file5"},{"photo_id":"1345067732","filename":"file2"},{"photo_id":"1345067738","filename":"file4"},{"photo_id":"1345067727","filename":"file1"},{"photo_id":"1345067723","filename":"file0"},{"photo_id":"1345067735","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067727":["hashtag1","hashtag2"]},{"1345067741":["hashtag1","hashtag2"]},{"1345067735":["hashtag1","hashtag2"]},{"1345067738":["hashtag1","hashtag2"]},{"1345067723":["hashtag1","hashtag2"]},{"1345067732":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067727, 1345067741, 1345067735, 1345067738, 1345067723, 1345067732)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.93726897239685 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:30:02.915157
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_53_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_41_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_35_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_29_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_23_6019.jpg', 2), ('/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_17_5817.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_53_6051.jpg', '/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_41_6054.jpg', '/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_35_6053.jpg', '/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_29_5967.jpg', '/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_23_6019.jpg', '/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_17_5817.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_53_6051.jpg
/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_41_6054.jpg
/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_35_6053.jpg
/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_29_5967.jpg
/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_23_6019.jpg
/home/nano/Desktop/images/18032025/09/29/image_18032025_09_29_17_5817.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345067809","1345067800","1345067859","1345067847","1345067805","1345067816"],"photo_ids_order":["1345067800","1345067805","1345067809","1345067816","1345067847","1345067859"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b00d4ca8a1f0b3671d94a941bc52382a.jpg","text":"TemporaryFile(/tmp/multipartBody7421734460386091341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286663355,"filename":"image_18032025_09_29_35_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be247c13b430a670537a98a35853d5f9.jpg","text":"TemporaryFile(/tmp/multipartBody5713479803063491149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286663355,"filename":"image_18032025_09_29_53_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4de6c2e85f2d7907cdd30ca354e12b6d.jpg","text":"TemporaryFile(/tmp/multipartBody4057945044436339003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286663355,"filename":"image_18032025_09_29_17_5817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/611bd50ecd2d72546f517ff86d5fc8a7.jpg","text":"TemporaryFile(/tmp/multipartBody3868257866865654604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286663355,"filename":"image_18032025_09_29_23_6019.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8190e2f2a90fc744d6ac7aeb47fe5c92.jpg","text":"TemporaryFile(/tmp/multipartBody746104010098641990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286663355,"filename":"image_18032025_09_29_41_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2680326a235037feac9ab96986785cf3.jpg","text":"TemporaryFile(/tmp/multipartBody7713597821775855384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286663355,"filename":"image_18032025_09_29_29_5967.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067809","file1":"1345067805","file0":"1345067800","file4":"1345067847","file5":"1345067859","file3":"1345067816"},"map_files_photo_id_array":[{"photo_id":"1345067859","filename":"file5"},{"photo_id":"1345067809","filename":"file2"},{"photo_id":"1345067847","filename":"file4"},{"photo_id":"1345067805","filename":"file1"},{"photo_id":"1345067800","filename":"file0"},{"photo_id":"1345067816","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345067809":["hashtag1","hashtag2"]},{"1345067800":["hashtag1","hashtag2"]},{"1345067859":["hashtag1","hashtag2"]},{"1345067847":["hashtag1","hashtag2"]},{"1345067805":["hashtag1","hashtag2"]},{"1345067816":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345067809, 1345067800, 1345067859, 1345067847, 1345067805, 1345067816)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.34831666946411 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:31:03.064990
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_48_6033.jpg', 2), ('/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_42_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_30_6035.jpg', 2), ('/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_18_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_12_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_05_6067.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_48_6033.jpg', '/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_42_6036.jpg', '/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_30_6035.jpg', '/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_18_6052.jpg', '/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_12_6087.jpg', '/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_05_6067.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_48_6033.jpg
/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_42_6036.jpg
/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_30_6035.jpg
/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_18_6052.jpg
/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_12_6087.jpg
/home/nano/Desktop/images/18032025/09/30/image_18032025_09_30_05_6067.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345068019","1345067962","1345068041","1345067951","1345068038","1345067992"],"photo_ids_order":["1345067951","1345067962","1345067992","1345068019","1345068038","1345068041"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a4e367df293f2d5a8cc17ef07c6b96f1.jpg","text":"TemporaryFile(/tmp/multipartBody6615453247804295987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286723685,"filename":"image_18032025_09_30_18_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95507c25c031bdd0778e5cdce5765f13.jpg","text":"TemporaryFile(/tmp/multipartBody4612327418682746347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286723685,"filename":"image_18032025_09_30_42_6036.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca148592bb60d395df4e3bddff8b4f70.jpg","text":"TemporaryFile(/tmp/multipartBody3542173804279370287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286723685,"filename":"image_18032025_09_30_05_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f0701786274ffaab1df8c09a843079c9.jpg","text":"TemporaryFile(/tmp/multipartBody9221694470044894664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286723685,"filename":"image_18032025_09_30_48_6033.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ed967139461084e373cd72f4b5e09f7.jpg","text":"TemporaryFile(/tmp/multipartBody4535864111916160980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286723685,"filename":"image_18032025_09_30_12_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e9698e674050a8e7ce4f5196cce0ae5.jpg","text":"TemporaryFile(/tmp/multipartBody3662478865063406641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286723685,"filename":"image_18032025_09_30_30_6035.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345067992","file1":"1345067962","file0":"1345067951","file4":"1345068038","file5":"1345068041","file3":"1345068019"},"map_files_photo_id_array":[{"photo_id":"1345068041","filename":"file5"},{"photo_id":"1345067992","filename":"file2"},{"photo_id":"1345068038","filename":"file4"},{"photo_id":"1345067962","filename":"file1"},{"photo_id":"1345067951","filename":"file0"},{"photo_id":"1345068019","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345068019":["hashtag1","hashtag2"]},{"1345067962":["hashtag1","hashtag2"]},{"1345068041":["hashtag1","hashtag2"]},{"1345067951":["hashtag1","hashtag2"]},{"1345068038":["hashtag1","hashtag2"]},{"1345067992":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345068019, 1345067962, 1345068041, 1345067951, 1345068038, 1345067992)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.595412969589233 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:32:03.052811
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_53_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_41_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_35_6034.jpg', 2), ('/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_29_6039.jpg', 2), ('/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_23_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_17_6073.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_53_6041.jpg', '/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_41_5679.jpg', '/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_35_6034.jpg', '/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_29_6039.jpg', '/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_23_6046.jpg', '/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_17_6073.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_53_6041.jpg
/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_41_5679.jpg
/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_35_6034.jpg
/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_29_6039.jpg
/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_23_6046.jpg
/home/nano/Desktop/images/18032025/09/31/image_18032025_09_31_17_6073.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3494446277618408 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:32:32.494614
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_53_6038.jpg', 2), ('/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_47_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_41_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_35_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_29_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_23_6081.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_53_6038.jpg', '/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_47_6007.jpg', '/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_41_6047.jpg', '/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_35_6051.jpg', '/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_29_6052.jpg', '/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_23_6081.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_53_6038.jpg
/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_47_6007.jpg
/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_41_6047.jpg
/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_35_6051.jpg
/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_29_6052.jpg
/home/nano/Desktop/images/18032025/09/32/image_18032025_09_32_23_6081.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345068142","1345068136","1345068148","1345068138","1345068132","1345068128"],"photo_ids_order":["1345068128","1345068132","1345068136","1345068138","1345068142","1345068148"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/adea93517b8e80fd7466f313dc05752a.jpg","text":"TemporaryFile(/tmp/multipartBody3847812884576067280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286812920,"filename":"image_18032025_09_32_29_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6644497ee47cfbc2c4c6b69b69bb9e5.jpg","text":"TemporaryFile(/tmp/multipartBody4666936840652921851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286812920,"filename":"image_18032025_09_32_41_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e06d96dc57b83a43fccbfca84f25c764.jpg","text":"TemporaryFile(/tmp/multipartBody3406814682837793428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286812920,"filename":"image_18032025_09_32_23_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9f2b8012d9439a15cdfedef781b3044.jpg","text":"TemporaryFile(/tmp/multipartBody2019313183852197903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286812920,"filename":"image_18032025_09_32_35_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ddecbff9d5d0c6cf08bef2ac755fbfa7.jpg","text":"TemporaryFile(/tmp/multipartBody2188031607496986397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286812920,"filename":"image_18032025_09_32_47_6007.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db93b68a5155f7f875ef1f7cda1a74d0.jpg","text":"TemporaryFile(/tmp/multipartBody8479587992463904956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286812920,"filename":"image_18032025_09_32_53_6038.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345068136","file1":"1345068132","file0":"1345068128","file4":"1345068142","file5":"1345068148","file3":"1345068138"},"map_files_photo_id_array":[{"photo_id":"1345068148","filename":"file5"},{"photo_id":"1345068136","filename":"file2"},{"photo_id":"1345068142","filename":"file4"},{"photo_id":"1345068132","filename":"file1"},{"photo_id":"1345068128","filename":"file0"},{"photo_id":"1345068138","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345068142":["hashtag1","hashtag2"]},{"1345068136":["hashtag1","hashtag2"]},{"1345068148":["hashtag1","hashtag2"]},{"1345068138":["hashtag1","hashtag2"]},{"1345068132":["hashtag1","hashtag2"]},{"1345068128":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345068142, 1345068136, 1345068148, 1345068138, 1345068132, 1345068128)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.942527294158936 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:33:32.590096
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_54_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_42_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_36_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_29_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_23_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_17_6043.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_54_6079.jpg', '/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_42_6077.jpg', '/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_36_6057.jpg', '/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_29_6052.jpg', '/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_23_6051.jpg', '/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_17_6043.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_54_6079.jpg
/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_42_6077.jpg
/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_36_6057.jpg
/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_29_6052.jpg
/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_23_6051.jpg
/home/nano/Desktop/images/18032025/09/33/image_18032025_09_33_17_6043.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345068249","1345068231","1345068290","1345068266","1345068254","1345068292"],"photo_ids_order":["1345068231","1345068249","1345068254","1345068266","1345068290","1345068292"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f14d3d3f75661b7b491101142e9d4be.jpg","text":"TemporaryFile(/tmp/multipartBody3379272586981957718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286873037,"filename":"image_18032025_09_33_42_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/506a2eaa7846c609ae11b4beb9c2a4d3.jpg","text":"TemporaryFile(/tmp/multipartBody3650917807000134697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286873037,"filename":"image_18032025_09_33_54_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2b57b7fe4cc5bdfac66143876ff4618e.jpg","text":"TemporaryFile(/tmp/multipartBody5955211438473740387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286873037,"filename":"image_18032025_09_33_23_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4896d9200ad78c490b058b5abb11b065.jpg","text":"TemporaryFile(/tmp/multipartBody6920065767443006947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286873037,"filename":"image_18032025_09_33_29_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52f526899694130d9be8814eaeb68105.jpg","text":"TemporaryFile(/tmp/multipartBody1528006061090026793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286873037,"filename":"image_18032025_09_33_36_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/927aebce82440f6f1a090d1fef887c27.jpg","text":"TemporaryFile(/tmp/multipartBody1685468407155161764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286873037,"filename":"image_18032025_09_33_17_6043.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345068254","file1":"1345068249","file0":"1345068231","file4":"1345068290","file5":"1345068292","file3":"1345068266"},"map_files_photo_id_array":[{"photo_id":"1345068292","filename":"file5"},{"photo_id":"1345068254","filename":"file2"},{"photo_id":"1345068290","filename":"file4"},{"photo_id":"1345068249","filename":"file1"},{"photo_id":"1345068231","filename":"file0"},{"photo_id":"1345068266","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345068249":["hashtag1","hashtag2"]},{"1345068231":["hashtag1","hashtag2"]},{"1345068290":["hashtag1","hashtag2"]},{"1345068266":["hashtag1","hashtag2"]},{"1345068254":["hashtag1","hashtag2"]},{"1345068292":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345068249, 1345068231, 1345068290, 1345068266, 1345068254, 1345068292)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.181453943252563 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:34:32.690726
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_53_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_47_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_41_6037.jpg', 2), ('/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_35_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_29_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_23_5976.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_53_6081.jpg', '/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_47_6045.jpg', '/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_41_6037.jpg', '/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_35_6046.jpg', '/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_29_6043.jpg', '/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_23_5976.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_53_6081.jpg
/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_47_6045.jpg
/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_41_6037.jpg
/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_35_6046.jpg
/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_29_6043.jpg
/home/nano/Desktop/images/18032025/09/34/image_18032025_09_34_23_5976.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345068454","1345068403","1345068456","1345068438","1345068408","1345068397"],"photo_ids_order":["1345068397","1345068403","1345068408","1345068438","1345068454","1345068456"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd8f3b3b2349d36d5baea62edb9ca71b.jpg","text":"TemporaryFile(/tmp/multipartBody7165522748742419076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286933133,"filename":"image_18032025_09_34_29_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27321362820eaf3828acae990e5f95b5.jpg","text":"TemporaryFile(/tmp/multipartBody223294112121828892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286933133,"filename":"image_18032025_09_34_47_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b2e6f0286690bb34964a1e08fff1c577.jpg","text":"TemporaryFile(/tmp/multipartBody2090540988800404859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286933133,"filename":"image_18032025_09_34_23_5976.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ffd265063fdda9acb260d74fbe272600.jpg","text":"TemporaryFile(/tmp/multipartBody9115130052824547272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286933133,"filename":"image_18032025_09_34_35_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4590236f96f6fca8ceb71685766367be.jpg","text":"TemporaryFile(/tmp/multipartBody2420763227215144932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286933133,"filename":"image_18032025_09_34_41_6037.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0fe305c0ed21e51277194a6f48f6fdc2.jpg","text":"TemporaryFile(/tmp/multipartBody5802147945916234705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286933133,"filename":"image_18032025_09_34_53_6081.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345068408","file1":"1345068403","file0":"1345068397","file4":"1345068454","file5":"1345068456","file3":"1345068438"},"map_files_photo_id_array":[{"photo_id":"1345068456","filename":"file5"},{"photo_id":"1345068408","filename":"file2"},{"photo_id":"1345068454","filename":"file4"},{"photo_id":"1345068403","filename":"file1"},{"photo_id":"1345068397","filename":"file0"},{"photo_id":"1345068438","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345068454":["hashtag1","hashtag2"]},{"1345068403":["hashtag1","hashtag2"]},{"1345068456":["hashtag1","hashtag2"]},{"1345068438":["hashtag1","hashtag2"]},{"1345068408":["hashtag1","hashtag2"]},{"1345068397":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345068454, 1345068403, 1345068456, 1345068438, 1345068408, 1345068397)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.20083785057068 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:35:31.822537
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_53_6095.jpg', 2), ('/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_47_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_41_5068.jpg', 2), ('/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_36_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_30_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_24_6049.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_53_6095.jpg', '/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_47_6074.jpg', '/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_41_5068.jpg', '/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_36_6078.jpg', '/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_30_6080.jpg', '/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_24_6049.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_53_6095.jpg
/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_47_6074.jpg
/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_41_5068.jpg
/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_36_6078.jpg
/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_30_6080.jpg
/home/nano/Desktop/images/18032025/09/35/image_18032025_09_35_24_6049.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345068498","1345068483","1345068488","1345068496","1345068490","1345068493"],"photo_ids_order":["1345068483","1345068488","1345068490","1345068493","1345068496","1345068498"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/64dcd74531d613796468f13b3c513288.jpg","text":"TemporaryFile(/tmp/multipartBody4227341845220794207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286992268,"filename":"image_18032025_09_35_24_6049.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85f055986a5bcb0b0f714b000e493384.jpg","text":"TemporaryFile(/tmp/multipartBody4938933094906584027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286992268,"filename":"image_18032025_09_35_53_6095.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bbc91c76ff938e88fd3eb6cd4da900fa.jpg","text":"TemporaryFile(/tmp/multipartBody2602668280608732555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286992268,"filename":"image_18032025_09_35_47_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/de7eb42202e00810402755d216048817.jpg","text":"TemporaryFile(/tmp/multipartBody4492765064151357042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286992268,"filename":"image_18032025_09_35_30_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/24e3d085de157370af5b7af3797f98a6.jpg","text":"TemporaryFile(/tmp/multipartBody3961817097115128766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286992268,"filename":"image_18032025_09_35_41_5068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c7597c04a61acdfbb4622aa25a3a8e2c.jpg","text":"TemporaryFile(/tmp/multipartBody7972052777611777397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742286992268,"filename":"image_18032025_09_35_36_6078.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345068490","file1":"1345068488","file0":"1345068483","file4":"1345068496","file5":"1345068498","file3":"1345068493"},"map_files_photo_id_array":[{"photo_id":"1345068498","filename":"file5"},{"photo_id":"1345068490","filename":"file2"},{"photo_id":"1345068496","filename":"file4"},{"photo_id":"1345068488","filename":"file1"},{"photo_id":"1345068483","filename":"file0"},{"photo_id":"1345068493","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345068498":["hashtag1","hashtag2"]},{"1345068483":["hashtag1","hashtag2"]},{"1345068488":["hashtag1","hashtag2"]},{"1345068496":["hashtag1","hashtag2"]},{"1345068490":["hashtag1","hashtag2"]},{"1345068493":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345068498, 1345068483, 1345068488, 1345068496, 1345068490, 1345068493)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.742831230163574 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:36:31.926109
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_53_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_47_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_41_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_35_6049.jpg', 2), ('/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_29_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_23_6046.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_53_6072.jpg', '/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_47_6047.jpg', '/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_41_6043.jpg', '/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_35_6049.jpg', '/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_29_6044.jpg', '/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_23_6046.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_53_6072.jpg
/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_47_6047.jpg
/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_41_6043.jpg
/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_35_6049.jpg
/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_29_6044.jpg
/home/nano/Desktop/images/18032025/09/36/image_18032025_09_36_23_6046.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345068646","1345068568","1345068591","1345068618","1345068707","1345068643"],"photo_ids_order":["1345068568","1345068591","1345068618","1345068643","1345068646","1345068707"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/67ca6fc0fcb8fefba2a4659f535dd6e1.jpg","text":"TemporaryFile(/tmp/multipartBody6216497483848850729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287052382,"filename":"image_18032025_09_36_29_6044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7125ec9834e18cf1a5b10617fda14572.jpg","text":"TemporaryFile(/tmp/multipartBody8223177780155658446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287052382,"filename":"image_18032025_09_36_53_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/53c9fdfc6d5a3334f4a49112bcc077d9.jpg","text":"TemporaryFile(/tmp/multipartBody5512553495512459709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287052382,"filename":"image_18032025_09_36_47_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/77a6c4008ba686af70955a767d71b77b.jpg","text":"TemporaryFile(/tmp/multipartBody823386814049389952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287052382,"filename":"image_18032025_09_36_41_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/822bf639f19bb4e46e272483fe1a8dc6.jpg","text":"TemporaryFile(/tmp/multipartBody7248275127244819064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287052382,"filename":"image_18032025_09_36_23_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9232a1a18fa4c418d8787fec9812f943.jpg","text":"TemporaryFile(/tmp/multipartBody1470259305498953921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287052382,"filename":"image_18032025_09_36_35_6049.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345068618","file1":"1345068591","file0":"1345068568","file4":"1345068646","file5":"1345068707","file3":"1345068643"},"map_files_photo_id_array":[{"photo_id":"1345068707","filename":"file5"},{"photo_id":"1345068618","filename":"file2"},{"photo_id":"1345068646","filename":"file4"},{"photo_id":"1345068591","filename":"file1"},{"photo_id":"1345068568","filename":"file0"},{"photo_id":"1345068643","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345068646":["hashtag1","hashtag2"]},{"1345068568":["hashtag1","hashtag2"]},{"1345068591":["hashtag1","hashtag2"]},{"1345068618":["hashtag1","hashtag2"]},{"1345068707":["hashtag1","hashtag2"]},{"1345068643":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345068646, 1345068568, 1345068591, 1345068618, 1345068707, 1345068643)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.16708993911743 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:37:32.043374
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_48_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_42_6762.jpg', 2), ('/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_35_5032.jpg', 2), ('/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_12_6068.jpg', 2), ('/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_06_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/09/36/image_18032025_09_37_00_6051.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_48_6040.jpg', '/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_42_6762.jpg', '/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_35_5032.jpg', '/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_12_6068.jpg', '/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_06_6102.jpg', '/home/nano/Desktop/images/18032025/09/36/image_18032025_09_37_00_6051.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_48_6040.jpg
/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_42_6762.jpg
/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_35_5032.jpg
/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_12_6068.jpg
/home/nano/Desktop/images/18032025/09/37/image_18032025_09_37_06_6102.jpg
/home/nano/Desktop/images/18032025/09/36/image_18032025_09_37_00_6051.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345068730","1345068746","1345068740","1345068734","1345068743","1345068737"],"photo_ids_order":["1345068730","1345068734","1345068737","1345068740","1345068743","1345068746"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b63622320215c3ea3e51a38b7ab01f1c.jpg","text":"TemporaryFile(/tmp/multipartBody6940527570636464167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287112505,"filename":"image_18032025_09_37_48_6040.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4d9affd5fbd1850024b014e4a1f9692.jpg","text":"TemporaryFile(/tmp/multipartBody5044037273970382886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287112505,"filename":"image_18032025_09_37_00_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d636d08e873f69bb7bdcfa3baa22f4c9.jpg","text":"TemporaryFile(/tmp/multipartBody7488949146646050630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287112505,"filename":"image_18032025_09_37_12_6068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/439be38a56ac0df5dd96470544bdf1a3.jpg","text":"TemporaryFile(/tmp/multipartBody9031299629735843977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287112505,"filename":"image_18032025_09_37_42_6762.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/048961ae81712a95f2a2e9f05575b939.jpg","text":"TemporaryFile(/tmp/multipartBody5520746749424519138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287112505,"filename":"image_18032025_09_37_06_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/89780c5d90ed7f7d15885b48e21bc3c2.jpg","text":"TemporaryFile(/tmp/multipartBody9023320017090293605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287112505,"filename":"image_18032025_09_37_35_5032.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345068737","file1":"1345068734","file0":"1345068730","file4":"1345068743","file5":"1345068746","file3":"1345068740"},"map_files_photo_id_array":[{"photo_id":"1345068746","filename":"file5"},{"photo_id":"1345068737","filename":"file2"},{"photo_id":"1345068743","filename":"file4"},{"photo_id":"1345068734","filename":"file1"},{"photo_id":"1345068730","filename":"file0"},{"photo_id":"1345068740","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345068730":["hashtag1","hashtag2"]},{"1345068746":["hashtag1","hashtag2"]},{"1345068740":["hashtag1","hashtag2"]},{"1345068734":["hashtag1","hashtag2"]},{"1345068743":["hashtag1","hashtag2"]},{"1345068737":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345068730, 1345068746, 1345068740, 1345068734, 1345068743, 1345068737)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.163458108901978 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:38:32.247839
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_53_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_47_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_41_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_35_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_29_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_23_6075.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_53_6042.jpg', '/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_47_6053.jpg', '/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_41_6071.jpg', '/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_35_6046.jpg', '/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_29_6054.jpg', '/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_23_6075.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_53_6042.jpg
/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_47_6053.jpg
/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_41_6071.jpg
/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_35_6046.jpg
/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_29_6054.jpg
/home/nano/Desktop/images/18032025/09/38/image_18032025_09_38_23_6075.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345068780","1345068774","1345068797","1345068788","1345068800","1345068793"],"photo_ids_order":["1345068774","1345068780","1345068788","1345068793","1345068797","1345068800"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f1175c6feccfa8c916ffe0b05faf10b.jpg","text":"TemporaryFile(/tmp/multipartBody2836231708987729455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287172709,"filename":"image_18032025_09_38_47_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5d4840cc350cf9fe08f4b16193a22301.jpg","text":"TemporaryFile(/tmp/multipartBody1602767511765121716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287172709,"filename":"image_18032025_09_38_53_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/97153f94fb3ebd38944349f26f9a11cb.jpg","text":"TemporaryFile(/tmp/multipartBody831083662592654338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287172709,"filename":"image_18032025_09_38_29_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d5a2eccb9839554c4e481fba848d2c9.jpg","text":"TemporaryFile(/tmp/multipartBody2348795758705347424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287172709,"filename":"image_18032025_09_38_41_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8221026b522893eb35e76d570c48aba3.jpg","text":"TemporaryFile(/tmp/multipartBody2692860500665430902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287172709,"filename":"image_18032025_09_38_23_6075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4dc57586c31cb33ec3f4234629a8a79.jpg","text":"TemporaryFile(/tmp/multipartBody5549040458340205313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287172709,"filename":"image_18032025_09_38_35_6046.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345068788","file1":"1345068780","file0":"1345068774","file4":"1345068797","file5":"1345068800","file3":"1345068793"},"map_files_photo_id_array":[{"photo_id":"1345068800","filename":"file5"},{"photo_id":"1345068788","filename":"file2"},{"photo_id":"1345068797","filename":"file4"},{"photo_id":"1345068780","filename":"file1"},{"photo_id":"1345068774","filename":"file0"},{"photo_id":"1345068793","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345068780":["hashtag1","hashtag2"]},{"1345068774":["hashtag1","hashtag2"]},{"1345068797":["hashtag1","hashtag2"]},{"1345068788":["hashtag1","hashtag2"]},{"1345068800":["hashtag1","hashtag2"]},{"1345068793":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345068780, 1345068774, 1345068797, 1345068788, 1345068800, 1345068793)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.36057424545288 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:39:32.408668
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_53_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_47_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_41_5043.jpg', 2), ('/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_36_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_30_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_24_6050.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_53_6055.jpg', '/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_47_6053.jpg', '/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_41_5043.jpg', '/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_36_6083.jpg', '/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_30_6057.jpg', '/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_24_6050.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_53_6055.jpg
/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_47_6053.jpg
/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_41_5043.jpg
/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_36_6083.jpg
/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_30_6057.jpg
/home/nano/Desktop/images/18032025/09/39/image_18032025_09_39_24_6050.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345068984","1345068927","1345068930","1345068924","1345068959","1345068940"],"photo_ids_order":["1345068924","1345068927","1345068930","1345068940","1345068959","1345068984"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7a6a00a43ad01f15c3881632433b78b.jpg","text":"TemporaryFile(/tmp/multipartBody6066554622148427528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287232855,"filename":"image_18032025_09_39_24_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/57c95ab7e419f0bec587ea3b93500ddc.jpg","text":"TemporaryFile(/tmp/multipartBody5293534462887819538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287232855,"filename":"image_18032025_09_39_47_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/157ec5cd55b26189a9dc8e4d9af5afb1.jpg","text":"TemporaryFile(/tmp/multipartBody1208928471654316468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287232855,"filename":"image_18032025_09_39_41_5043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/66fc2d85fe05e4830a277cbe5ea1a7ef.jpg","text":"TemporaryFile(/tmp/multipartBody1064435031231501260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287232855,"filename":"image_18032025_09_39_53_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2f0d30bbbef05b8e15d1812eabca0182.jpg","text":"TemporaryFile(/tmp/multipartBody4731720400622082448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287232855,"filename":"image_18032025_09_39_30_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e045955a41a476b489a5f43f25b13f33.jpg","text":"TemporaryFile(/tmp/multipartBody3415750463461732506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287232855,"filename":"image_18032025_09_39_36_6083.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345068930","file1":"1345068927","file0":"1345068924","file4":"1345068959","file5":"1345068984","file3":"1345068940"},"map_files_photo_id_array":[{"photo_id":"1345068984","filename":"file5"},{"photo_id":"1345068930","filename":"file2"},{"photo_id":"1345068959","filename":"file4"},{"photo_id":"1345068927","filename":"file1"},{"photo_id":"1345068924","filename":"file0"},{"photo_id":"1345068940","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345068984":["hashtag1","hashtag2"]},{"1345068927":["hashtag1","hashtag2"]},{"1345068930":["hashtag1","hashtag2"]},{"1345068924":["hashtag1","hashtag2"]},{"1345068959":["hashtag1","hashtag2"]},{"1345068940":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345068984, 1345068927, 1345068930, 1345068924, 1345068959, 1345068940)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.44964623451233 secondes ---
[Errno 13] Permission denied: '/home/pi'
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:40:32.503833
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_54_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_47_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_41_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_29_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_23_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_17_6060.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_54_6058.jpg', '/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_47_6070.jpg', '/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_41_6056.jpg', '/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_29_6030.jpg', '/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_23_6059.jpg', '/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_17_6060.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_54_6058.jpg
/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_47_6070.jpg
/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_41_6056.jpg
/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_29_6030.jpg
/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_23_6059.jpg
/home/nano/Desktop/images/18032025/09/40/image_18032025_09_40_17_6060.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345069210","1345069207","1345069224","1345069203","1345069220","1345069216"],"photo_ids_order":["1345069203","1345069207","1345069210","1345069216","1345069220","1345069224"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/38e3327f8f193a612ccaae90351842e9.jpg","text":"TemporaryFile(/tmp/multipartBody8827946606124894787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287292966,"filename":"image_18032025_09_40_41_6056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f1824d9a3637e3d0140e62d75a248ab.jpg","text":"TemporaryFile(/tmp/multipartBody5876828888763733154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287292966,"filename":"image_18032025_09_40_47_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62b1e46f4a00bc11def0c682b50bed2b.jpg","text":"TemporaryFile(/tmp/multipartBody4098978939822416555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287292966,"filename":"image_18032025_09_40_17_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/240d2e8ff61cccde6469d71e5173fda5.jpg","text":"TemporaryFile(/tmp/multipartBody5972432777111016038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287292966,"filename":"image_18032025_09_40_54_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/304affde5a4485688c54807f51708130.jpg","text":"TemporaryFile(/tmp/multipartBody3588825644384209688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287292966,"filename":"image_18032025_09_40_23_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f2c0d23ab440fd0e1e2a4268c1ead47.jpg","text":"TemporaryFile(/tmp/multipartBody1649948966869042009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287292966,"filename":"image_18032025_09_40_29_6030.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345069210","file1":"1345069207","file0":"1345069203","file4":"1345069220","file5":"1345069224","file3":"1345069216"},"map_files_photo_id_array":[{"photo_id":"1345069224","filename":"file5"},{"photo_id":"1345069210","filename":"file2"},{"photo_id":"1345069220","filename":"file4"},{"photo_id":"1345069207","filename":"file1"},{"photo_id":"1345069203","filename":"file0"},{"photo_id":"1345069216","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345069210":["hashtag1","hashtag2"]},{"1345069207":["hashtag1","hashtag2"]},{"1345069224":["hashtag1","hashtag2"]},{"1345069203":["hashtag1","hashtag2"]},{"1345069220":["hashtag1","hashtag2"]},{"1345069216":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345069210, 1345069207, 1345069224, 1345069203, 1345069220, 1345069216)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.632593154907227 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:41:32.621142
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_53_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_47_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_41_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_35_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_29_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_23_5044.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_53_6060.jpg', '/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_47_6061.jpg', '/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_41_6060.jpg', '/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_35_6089.jpg', '/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_29_6092.jpg', '/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_23_5044.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_53_6060.jpg
/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_47_6061.jpg
/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_41_6060.jpg
/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_35_6089.jpg
/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_29_6092.jpg
/home/nano/Desktop/images/18032025/09/41/image_18032025_09_41_23_5044.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345069533","1345069580","1345069565","1345069495","1345069456","1345069596"],"photo_ids_order":["1345069456","1345069495","1345069533","1345069565","1345069580","1345069596"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c848b24cf83e8759a792cb1a41f427e.jpg","text":"TemporaryFile(/tmp/multipartBody2097655855960223859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287353066,"filename":"image_18032025_09_41_41_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/655e42738fbc9ba1995d2d83e200d181.jpg","text":"TemporaryFile(/tmp/multipartBody3187723775965263887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287353066,"filename":"image_18032025_09_41_29_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cc2c0d5964f9bc34e83b3ad5ba2a9495.jpg","text":"TemporaryFile(/tmp/multipartBody4546384338294879954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287353066,"filename":"image_18032025_09_41_35_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/60a134ce40b84e8e18deddc018366dfb.jpg","text":"TemporaryFile(/tmp/multipartBody2503773615551326315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287353066,"filename":"image_18032025_09_41_47_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/214fd60593de47f327e5a7b41473326f.jpg","text":"TemporaryFile(/tmp/multipartBody6013648908083064758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287353066,"filename":"image_18032025_09_41_53_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3abd656d48fb3396eddbe1169ac6a86b.jpg","text":"TemporaryFile(/tmp/multipartBody2714627944452138111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287353066,"filename":"image_18032025_09_41_23_5044.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345069533","file1":"1345069495","file0":"1345069456","file4":"1345069580","file5":"1345069596","file3":"1345069565"},"map_files_photo_id_array":[{"photo_id":"1345069596","filename":"file5"},{"photo_id":"1345069533","filename":"file2"},{"photo_id":"1345069580","filename":"file4"},{"photo_id":"1345069495","filename":"file1"},{"photo_id":"1345069456","filename":"file0"},{"photo_id":"1345069565","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345069533":["hashtag1","hashtag2"]},{"1345069580":["hashtag1","hashtag2"]},{"1345069565":["hashtag1","hashtag2"]},{"1345069495":["hashtag1","hashtag2"]},{"1345069456":["hashtag1","hashtag2"]},{"1345069596":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345069533, 1345069580, 1345069565, 1345069495, 1345069456, 1345069596)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.390629529953 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:42:32.764786
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_53_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_47_5046.jpg', 2), ('/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_42_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_36_6068.jpg', 2), ('/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_30_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_24_6060.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_53_6069.jpg', '/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_47_5046.jpg', '/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_42_6072.jpg', '/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_36_6068.jpg', '/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_30_6072.jpg', '/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_24_6060.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_53_6069.jpg
/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_47_5046.jpg
/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_42_6072.jpg
/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_36_6068.jpg
/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_30_6072.jpg
/home/nano/Desktop/images/18032025/09/42/image_18032025_09_42_24_6060.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345069758","1345069740","1345069710","1345069760","1345069763","1345069753"],"photo_ids_order":["1345069710","1345069740","1345069753","1345069758","1345069760","1345069763"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0268214cc69bf15e2308584ab9963f45.jpg","text":"TemporaryFile(/tmp/multipartBody5243685583697984580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287413204,"filename":"image_18032025_09_42_36_6068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/815b896159d757e518a305b24e58ce57.jpg","text":"TemporaryFile(/tmp/multipartBody1077029087707672197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287413204,"filename":"image_18032025_09_42_47_5046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6d3abb66fc273ac51741920806883550.jpg","text":"TemporaryFile(/tmp/multipartBody3900173570129348647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287413204,"filename":"image_18032025_09_42_53_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28335351c4edcb7b2ac3580489080dc5.jpg","text":"TemporaryFile(/tmp/multipartBody888494198720818813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287413204,"filename":"image_18032025_09_42_30_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5e9550ede1413a5cd1188818fe42fe0.jpg","text":"TemporaryFile(/tmp/multipartBody5995423849104739491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287413204,"filename":"image_18032025_09_42_24_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e5673a1787b17bc4c4303f657b9bea9e.jpg","text":"TemporaryFile(/tmp/multipartBody5965226662859361785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287413204,"filename":"image_18032025_09_42_42_6072.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345069753","file1":"1345069740","file0":"1345069710","file4":"1345069760","file5":"1345069763","file3":"1345069758"},"map_files_photo_id_array":[{"photo_id":"1345069763","filename":"file5"},{"photo_id":"1345069753","filename":"file2"},{"photo_id":"1345069760","filename":"file4"},{"photo_id":"1345069740","filename":"file1"},{"photo_id":"1345069710","filename":"file0"},{"photo_id":"1345069758","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345069758":["hashtag1","hashtag2"]},{"1345069740":["hashtag1","hashtag2"]},{"1345069710":["hashtag1","hashtag2"]},{"1345069760":["hashtag1","hashtag2"]},{"1345069763":["hashtag1","hashtag2"]},{"1345069753":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345069758, 1345069740, 1345069710, 1345069760, 1345069763, 1345069753)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.57232666015625 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:43:31.889649
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_53_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_47_6095.jpg', 2), ('/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_41_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_35_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_29_6064.jpg', 2), ('/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_23_6059.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_53_6065.jpg', '/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_47_6095.jpg', '/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_41_6060.jpg', '/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_35_6055.jpg', '/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_29_6064.jpg', '/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_23_6059.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_53_6065.jpg
/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_47_6095.jpg
/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_41_6060.jpg
/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_35_6055.jpg
/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_29_6064.jpg
/home/nano/Desktop/images/18032025/09/43/image_18032025_09_43_23_6059.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345069899","1345069874","1345069868","1345069883","1345069888","1345069903"],"photo_ids_order":["1345069868","1345069874","1345069883","1345069888","1345069899","1345069903"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c293081a849be02a518091e99444defb.jpg","text":"TemporaryFile(/tmp/multipartBody657634086711627744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287472334,"filename":"image_18032025_09_43_29_6064.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3fd687ba304bb9a0442fa42a7374cdfd.jpg","text":"TemporaryFile(/tmp/multipartBody5178983280537730441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287472334,"filename":"image_18032025_09_43_47_6095.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5d6d3271b77b89a821f38232ba5ebc5e.jpg","text":"TemporaryFile(/tmp/multipartBody4433109060881183597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287472334,"filename":"image_18032025_09_43_53_6065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af81b75d1b2766136f0f9c925bcebcb1.jpg","text":"TemporaryFile(/tmp/multipartBody2024130162077190188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287472334,"filename":"image_18032025_09_43_41_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d554000682e49cba909d16f10a6eedd1.jpg","text":"TemporaryFile(/tmp/multipartBody2133977915771558950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287472334,"filename":"image_18032025_09_43_35_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fa4a1d40ef137d856861bd61c942e52e.jpg","text":"TemporaryFile(/tmp/multipartBody5537657314167924717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287472334,"filename":"image_18032025_09_43_23_6059.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345069883","file1":"1345069874","file0":"1345069868","file4":"1345069899","file5":"1345069903","file3":"1345069888"},"map_files_photo_id_array":[{"photo_id":"1345069903","filename":"file5"},{"photo_id":"1345069883","filename":"file2"},{"photo_id":"1345069899","filename":"file4"},{"photo_id":"1345069874","filename":"file1"},{"photo_id":"1345069868","filename":"file0"},{"photo_id":"1345069888","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345069899":["hashtag1","hashtag2"]},{"1345069874":["hashtag1","hashtag2"]},{"1345069868":["hashtag1","hashtag2"]},{"1345069883":["hashtag1","hashtag2"]},{"1345069888":["hashtag1","hashtag2"]},{"1345069903":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345069899, 1345069874, 1345069868, 1345069883, 1345069888, 1345069903)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.100553035736084 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:44:32.002729
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_53_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_41_6066.jpg', 2), ('/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_35_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_29_5055.jpg', 2), ('/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_24_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_06_6115.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_53_6061.jpg', '/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_41_6066.jpg', '/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_35_6119.jpg', '/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_29_5055.jpg', '/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_24_6059.jpg', '/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_06_6115.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_53_6061.jpg
/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_41_6066.jpg
/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_35_6119.jpg
/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_29_5055.jpg
/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_24_6059.jpg
/home/nano/Desktop/images/18032025/09/44/image_18032025_09_44_06_6115.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345070173","1345070242","1345070274","1345070214","1345070195","1345070144"],"photo_ids_order":["1345070144","1345070173","1345070195","1345070214","1345070242","1345070274"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd3429ea330eee65ddf659a43f6512c2.jpg","text":"TemporaryFile(/tmp/multipartBody6590027769966613406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287532451,"filename":"image_18032025_09_44_41_6066.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bc8a3a95ef373705aae9e27ad4be1c13.jpg","text":"TemporaryFile(/tmp/multipartBody6987225305343092854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287532451,"filename":"image_18032025_09_44_24_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec6e6c3ac13df0def202d59b59ecdd96.jpg","text":"TemporaryFile(/tmp/multipartBody826370936113699661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287532451,"filename":"image_18032025_09_44_06_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7354272c6d26dbeb18969a6b36ea70f.jpg","text":"TemporaryFile(/tmp/multipartBody7421484690172862911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287532451,"filename":"image_18032025_09_44_29_5055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a44df0e0bef9776cd685ee9734b211e8.jpg","text":"TemporaryFile(/tmp/multipartBody827737690823874105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287532451,"filename":"image_18032025_09_44_35_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce0007795f040241106315c053338feb.jpg","text":"TemporaryFile(/tmp/multipartBody4185447674460451962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287532451,"filename":"image_18032025_09_44_53_6061.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345070195","file1":"1345070173","file0":"1345070144","file4":"1345070242","file5":"1345070274","file3":"1345070214"},"map_files_photo_id_array":[{"photo_id":"1345070274","filename":"file5"},{"photo_id":"1345070195","filename":"file2"},{"photo_id":"1345070242","filename":"file4"},{"photo_id":"1345070173","filename":"file1"},{"photo_id":"1345070144","filename":"file0"},{"photo_id":"1345070214","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345070173":["hashtag1","hashtag2"]},{"1345070242":["hashtag1","hashtag2"]},{"1345070274":["hashtag1","hashtag2"]},{"1345070214":["hashtag1","hashtag2"]},{"1345070195":["hashtag1","hashtag2"]},{"1345070144":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345070173, 1345070242, 1345070274, 1345070214, 1345070195, 1345070144)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.65329957008362 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:45:32.150039
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_53_6101.jpg', 2), ('/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_47_5056.jpg', 2), ('/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_42_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_17_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_11_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_05_6094.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_53_6101.jpg', '/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_47_5056.jpg', '/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_42_6093.jpg', '/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_17_6067.jpg', '/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_11_6092.jpg', '/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_05_6094.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_53_6101.jpg
/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_47_5056.jpg
/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_42_6093.jpg
/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_17_6067.jpg
/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_11_6092.jpg
/home/nano/Desktop/images/18032025/09/45/image_18032025_09_45_05_6094.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345070365","1345070335","1345070361","1345070372","1345070351","1345070369"],"photo_ids_order":["1345070335","1345070351","1345070361","1345070365","1345070369","1345070372"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/519efc00c19386c42d044bbda574265e.jpg","text":"TemporaryFile(/tmp/multipartBody5957737021176312886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287592630,"filename":"image_18032025_09_45_17_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c271e30d045290935e5885adc9e6b925.jpg","text":"TemporaryFile(/tmp/multipartBody6092862883540919729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287592630,"filename":"image_18032025_09_45_53_6101.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0b5e0415e645d2e4e77569cec56dc697.jpg","text":"TemporaryFile(/tmp/multipartBody4343805617268665066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287592630,"filename":"image_18032025_09_45_42_6093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/60c2211ebfe22efbd395777aae16f6a7.jpg","text":"TemporaryFile(/tmp/multipartBody1920883061580954156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287592630,"filename":"image_18032025_09_45_05_6094.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/403b4a46d0fe2295c645c6b1ee6159a2.jpg","text":"TemporaryFile(/tmp/multipartBody1068634426336697794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287592630,"filename":"image_18032025_09_45_47_5056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b789700f8fc739ed2b35c29e3eb613b.jpg","text":"TemporaryFile(/tmp/multipartBody6011717720231886208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287592630,"filename":"image_18032025_09_45_11_6092.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345070361","file1":"1345070351","file0":"1345070335","file4":"1345070369","file5":"1345070372","file3":"1345070365"},"map_files_photo_id_array":[{"photo_id":"1345070372","filename":"file5"},{"photo_id":"1345070361","filename":"file2"},{"photo_id":"1345070369","filename":"file4"},{"photo_id":"1345070351","filename":"file1"},{"photo_id":"1345070335","filename":"file0"},{"photo_id":"1345070365","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345070365":["hashtag1","hashtag2"]},{"1345070335":["hashtag1","hashtag2"]},{"1345070361":["hashtag1","hashtag2"]},{"1345070372":["hashtag1","hashtag2"]},{"1345070351":["hashtag1","hashtag2"]},{"1345070369":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345070365, 1345070335, 1345070361, 1345070372, 1345070351, 1345070369)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.754494667053223 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:46:32.225934
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_54_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_48_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_42_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_35_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_29_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_23_6095.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_54_6063.jpg', '/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_48_6070.jpg', '/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_42_6072.jpg', '/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_35_6059.jpg', '/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_29_6070.jpg', '/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_23_6095.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_54_6063.jpg
/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_48_6070.jpg
/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_42_6072.jpg
/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_35_6059.jpg
/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_29_6070.jpg
/home/nano/Desktop/images/18032025/09/46/image_18032025_09_46_23_6095.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345070551","1345070559","1345070556","1345070552","1345070546","1345070540"],"photo_ids_order":["1345070540","1345070546","1345070551","1345070552","1345070556","1345070559"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/22255fe16e03cb2c15f322667b83c28f.jpg","text":"TemporaryFile(/tmp/multipartBody7040660901230761504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287652801,"filename":"image_18032025_09_46_42_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ded3115a000396600541d2063c29317b.jpg","text":"TemporaryFile(/tmp/multipartBody7012536974337209058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287652801,"filename":"image_18032025_09_46_23_6095.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/76d61c0b76a21435d7f573dbec3c15c8.jpg","text":"TemporaryFile(/tmp/multipartBody881100678940046291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287652801,"filename":"image_18032025_09_46_29_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f45f916434bb65af133328739992adfb.jpg","text":"TemporaryFile(/tmp/multipartBody3893506011772285859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287652801,"filename":"image_18032025_09_46_35_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/270f766bebd91d5a597e3df84ca8934d.jpg","text":"TemporaryFile(/tmp/multipartBody1512126172361644112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287652801,"filename":"image_18032025_09_46_48_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2691970bf136b8d7cc95ce785ed708ad.jpg","text":"TemporaryFile(/tmp/multipartBody546576889250305710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287652801,"filename":"image_18032025_09_46_54_6063.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345070551","file1":"1345070546","file0":"1345070540","file4":"1345070556","file5":"1345070559","file3":"1345070552"},"map_files_photo_id_array":[{"photo_id":"1345070559","filename":"file5"},{"photo_id":"1345070551","filename":"file2"},{"photo_id":"1345070556","filename":"file4"},{"photo_id":"1345070546","filename":"file1"},{"photo_id":"1345070540","filename":"file0"},{"photo_id":"1345070552","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345070551":["hashtag1","hashtag2"]},{"1345070559":["hashtag1","hashtag2"]},{"1345070556":["hashtag1","hashtag2"]},{"1345070552":["hashtag1","hashtag2"]},{"1345070546":["hashtag1","hashtag2"]},{"1345070540":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345070551, 1345070559, 1345070556, 1345070552, 1345070546, 1345070540)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.191508293151855 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:47:32.370024
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_53_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_47_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_41_6068.jpg', 2), ('/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_29_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_23_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_17_6065.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_53_6072.jpg', '/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_47_6070.jpg', '/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_41_6068.jpg', '/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_29_6063.jpg', '/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_23_6070.jpg', '/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_17_6065.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_53_6072.jpg
/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_47_6070.jpg
/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_41_6068.jpg
/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_29_6063.jpg
/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_23_6070.jpg
/home/nano/Desktop/images/18032025/09/47/image_18032025_09_47_17_6065.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345070605","1345070592","1345070601","1345070597","1345070612","1345070609"],"photo_ids_order":["1345070592","1345070597","1345070601","1345070605","1345070609","1345070612"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c2c0b549fbbcb43981bb9b99302ba068.jpg","text":"TemporaryFile(/tmp/multipartBody6479815309991069074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287712989,"filename":"image_18032025_09_47_29_6063.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/951203f0e97372691d9c835a0755578d.jpg","text":"TemporaryFile(/tmp/multipartBody7382489253468834788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287712989,"filename":"image_18032025_09_47_53_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8eefdd78656b45340dc1830af95afb66.jpg","text":"TemporaryFile(/tmp/multipartBody6465483826652848766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287712989,"filename":"image_18032025_09_47_41_6068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c867cc532d8944cfee62fbc117ca263f.jpg","text":"TemporaryFile(/tmp/multipartBody2844114000737162234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287712989,"filename":"image_18032025_09_47_47_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bf1377a5cec03d6a9c5a12769fc537d6.jpg","text":"TemporaryFile(/tmp/multipartBody8644016867045515142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287712989,"filename":"image_18032025_09_47_17_6065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/05cef76673bee0e6ffa62d6bd1540524.jpg","text":"TemporaryFile(/tmp/multipartBody2630953883638589120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287712989,"filename":"image_18032025_09_47_23_6070.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345070601","file1":"1345070597","file0":"1345070592","file4":"1345070609","file5":"1345070612","file3":"1345070605"},"map_files_photo_id_array":[{"photo_id":"1345070612","filename":"file5"},{"photo_id":"1345070601","filename":"file2"},{"photo_id":"1345070609","filename":"file4"},{"photo_id":"1345070597","filename":"file1"},{"photo_id":"1345070592","filename":"file0"},{"photo_id":"1345070605","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345070605":["hashtag1","hashtag2"]},{"1345070592":["hashtag1","hashtag2"]},{"1345070601":["hashtag1","hashtag2"]},{"1345070597":["hashtag1","hashtag2"]},{"1345070612":["hashtag1","hashtag2"]},{"1345070609":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345070605, 1345070592, 1345070601, 1345070597, 1345070612, 1345070609)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.23407793045044 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:48:32.488942
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_47_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_41_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_35_5048.jpg', 2), ('/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_30_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_24_6066.jpg', 2), ('/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_18_6066.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_47_6069.jpg', '/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_41_6106.jpg', '/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_35_5048.jpg', '/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_30_6061.jpg', '/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_24_6066.jpg', '/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_18_6066.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_47_6069.jpg
/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_41_6106.jpg
/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_35_5048.jpg
/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_30_6061.jpg
/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_24_6066.jpg
/home/nano/Desktop/images/18032025/09/48/image_18032025_09_48_18_6066.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345070749","1345070766","1345070762","1345070756","1345070744","1345070752"],"photo_ids_order":["1345070744","1345070749","1345070752","1345070756","1345070762","1345070766"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b64cf99dc63ca9614d060ed66a0ad726.jpg","text":"TemporaryFile(/tmp/multipartBody9155998645296057564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287773118,"filename":"image_18032025_09_48_41_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4d96e74cc69e8c45b5959838482931b5.jpg","text":"TemporaryFile(/tmp/multipartBody14971408112352983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287773118,"filename":"image_18032025_09_48_18_6066.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5beb32c7e4c0f3029ba95134deb9dcc2.jpg","text":"TemporaryFile(/tmp/multipartBody101150250320807290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287773118,"filename":"image_18032025_09_48_24_6066.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cdee03dc5cfb1207b874705a5f39fa1a.jpg","text":"TemporaryFile(/tmp/multipartBody908032137138110056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287773118,"filename":"image_18032025_09_48_30_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad166a9a2b130e3054ccbd7e378bab33.jpg","text":"TemporaryFile(/tmp/multipartBody6489399118347148657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287773118,"filename":"image_18032025_09_48_47_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c2c3eb66ab62cf6f55a097d0eb8f4765.jpg","text":"TemporaryFile(/tmp/multipartBody4392224278216113789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287773118,"filename":"image_18032025_09_48_35_5048.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345070752","file1":"1345070749","file0":"1345070744","file4":"1345070762","file5":"1345070766","file3":"1345070756"},"map_files_photo_id_array":[{"photo_id":"1345070766","filename":"file5"},{"photo_id":"1345070752","filename":"file2"},{"photo_id":"1345070762","filename":"file4"},{"photo_id":"1345070749","filename":"file1"},{"photo_id":"1345070744","filename":"file0"},{"photo_id":"1345070756","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345070749":["hashtag1","hashtag2"]},{"1345070766":["hashtag1","hashtag2"]},{"1345070762":["hashtag1","hashtag2"]},{"1345070756":["hashtag1","hashtag2"]},{"1345070744":["hashtag1","hashtag2"]},{"1345070752":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345070749, 1345070766, 1345070762, 1345070756, 1345070744, 1345070752)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.090930461883545 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:49:32.616152
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_54_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_47_6066.jpg', 2), ('/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_41_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_35_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_29_5940.jpg', 2), ('/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_23_5873.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_54_6065.jpg', '/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_47_6066.jpg', '/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_41_6072.jpg', '/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_35_6072.jpg', '/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_29_5940.jpg', '/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_23_5873.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_54_6065.jpg
/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_47_6066.jpg
/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_41_6072.jpg
/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_35_6072.jpg
/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_29_5940.jpg
/home/nano/Desktop/images/18032025/09/49/image_18032025_09_49_23_5873.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345070917","1345070895","1345070832","1345070855","1345070921","1345070915"],"photo_ids_order":["1345070832","1345070855","1345070895","1345070915","1345070917","1345070921"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/176f5e5ea4a4fbc7ec5d760ae1bbe7a1.jpg","text":"TemporaryFile(/tmp/multipartBody1263460185708400977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287833255,"filename":"image_18032025_09_49_29_5940.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac18479f3a4326cb399b7dc0ccb8b211.jpg","text":"TemporaryFile(/tmp/multipartBody4283910987981244185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287833255,"filename":"image_18032025_09_49_41_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/935405514855fabf65536f5a07843dd1.jpg","text":"TemporaryFile(/tmp/multipartBody5519135377125158446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287833255,"filename":"image_18032025_09_49_54_6065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/59c4ca535501ba1ba6ca57049c3e9761.jpg","text":"TemporaryFile(/tmp/multipartBody8251863659873443798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287833255,"filename":"image_18032025_09_49_47_6066.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1fd72251fc39fc78d0d781787fa297fe.jpg","text":"TemporaryFile(/tmp/multipartBody7693082724841017205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287833255,"filename":"image_18032025_09_49_23_5873.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1650304f001a387d4276ca6b986f43f5.jpg","text":"TemporaryFile(/tmp/multipartBody5987121974700274949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287833255,"filename":"image_18032025_09_49_35_6072.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345070895","file1":"1345070855","file0":"1345070832","file4":"1345070917","file5":"1345070921","file3":"1345070915"},"map_files_photo_id_array":[{"photo_id":"1345070921","filename":"file5"},{"photo_id":"1345070895","filename":"file2"},{"photo_id":"1345070917","filename":"file4"},{"photo_id":"1345070855","filename":"file1"},{"photo_id":"1345070832","filename":"file0"},{"photo_id":"1345070915","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345070917":["hashtag1","hashtag2"]},{"1345070895":["hashtag1","hashtag2"]},{"1345070832":["hashtag1","hashtag2"]},{"1345070855":["hashtag1","hashtag2"]},{"1345070921":["hashtag1","hashtag2"]},{"1345070915":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345070917, 1345070895, 1345070832, 1345070855, 1345070921, 1345070915)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.00675106048584 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:50:32.728401
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_53_6001.jpg', 2), ('/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_47_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_41_5985.jpg', 2), ('/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_35_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_29_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_23_6064.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_53_6001.jpg', '/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_47_6058.jpg', '/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_41_5985.jpg', '/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_35_6045.jpg', '/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_29_6046.jpg', '/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_23_6064.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_53_6001.jpg
/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_47_6058.jpg
/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_41_5985.jpg
/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_35_6045.jpg
/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_29_6046.jpg
/home/nano/Desktop/images/18032025/09/50/image_18032025_09_50_23_6064.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345070953","1345070973","1345070961","1345070949","1345070970","1345070945"],"photo_ids_order":["1345070945","1345070949","1345070953","1345070961","1345070970","1345070973"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6bc373ab09009e739c7e2e2f416fcb10.jpg","text":"TemporaryFile(/tmp/multipartBody2271420894442671650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287893325,"filename":"image_18032025_09_50_41_5985.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cb0e90e7258be332fca222e7885ebc97.jpg","text":"TemporaryFile(/tmp/multipartBody5062806740539717192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287893325,"filename":"image_18032025_09_50_23_6064.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7ffc4f11aedc115556e6fa8953892e2.jpg","text":"TemporaryFile(/tmp/multipartBody2153923114500110900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287893325,"filename":"image_18032025_09_50_35_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8948d438f1e5b70c1dac1015d7b578c3.jpg","text":"TemporaryFile(/tmp/multipartBody7820550622518683943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287893325,"filename":"image_18032025_09_50_47_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1fee5dced7137da5a814aa5958f9dc66.jpg","text":"TemporaryFile(/tmp/multipartBody8950651958605734453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287893325,"filename":"image_18032025_09_50_29_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14034f950ef824335bc1e5461d0a407b.jpg","text":"TemporaryFile(/tmp/multipartBody1291040898197578206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287893325,"filename":"image_18032025_09_50_53_6001.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345070953","file1":"1345070949","file0":"1345070945","file4":"1345070970","file5":"1345070973","file3":"1345070961"},"map_files_photo_id_array":[{"photo_id":"1345070973","filename":"file5"},{"photo_id":"1345070953","filename":"file2"},{"photo_id":"1345070970","filename":"file4"},{"photo_id":"1345070949","filename":"file1"},{"photo_id":"1345070945","filename":"file0"},{"photo_id":"1345070961","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345070953":["hashtag1","hashtag2"]},{"1345070973":["hashtag1","hashtag2"]},{"1345070961":["hashtag1","hashtag2"]},{"1345070949":["hashtag1","hashtag2"]},{"1345070970":["hashtag1","hashtag2"]},{"1345070945":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345070953, 1345070973, 1345070961, 1345070949, 1345070970, 1345070945)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.23011660575867 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:51:31.804674
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_54_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_48_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_42_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_36_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_29_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_23_6094.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_54_6063.jpg', '/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_48_6070.jpg', '/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_42_6093.jpg', '/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_36_6063.jpg', '/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_29_6089.jpg', '/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_23_6094.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_54_6063.jpg
/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_48_6070.jpg
/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_42_6093.jpg
/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_36_6063.jpg
/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_29_6089.jpg
/home/nano/Desktop/images/18032025/09/51/image_18032025_09_51_23_6094.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345071016","1345071023","1345071026","1345071019","1345071010","1345071013"],"photo_ids_order":["1345071010","1345071013","1345071016","1345071019","1345071023","1345071026"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e076164ec5af8b7e3e73479ba92ee5c.jpg","text":"TemporaryFile(/tmp/multipartBody6631699210695887233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287952267,"filename":"image_18032025_09_51_42_6093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/55374a0c9fb79339712543cb6696eac3.jpg","text":"TemporaryFile(/tmp/multipartBody4515941285293015237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287952267,"filename":"image_18032025_09_51_29_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd9279838ad5f3dfb53672546b9d81b6.jpg","text":"TemporaryFile(/tmp/multipartBody1764577817220740234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287952267,"filename":"image_18032025_09_51_23_6094.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/50f00633a41591511f1f02b0ee0f9b1c.jpg","text":"TemporaryFile(/tmp/multipartBody2542728350190506724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287952267,"filename":"image_18032025_09_51_36_6063.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3bd24fe3b5934f5f57895d51f06ef432.jpg","text":"TemporaryFile(/tmp/multipartBody4536826286719115771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287952267,"filename":"image_18032025_09_51_54_6063.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c47d03029a7963bc5cf6013f88682af0.jpg","text":"TemporaryFile(/tmp/multipartBody6050684941725086623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742287952267,"filename":"image_18032025_09_51_48_6070.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345071016","file1":"1345071013","file0":"1345071010","file4":"1345071023","file5":"1345071026","file3":"1345071019"},"map_files_photo_id_array":[{"photo_id":"1345071026","filename":"file5"},{"photo_id":"1345071016","filename":"file2"},{"photo_id":"1345071023","filename":"file4"},{"photo_id":"1345071013","filename":"file1"},{"photo_id":"1345071010","filename":"file0"},{"photo_id":"1345071019","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345071016":["hashtag1","hashtag2"]},{"1345071023":["hashtag1","hashtag2"]},{"1345071026":["hashtag1","hashtag2"]},{"1345071019":["hashtag1","hashtag2"]},{"1345071010":["hashtag1","hashtag2"]},{"1345071013":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345071016, 1345071023, 1345071026, 1345071019, 1345071010, 1345071013)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.97080397605896 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:52:31.920552
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_53_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_47_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_29_5997.jpg', 2), ('/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_23_5848.jpg', 2), ('/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_17_6073.jpg', 2), ('/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_11_6091.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_53_6060.jpg', '/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_47_5854.jpg', '/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_29_5997.jpg', '/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_23_5848.jpg', '/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_17_6073.jpg', '/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_11_6091.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_53_6060.jpg
/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_47_5854.jpg
/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_29_5997.jpg
/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_23_5848.jpg
/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_17_6073.jpg
/home/nano/Desktop/images/18032025/09/52/image_18032025_09_52_11_6091.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345071198","1345071222","1345071216","1345071207","1345071212","1345071203"],"photo_ids_order":["1345071198","1345071203","1345071207","1345071212","1345071216","1345071222"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/13252d69767a4d1419a2197d878a75a9.jpg","text":"TemporaryFile(/tmp/multipartBody5445403791714548780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288012359,"filename":"image_18032025_09_52_53_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/101e6d7f1465ffd87d0651442d958913.jpg","text":"TemporaryFile(/tmp/multipartBody6383327619966735304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288012359,"filename":"image_18032025_09_52_11_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a299300eea1a62f5bfbb11a8118a7d82.jpg","text":"TemporaryFile(/tmp/multipartBody6850216875725831447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288012359,"filename":"image_18032025_09_52_17_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/809808c7f9fed0ccbcc8256cd76c4cc4.jpg","text":"TemporaryFile(/tmp/multipartBody2849761692578063706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288012359,"filename":"image_18032025_09_52_29_5997.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f421a1f7521b390ecd2396e58250aefd.jpg","text":"TemporaryFile(/tmp/multipartBody1834070963996503788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288012359,"filename":"image_18032025_09_52_23_5848.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/324c55589f84a7d164fe0731f25ea1da.jpg","text":"TemporaryFile(/tmp/multipartBody8362941704740586209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288012359,"filename":"image_18032025_09_52_47_5854.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345071207","file1":"1345071203","file0":"1345071198","file4":"1345071216","file5":"1345071222","file3":"1345071212"},"map_files_photo_id_array":[{"photo_id":"1345071222","filename":"file5"},{"photo_id":"1345071207","filename":"file2"},{"photo_id":"1345071216","filename":"file4"},{"photo_id":"1345071203","filename":"file1"},{"photo_id":"1345071198","filename":"file0"},{"photo_id":"1345071212","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345071198":["hashtag1","hashtag2"]},{"1345071222":["hashtag1","hashtag2"]},{"1345071216":["hashtag1","hashtag2"]},{"1345071207":["hashtag1","hashtag2"]},{"1345071212":["hashtag1","hashtag2"]},{"1345071203":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345071198, 1345071222, 1345071216, 1345071207, 1345071212, 1345071203)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.20326042175293 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:53:32.039638
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_53_6032.jpg', 2), ('/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_47_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_41_6030.jpg', 2), ('/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_35_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_29_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_23_6046.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_53_6032.jpg', '/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_47_6041.jpg', '/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_41_6030.jpg', '/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_35_6044.jpg', '/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_29_6043.jpg', '/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_23_6046.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_53_6032.jpg
/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_47_6041.jpg
/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_41_6030.jpg
/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_35_6044.jpg
/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_29_6043.jpg
/home/nano/Desktop/images/18032025/09/53/image_18032025_09_53_23_6046.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345071249","1345071257","1345071266","1345071245","1345071253","1345071262"],"photo_ids_order":["1345071245","1345071249","1345071253","1345071257","1345071262","1345071266"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4071843fb737c149cee4c35cb32e3b03.jpg","text":"TemporaryFile(/tmp/multipartBody835161578559635271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288072487,"filename":"image_18032025_09_53_47_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3603d4ec74d17f27fa92d8b562be75ca.jpg","text":"TemporaryFile(/tmp/multipartBody8217127047838193848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288072487,"filename":"image_18032025_09_53_35_6044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/73a3533d08a6450f8cc0ab56e715f319.jpg","text":"TemporaryFile(/tmp/multipartBody7188961540803678190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288072487,"filename":"image_18032025_09_53_23_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01a24f625ad652d65c20d048054799cf.jpg","text":"TemporaryFile(/tmp/multipartBody5827511202460140244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288072487,"filename":"image_18032025_09_53_53_6032.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ccd69aa893cb2a4b80a0212695cd909b.jpg","text":"TemporaryFile(/tmp/multipartBody8948799229827868779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288072487,"filename":"image_18032025_09_53_41_6030.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b771da382a938dd2296033b093bccf9f.jpg","text":"TemporaryFile(/tmp/multipartBody4645002230835805149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288072487,"filename":"image_18032025_09_53_29_6043.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345071253","file1":"1345071249","file0":"1345071245","file4":"1345071262","file5":"1345071266","file3":"1345071257"},"map_files_photo_id_array":[{"photo_id":"1345071266","filename":"file5"},{"photo_id":"1345071253","filename":"file2"},{"photo_id":"1345071262","filename":"file4"},{"photo_id":"1345071249","filename":"file1"},{"photo_id":"1345071245","filename":"file0"},{"photo_id":"1345071257","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345071249":["hashtag1","hashtag2"]},{"1345071257":["hashtag1","hashtag2"]},{"1345071266":["hashtag1","hashtag2"]},{"1345071245":["hashtag1","hashtag2"]},{"1345071253":["hashtag1","hashtag2"]},{"1345071262":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345071249, 1345071257, 1345071266, 1345071245, 1345071253, 1345071262)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.691372632980347 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:54:32.156764
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_53_6002.jpg', 2), ('/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_47_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_41_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_35_6016.jpg', 2), ('/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_29_5984.jpg', 2), ('/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_23_5891.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_53_6002.jpg', '/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_47_6047.jpg', '/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_41_6048.jpg', '/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_35_6016.jpg', '/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_29_5984.jpg', '/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_23_5891.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_53_6002.jpg
/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_47_6047.jpg
/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_41_6048.jpg
/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_35_6016.jpg
/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_29_5984.jpg
/home/nano/Desktop/images/18032025/09/54/image_18032025_09_54_23_5891.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345071303","1345071287","1345071281","1345071299","1345071290","1345071294"],"photo_ids_order":["1345071281","1345071287","1345071290","1345071294","1345071299","1345071303"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad60770563c1de5f1962344c47a75de4.jpg","text":"TemporaryFile(/tmp/multipartBody8825228581671279286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288132583,"filename":"image_18032025_09_54_23_5891.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3af11d5849ec51fbb8c38b4e704717b.jpg","text":"TemporaryFile(/tmp/multipartBody5314571111115165156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288132583,"filename":"image_18032025_09_54_47_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6cc1a117a2af27aae4f07a2c449eb2ff.jpg","text":"TemporaryFile(/tmp/multipartBody9174760590648113853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288132583,"filename":"image_18032025_09_54_53_6002.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/55bf9fbbe7821f886cf9871ff0c99f06.jpg","text":"TemporaryFile(/tmp/multipartBody4524593339563581513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288132583,"filename":"image_18032025_09_54_29_5984.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/22080a08f6174f823cc4ebec4cafbe57.jpg","text":"TemporaryFile(/tmp/multipartBody8551859485934343275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288132583,"filename":"image_18032025_09_54_41_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/59cf19f65fe8e2f7a4103004eb37dbc6.jpg","text":"TemporaryFile(/tmp/multipartBody5548017703054975908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288132583,"filename":"image_18032025_09_54_35_6016.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345071290","file1":"1345071287","file0":"1345071281","file4":"1345071299","file5":"1345071303","file3":"1345071294"},"map_files_photo_id_array":[{"photo_id":"1345071303","filename":"file5"},{"photo_id":"1345071290","filename":"file2"},{"photo_id":"1345071299","filename":"file4"},{"photo_id":"1345071287","filename":"file1"},{"photo_id":"1345071281","filename":"file0"},{"photo_id":"1345071294","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345071303":["hashtag1","hashtag2"]},{"1345071287":["hashtag1","hashtag2"]},{"1345071281":["hashtag1","hashtag2"]},{"1345071299":["hashtag1","hashtag2"]},{"1345071290":["hashtag1","hashtag2"]},{"1345071294":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345071303, 1345071287, 1345071281, 1345071299, 1345071290, 1345071294)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.99295687675476 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:55:32.283478
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_53_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_47_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_41_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_35_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_29_5068.jpg', 2), ('/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_24_6056.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_53_6047.jpg', '/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_47_6044.jpg', '/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_41_6055.jpg', '/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_35_6045.jpg', '/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_29_5068.jpg', '/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_24_6056.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_53_6047.jpg
/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_47_6044.jpg
/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_41_6055.jpg
/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_35_6045.jpg
/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_29_5068.jpg
/home/nano/Desktop/images/18032025/09/55/image_18032025_09_55_24_6056.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345071522","1345071467","1345071575","1345071656","1345071638","1345071607"],"photo_ids_order":["1345071467","1345071522","1345071575","1345071607","1345071638","1345071656"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/859cb50f1f54e3625fc8682d97dbe662.jpg","text":"TemporaryFile(/tmp/multipartBody8415239271535396524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288192712,"filename":"image_18032025_09_55_47_6044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e2a76dc3d5b3f6594e25227f11942f6d.jpg","text":"TemporaryFile(/tmp/multipartBody2477686815304017545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288192712,"filename":"image_18032025_09_55_53_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d54cb9f69b8f200d5a4380e2d8fac035.jpg","text":"TemporaryFile(/tmp/multipartBody7970846576726452305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288192712,"filename":"image_18032025_09_55_41_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf296a69bc43cb79181cc8a7d2d10dc1.jpg","text":"TemporaryFile(/tmp/multipartBody5723905096300944006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288192712,"filename":"image_18032025_09_55_24_6056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/21d4f6bd83978be2b5399d8eda038cbc.jpg","text":"TemporaryFile(/tmp/multipartBody3869273799728629324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288192712,"filename":"image_18032025_09_55_29_5068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5100caae32bbb34c1f39ebe3893064e9.jpg","text":"TemporaryFile(/tmp/multipartBody1176883208088477090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288192712,"filename":"image_18032025_09_55_35_6045.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345071575","file1":"1345071522","file0":"1345071467","file4":"1345071638","file5":"1345071656","file3":"1345071607"},"map_files_photo_id_array":[{"photo_id":"1345071656","filename":"file5"},{"photo_id":"1345071575","filename":"file2"},{"photo_id":"1345071638","filename":"file4"},{"photo_id":"1345071522","filename":"file1"},{"photo_id":"1345071467","filename":"file0"},{"photo_id":"1345071607","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345071522":["hashtag1","hashtag2"]},{"1345071467":["hashtag1","hashtag2"]},{"1345071575":["hashtag1","hashtag2"]},{"1345071656":["hashtag1","hashtag2"]},{"1345071638":["hashtag1","hashtag2"]},{"1345071607":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345071522, 1345071467, 1345071575, 1345071656, 1345071638, 1345071607)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.915167331695557 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:56:32.376728
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_54_5992.jpg', 2), ('/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_48_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_35_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_29_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_23_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_17_6047.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_54_5992.jpg', '/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_48_6099.jpg', '/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_35_6056.jpg', '/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_29_6051.jpg', '/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_23_6047.jpg', '/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_17_6047.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_54_5992.jpg
/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_48_6099.jpg
/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_35_6056.jpg
/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_29_6051.jpg
/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_23_6047.jpg
/home/nano/Desktop/images/18032025/09/56/image_18032025_09_56_17_6047.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345071858","1345071845","1345071848","1345071842","1345071862","1345071853"],"photo_ids_order":["1345071842","1345071845","1345071848","1345071853","1345071858","1345071862"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d5dc196b3dbd5da5e8be90de485cdc9.jpg","text":"TemporaryFile(/tmp/multipartBody6321240487198263676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288252801,"filename":"image_18032025_09_56_23_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/403f1f75267662e7fce0c5552e83d375.jpg","text":"TemporaryFile(/tmp/multipartBody6195087556495578145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288252801,"filename":"image_18032025_09_56_48_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0086c377178532e11ed533d9d9f450a4.jpg","text":"TemporaryFile(/tmp/multipartBody7739476021592503785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288252801,"filename":"image_18032025_09_56_35_6056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/57be5253cb6c7738c7d5155ceefb6ac2.jpg","text":"TemporaryFile(/tmp/multipartBody5389334990885201367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288252801,"filename":"image_18032025_09_56_54_5992.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3dae8467810b03be049a946d00d743ae.jpg","text":"TemporaryFile(/tmp/multipartBody4882542032932748044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288252801,"filename":"image_18032025_09_56_17_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2af2271059191dd5b139667261c222ab.jpg","text":"TemporaryFile(/tmp/multipartBody8468536863509916022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288252801,"filename":"image_18032025_09_56_29_6051.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345071848","file1":"1345071845","file0":"1345071842","file4":"1345071858","file5":"1345071862","file3":"1345071853"},"map_files_photo_id_array":[{"photo_id":"1345071862","filename":"file5"},{"photo_id":"1345071848","filename":"file2"},{"photo_id":"1345071858","filename":"file4"},{"photo_id":"1345071845","filename":"file1"},{"photo_id":"1345071842","filename":"file0"},{"photo_id":"1345071853","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345071858":["hashtag1","hashtag2"]},{"1345071845":["hashtag1","hashtag2"]},{"1345071848":["hashtag1","hashtag2"]},{"1345071842":["hashtag1","hashtag2"]},{"1345071862":["hashtag1","hashtag2"]},{"1345071853":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345071858, 1345071845, 1345071848, 1345071842, 1345071862, 1345071853)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.878742933273315 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:57:32.510234
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_53_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_47_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_41_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_35_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_29_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_23_6050.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_53_6051.jpg', '/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_47_6057.jpg', '/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_41_6080.jpg', '/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_35_6053.jpg', '/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_29_6054.jpg', '/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_23_6050.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_53_6051.jpg
/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_47_6057.jpg
/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_41_6080.jpg
/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_35_6053.jpg
/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_29_6054.jpg
/home/nano/Desktop/images/18032025/09/57/image_18032025_09_57_23_6050.jpg
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 09:59:03.255670
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_53_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_47_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_41_5042.jpg', 2), ('/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_36_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_30_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_24_6058.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_53_6053.jpg', '/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_47_6091.jpg', '/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_41_5042.jpg', '/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_36_6057.jpg', '/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_30_6090.jpg', '/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_24_6058.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_53_6053.jpg
/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_47_6091.jpg
/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_41_5042.jpg
/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_36_6057.jpg
/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_30_6090.jpg
/home/nano/Desktop/images/18032025/09/58/image_18032025_09_58_24_6058.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345072713","1345072701","1345072706","1345072718","1345072693","1345072726"],"photo_ids_order":["1345072693","1345072701","1345072706","1345072713","1345072718","1345072726"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d686417a7f2a7f1e2fa98b692fa3e61c.jpg","text":"TemporaryFile(/tmp/multipartBody8580311699799712649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288403725,"filename":"image_18032025_09_58_36_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e29d9ea9b07f3111e341bf8d90171b69.jpg","text":"TemporaryFile(/tmp/multipartBody256523065444965858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288403725,"filename":"image_18032025_09_58_47_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d4830f4f5bc1dbf75005c4f56d7e1659.jpg","text":"TemporaryFile(/tmp/multipartBody5681910715822571215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288403725,"filename":"image_18032025_09_58_41_5042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f153e219a9d053f6181b57d3109c3b62.jpg","text":"TemporaryFile(/tmp/multipartBody3262308731633847720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288403725,"filename":"image_18032025_09_58_30_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9a56a4d9770d78d1f42f5c592aaa5d39.jpg","text":"TemporaryFile(/tmp/multipartBody1013733459093645926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288403725,"filename":"image_18032025_09_58_53_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c5742f73ab8584980b0b6e3ae59ad21.jpg","text":"TemporaryFile(/tmp/multipartBody8527299484809456512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288403725,"filename":"image_18032025_09_58_24_6058.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345072706","file1":"1345072701","file0":"1345072693","file4":"1345072718","file5":"1345072726","file3":"1345072713"},"map_files_photo_id_array":[{"photo_id":"1345072726","filename":"file5"},{"photo_id":"1345072706","filename":"file2"},{"photo_id":"1345072718","filename":"file4"},{"photo_id":"1345072701","filename":"file1"},{"photo_id":"1345072693","filename":"file0"},{"photo_id":"1345072713","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345072713":["hashtag1","hashtag2"]},{"1345072701":["hashtag1","hashtag2"]},{"1345072706":["hashtag1","hashtag2"]},{"1345072718":["hashtag1","hashtag2"]},{"1345072693":["hashtag1","hashtag2"]},{"1345072726":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345072713, 1345072701, 1345072706, 1345072718, 1345072693, 1345072726)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.46778106689453 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:00:03.255881
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_54_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_47_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_41_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_35_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_29_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_23_6049.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_54_6082.jpg', '/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_47_6029.jpg', '/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_41_6055.jpg', '/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_35_6053.jpg', '/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_29_6050.jpg', '/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_23_6049.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_54_6082.jpg
/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_47_6029.jpg
/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_41_6055.jpg
/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_35_6053.jpg
/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_29_6050.jpg
/home/nano/Desktop/images/18032025/09/59/image_18032025_09_59_23_6049.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345072790","1345072772","1345072783","1345072792","1345072786","1345072779"],"photo_ids_order":["1345072772","1345072779","1345072783","1345072786","1345072790","1345072792"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f34ab6765576849f25fce05a71dd804d.jpg","text":"TemporaryFile(/tmp/multipartBody8612027363836065792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288463750,"filename":"image_18032025_09_59_29_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9f9d1bebf9224d9cd817e96df350b3c2.jpg","text":"TemporaryFile(/tmp/multipartBody3259532750203678623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288463750,"filename":"image_18032025_09_59_54_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ef4690897dbf8507107fbad0bb5fa5a.jpg","text":"TemporaryFile(/tmp/multipartBody2802795675606958814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288463750,"filename":"image_18032025_09_59_41_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/caf420b7702eb3feffaeac7bbe8014fe.jpg","text":"TemporaryFile(/tmp/multipartBody1450791925021459805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288463750,"filename":"image_18032025_09_59_23_6049.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ade0cc89b5e61233b94493b3dfd0d95.jpg","text":"TemporaryFile(/tmp/multipartBody5544297036425805447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288463750,"filename":"image_18032025_09_59_35_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5befdee54202949b326d32e0852e293e.jpg","text":"TemporaryFile(/tmp/multipartBody8266743149369370248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288463750,"filename":"image_18032025_09_59_47_6029.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345072783","file1":"1345072779","file0":"1345072772","file4":"1345072790","file5":"1345072792","file3":"1345072786"},"map_files_photo_id_array":[{"photo_id":"1345072792","filename":"file5"},{"photo_id":"1345072783","filename":"file2"},{"photo_id":"1345072790","filename":"file4"},{"photo_id":"1345072779","filename":"file1"},{"photo_id":"1345072772","filename":"file0"},{"photo_id":"1345072786","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345072790":["hashtag1","hashtag2"]},{"1345072772":["hashtag1","hashtag2"]},{"1345072783":["hashtag1","hashtag2"]},{"1345072792":["hashtag1","hashtag2"]},{"1345072786":["hashtag1","hashtag2"]},{"1345072779":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345072790, 1345072772, 1345072783, 1345072792, 1345072786, 1345072779)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.111482858657837 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:01:03.183499
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_53_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_47_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_41_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_35_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_29_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_23_6099.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_53_6056.jpg', '/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_47_6053.jpg', '/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_41_6055.jpg', '/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_35_6052.jpg', '/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_29_6052.jpg', '/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_23_6099.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_53_6056.jpg
/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_47_6053.jpg
/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_41_6055.jpg
/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_35_6052.jpg
/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_29_6052.jpg
/home/nano/Desktop/images/18032025/10/00/image_18032025_10_00_23_6099.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345072827","1345072836","1345072824","1345072841","1345072832","1345072820"],"photo_ids_order":["1345072820","1345072824","1345072827","1345072832","1345072836","1345072841"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/120a57242c9da40406fd4c2928b5093b.jpg","text":"TemporaryFile(/tmp/multipartBody1365767360380707457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288523615,"filename":"image_18032025_10_00_41_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/48440d2a69b1b9b271504eceb0b5f961.jpg","text":"TemporaryFile(/tmp/multipartBody3731871017127380873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288523615,"filename":"image_18032025_10_00_29_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db62c620c658ddcd1a66aa27ea7a4841.jpg","text":"TemporaryFile(/tmp/multipartBody3304091233510469624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288523615,"filename":"image_18032025_10_00_47_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b94b0d3c634ff3a82c693d9f3bb1bde1.jpg","text":"TemporaryFile(/tmp/multipartBody4238558499781250055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288523615,"filename":"image_18032025_10_00_23_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6fcd3aee70f84ea28f4a42f15f011c7c.jpg","text":"TemporaryFile(/tmp/multipartBody722710979308511431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288523615,"filename":"image_18032025_10_00_35_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d788c2d79b1c19f09259b77f10d5d1d5.jpg","text":"TemporaryFile(/tmp/multipartBody7269274558812635714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288523615,"filename":"image_18032025_10_00_53_6056.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345072827","file1":"1345072824","file0":"1345072820","file4":"1345072836","file5":"1345072841","file3":"1345072832"},"map_files_photo_id_array":[{"photo_id":"1345072841","filename":"file5"},{"photo_id":"1345072827","filename":"file2"},{"photo_id":"1345072836","filename":"file4"},{"photo_id":"1345072824","filename":"file1"},{"photo_id":"1345072820","filename":"file0"},{"photo_id":"1345072832","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345072827":["hashtag1","hashtag2"]},{"1345072836":["hashtag1","hashtag2"]},{"1345072824":["hashtag1","hashtag2"]},{"1345072841":["hashtag1","hashtag2"]},{"1345072832":["hashtag1","hashtag2"]},{"1345072820":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345072827, 1345072836, 1345072824, 1345072841, 1345072832, 1345072820)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.82948660850525 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:02:02.397238
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_53_5078.jpg', 2), ('/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_48_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_42_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_36_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_30_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_24_6052.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_53_5078.jpg', '/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_48_6053.jpg', '/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_42_6059.jpg', '/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_36_6088.jpg', '/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_30_6048.jpg', '/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_24_6052.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_53_5078.jpg
/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_48_6053.jpg
/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_42_6059.jpg
/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_36_6088.jpg
/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_30_6048.jpg
/home/nano/Desktop/images/18032025/10/01/image_18032025_10_01_24_6052.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345072889","1345072877","1345072885","1345072867","1345072881","1345072872"],"photo_ids_order":["1345072867","1345072872","1345072877","1345072881","1345072885","1345072889"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ae4d4509ce15a840e858ca0bc5fdff21.jpg","text":"TemporaryFile(/tmp/multipartBody7487504017066035745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288582852,"filename":"image_18032025_10_01_24_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fb0b09f29c26396a0889e83a582ddf03.jpg","text":"TemporaryFile(/tmp/multipartBody1299380539182068176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288582852,"filename":"image_18032025_10_01_42_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9bd6c80f04f1a130ba1f4715e7a652f0.jpg","text":"TemporaryFile(/tmp/multipartBody5205715896403811209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288582852,"filename":"image_18032025_10_01_30_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6dc164ce4ff65e884cdb856b6535aecf.jpg","text":"TemporaryFile(/tmp/multipartBody1240495864089874893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288582852,"filename":"image_18032025_10_01_53_5078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d32da136169792ecff2db625b6654fd7.jpg","text":"TemporaryFile(/tmp/multipartBody7540441231007737392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288582852,"filename":"image_18032025_10_01_36_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/68804ef14ee26f9de5893a96d9d0bf15.jpg","text":"TemporaryFile(/tmp/multipartBody3999169691619034606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288582852,"filename":"image_18032025_10_01_48_6053.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345072877","file1":"1345072872","file0":"1345072867","file4":"1345072885","file5":"1345072889","file3":"1345072881"},"map_files_photo_id_array":[{"photo_id":"1345072889","filename":"file5"},{"photo_id":"1345072877","filename":"file2"},{"photo_id":"1345072885","filename":"file4"},{"photo_id":"1345072872","filename":"file1"},{"photo_id":"1345072867","filename":"file0"},{"photo_id":"1345072881","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345072889":["hashtag1","hashtag2"]},{"1345072877":["hashtag1","hashtag2"]},{"1345072885":["hashtag1","hashtag2"]},{"1345072867":["hashtag1","hashtag2"]},{"1345072881":["hashtag1","hashtag2"]},{"1345072872":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345072889, 1345072877, 1345072885, 1345072867, 1345072881, 1345072872)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.787409782409668 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:03:02.478008
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_53_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_47_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_41_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_35_6035.jpg', 2), ('/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_29_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_23_6057.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_53_6080.jpg', '/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_47_6048.jpg', '/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_41_6058.jpg', '/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_35_6035.jpg', '/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_29_5898.jpg', '/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_23_6057.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_53_6080.jpg
/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_47_6048.jpg
/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_41_6058.jpg
/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_35_6035.jpg
/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_29_5898.jpg
/home/nano/Desktop/images/18032025/10/02/image_18032025_10_02_23_6057.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345072932","1345072919","1345072927","1345072921","1345072930","1345072924"],"photo_ids_order":["1345072919","1345072921","1345072924","1345072927","1345072930","1345072932"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/73d2c63540c2f6ca7639ded6889cae8a.jpg","text":"TemporaryFile(/tmp/multipartBody2105484486988394215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288642923,"filename":"image_18032025_10_02_23_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d875dde502a3c6fb2469b4c99ed0a4c7.jpg","text":"TemporaryFile(/tmp/multipartBody3053247545380862071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288642923,"filename":"image_18032025_10_02_53_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/209870d5e67b92787ac19e97c7fd3257.jpg","text":"TemporaryFile(/tmp/multipartBody5578452755710663955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288642923,"filename":"image_18032025_10_02_35_6035.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2322281dfdf02a1c24a1d0851b8799ae.jpg","text":"TemporaryFile(/tmp/multipartBody950270727422699608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288642923,"filename":"image_18032025_10_02_47_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/45921946d3668d815cacb8832ac1f1a7.jpg","text":"TemporaryFile(/tmp/multipartBody2783831846645582604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288642923,"filename":"image_18032025_10_02_29_5898.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/191ab81ca513b403e00653d0509a5cd2.jpg","text":"TemporaryFile(/tmp/multipartBody3482994866841716473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288642923,"filename":"image_18032025_10_02_41_6058.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345072924","file1":"1345072921","file0":"1345072919","file4":"1345072930","file5":"1345072932","file3":"1345072927"},"map_files_photo_id_array":[{"photo_id":"1345072932","filename":"file5"},{"photo_id":"1345072924","filename":"file2"},{"photo_id":"1345072930","filename":"file4"},{"photo_id":"1345072921","filename":"file1"},{"photo_id":"1345072919","filename":"file0"},{"photo_id":"1345072927","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345072932":["hashtag1","hashtag2"]},{"1345072919":["hashtag1","hashtag2"]},{"1345072927":["hashtag1","hashtag2"]},{"1345072921":["hashtag1","hashtag2"]},{"1345072930":["hashtag1","hashtag2"]},{"1345072924":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345072932, 1345072919, 1345072927, 1345072921, 1345072930, 1345072924)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.0166437625885 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:04:02.931929
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_53_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_47_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_35_5044.jpg', 2), ('/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_30_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_24_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_18_6043.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_53_6055.jpg', '/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_47_6058.jpg', '/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_35_5044.jpg', '/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_30_6054.jpg', '/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_24_6057.jpg', '/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_18_6043.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_53_6055.jpg
/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_47_6058.jpg
/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_35_5044.jpg
/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_30_6054.jpg
/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_24_6057.jpg
/home/nano/Desktop/images/18032025/10/03/image_18032025_10_03_18_6043.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345072970","1345072958","1345072963","1345072966","1345072969","1345072960"],"photo_ids_order":["1345072958","1345072960","1345072963","1345072966","1345072969","1345072970"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d6523889fe6d0fab56aa5901bafc340c.jpg","text":"TemporaryFile(/tmp/multipartBody32308042866929040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288703396,"filename":"image_18032025_10_03_18_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4553343f13d988ad28be816a2be3534c.jpg","text":"TemporaryFile(/tmp/multipartBody4867653587124596881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288703396,"filename":"image_18032025_10_03_53_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9b936fa3780aac78f2cdffa05c06918.jpg","text":"TemporaryFile(/tmp/multipartBody4848285628178638719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288703396,"filename":"image_18032025_10_03_35_5044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/29d68bea0e428512f428460b739ac3f1.jpg","text":"TemporaryFile(/tmp/multipartBody7180267911010237651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288703396,"filename":"image_18032025_10_03_30_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c05ef2fcdee59d07de2dd10b1a1204f.jpg","text":"TemporaryFile(/tmp/multipartBody2497621791719569773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288703396,"filename":"image_18032025_10_03_24_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9705f7b44b07cff7800e16597e936888.jpg","text":"TemporaryFile(/tmp/multipartBody8565626487248872720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288703396,"filename":"image_18032025_10_03_47_6058.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345072963","file1":"1345072960","file0":"1345072958","file4":"1345072969","file5":"1345072970","file3":"1345072966"},"map_files_photo_id_array":[{"photo_id":"1345072970","filename":"file5"},{"photo_id":"1345072963","filename":"file2"},{"photo_id":"1345072969","filename":"file4"},{"photo_id":"1345072960","filename":"file1"},{"photo_id":"1345072958","filename":"file0"},{"photo_id":"1345072966","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345072970":["hashtag1","hashtag2"]},{"1345072958":["hashtag1","hashtag2"]},{"1345072963":["hashtag1","hashtag2"]},{"1345072966":["hashtag1","hashtag2"]},{"1345072969":["hashtag1","hashtag2"]},{"1345072960":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345072970, 1345072958, 1345072963, 1345072966, 1345072969, 1345072960)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.773858070373535 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:05:02.829783
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_54_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_48_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_42_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_29_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_23_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_17_6059.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_54_6079.jpg', '/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_48_6053.jpg', '/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_42_6083.jpg', '/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_29_6054.jpg', '/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_23_6061.jpg', '/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_17_6059.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_54_6079.jpg
/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_48_6053.jpg
/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_42_6083.jpg
/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_29_6054.jpg
/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_23_6061.jpg
/home/nano/Desktop/images/18032025/10/04/image_18032025_10_04_17_6059.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073021","1345073015","1345073018","1345073009","1345073005","1345073013"],"photo_ids_order":["1345073005","1345073009","1345073013","1345073015","1345073018","1345073021"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9504d1ec282a14c3251b8ef9c7a2ce90.jpg","text":"TemporaryFile(/tmp/multipartBody4244810299878323806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288763317,"filename":"image_18032025_10_04_17_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/427b1a4aa46a7fc23a9a433e2c47edc5.jpg","text":"TemporaryFile(/tmp/multipartBody5662413705998923974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288763317,"filename":"image_18032025_10_04_29_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9a64ecd991cd185936e42cccdc5ee8f.jpg","text":"TemporaryFile(/tmp/multipartBody7259758250232009973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288763317,"filename":"image_18032025_10_04_23_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3eb87ab9813f92d01998c5f0353bef9b.jpg","text":"TemporaryFile(/tmp/multipartBody8154961272307106240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288763317,"filename":"image_18032025_10_04_48_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9f69085a9004ddef1e061c94829dade9.jpg","text":"TemporaryFile(/tmp/multipartBody2034506240040718918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288763317,"filename":"image_18032025_10_04_54_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/45a9195d868b400415e03c469640c496.jpg","text":"TemporaryFile(/tmp/multipartBody2480010652490451564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288763317,"filename":"image_18032025_10_04_42_6083.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073013","file1":"1345073009","file0":"1345073005","file4":"1345073018","file5":"1345073021","file3":"1345073015"},"map_files_photo_id_array":[{"photo_id":"1345073021","filename":"file5"},{"photo_id":"1345073013","filename":"file2"},{"photo_id":"1345073018","filename":"file4"},{"photo_id":"1345073009","filename":"file1"},{"photo_id":"1345073005","filename":"file0"},{"photo_id":"1345073015","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073021":["hashtag1","hashtag2"]},{"1345073015":["hashtag1","hashtag2"]},{"1345073018":["hashtag1","hashtag2"]},{"1345073009":["hashtag1","hashtag2"]},{"1345073005":["hashtag1","hashtag2"]},{"1345073013":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073021, 1345073015, 1345073018, 1345073009, 1345073005, 1345073013)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.02131414413452 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:06:02.895677
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_53_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_47_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_41_6038.jpg', 2), ('/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_35_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_29_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_23_6041.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_53_6077.jpg', '/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_47_6041.jpg', '/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_41_6038.jpg', '/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_35_6046.jpg', '/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_29_6036.jpg', '/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_23_6041.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_53_6077.jpg
/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_47_6041.jpg
/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_41_6038.jpg
/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_35_6046.jpg
/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_29_6036.jpg
/home/nano/Desktop/images/18032025/10/05/image_18032025_10_05_23_6041.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073063","1345073065","1345073059","1345073056","1345073070","1345073052"],"photo_ids_order":["1345073052","1345073056","1345073059","1345073063","1345073065","1345073070"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/91bbc0af9793604fafa4bfb8339e63cf.jpg","text":"TemporaryFile(/tmp/multipartBody754375073367277660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288823331,"filename":"image_18032025_10_05_35_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/96469ec1eba72df4cd783ea69faad2af.jpg","text":"TemporaryFile(/tmp/multipartBody1683709393282480537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288823331,"filename":"image_18032025_10_05_29_6036.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e0177176042e72fa74e982db4758ca3.jpg","text":"TemporaryFile(/tmp/multipartBody8668735392551640092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288823331,"filename":"image_18032025_10_05_41_6038.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0cfeed2a50869344a33aef62a94dc977.jpg","text":"TemporaryFile(/tmp/multipartBody8523107290289540500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288823331,"filename":"image_18032025_10_05_47_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/83a5d358db63680de568115c4afa0990.jpg","text":"TemporaryFile(/tmp/multipartBody5894098779067146650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288823331,"filename":"image_18032025_10_05_23_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e1d9214a2fd19966f8aeeed1130370a7.jpg","text":"TemporaryFile(/tmp/multipartBody8768890002033862488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288823331,"filename":"image_18032025_10_05_53_6077.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073059","file1":"1345073056","file0":"1345073052","file4":"1345073065","file5":"1345073070","file3":"1345073063"},"map_files_photo_id_array":[{"photo_id":"1345073070","filename":"file5"},{"photo_id":"1345073059","filename":"file2"},{"photo_id":"1345073065","filename":"file4"},{"photo_id":"1345073056","filename":"file1"},{"photo_id":"1345073052","filename":"file0"},{"photo_id":"1345073063","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073063":["hashtag1","hashtag2"]},{"1345073065":["hashtag1","hashtag2"]},{"1345073059":["hashtag1","hashtag2"]},{"1345073056":["hashtag1","hashtag2"]},{"1345073070":["hashtag1","hashtag2"]},{"1345073052":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073063, 1345073065, 1345073059, 1345073056, 1345073070, 1345073052)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.656479597091675 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:07:03.008297
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_53_5035.jpg', 2), ('/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_48_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_42_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_36_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_30_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_24_6047.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_53_5035.jpg', '/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_48_6042.jpg', '/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_42_6072.jpg', '/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_36_6043.jpg', '/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_30_6044.jpg', '/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_24_6047.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_53_5035.jpg
/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_48_6042.jpg
/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_42_6072.jpg
/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_36_6043.jpg
/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_30_6044.jpg
/home/nano/Desktop/images/18032025/10/06/image_18032025_10_06_24_6047.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073111","1345073108","1345073098","1345073101","1345073104","1345073106"],"photo_ids_order":["1345073098","1345073101","1345073104","1345073106","1345073108","1345073111"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/055feb55de31df04d6996238f8de93ea.jpg","text":"TemporaryFile(/tmp/multipartBody2387416303083511424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288883444,"filename":"image_18032025_10_06_24_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9d5805f4e58a6def20124faa7b95f2e.jpg","text":"TemporaryFile(/tmp/multipartBody4197182099740006624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288883444,"filename":"image_18032025_10_06_30_6044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/edddb224171659b50b0ba9ca9333b3b1.jpg","text":"TemporaryFile(/tmp/multipartBody4229414038810932031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288883444,"filename":"image_18032025_10_06_53_5035.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c086a6dce2296145aa164ddcfc716067.jpg","text":"TemporaryFile(/tmp/multipartBody6786670614635534806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288883444,"filename":"image_18032025_10_06_48_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e8f964b4ebca60869e185f3228774a9f.jpg","text":"TemporaryFile(/tmp/multipartBody3635633371557624517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288883444,"filename":"image_18032025_10_06_42_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fc06f19ad67a3b1bdb1ab59994e61448.jpg","text":"TemporaryFile(/tmp/multipartBody2660394726726108247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288883444,"filename":"image_18032025_10_06_36_6043.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073104","file1":"1345073101","file0":"1345073098","file4":"1345073108","file5":"1345073111","file3":"1345073106"},"map_files_photo_id_array":[{"photo_id":"1345073111","filename":"file5"},{"photo_id":"1345073104","filename":"file2"},{"photo_id":"1345073108","filename":"file4"},{"photo_id":"1345073101","filename":"file1"},{"photo_id":"1345073098","filename":"file0"},{"photo_id":"1345073106","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073111":["hashtag1","hashtag2"]},{"1345073108":["hashtag1","hashtag2"]},{"1345073098":["hashtag1","hashtag2"]},{"1345073101":["hashtag1","hashtag2"]},{"1345073104":["hashtag1","hashtag2"]},{"1345073106":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073111, 1345073108, 1345073098, 1345073101, 1345073104, 1345073106)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.37301754951477 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:08:03.137223
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_53_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_47_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_41_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_35_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_29_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_23_6046.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_53_6050.jpg', '/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_47_6043.jpg', '/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_41_6072.jpg', '/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_35_6047.jpg', '/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_29_6044.jpg', '/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_23_6046.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_53_6050.jpg
/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_47_6043.jpg
/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_41_6072.jpg
/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_35_6047.jpg
/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_29_6044.jpg
/home/nano/Desktop/images/18032025/10/07/image_18032025_10_07_23_6046.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073153","1345073147","1345073149","1345073157","1345073151","1345073145"],"photo_ids_order":["1345073145","1345073147","1345073149","1345073151","1345073153","1345073157"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd219512f11d7a0e10a521e9eccbbbcd.jpg","text":"TemporaryFile(/tmp/multipartBody6667849905477735340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288943585,"filename":"image_18032025_10_07_29_6044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3e34fa941e89015df045ee5a5f9dfd8.jpg","text":"TemporaryFile(/tmp/multipartBody8677061097782558425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288943585,"filename":"image_18032025_10_07_47_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e47561c87b9de96fdcc2a1a265984869.jpg","text":"TemporaryFile(/tmp/multipartBody6794466706085029711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288943585,"filename":"image_18032025_10_07_41_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5cb4bafb2d4d06020b4a07467ec8282.jpg","text":"TemporaryFile(/tmp/multipartBody1070550371647903471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288943585,"filename":"image_18032025_10_07_23_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1333349a5b174d066378ec674f2fa654.jpg","text":"TemporaryFile(/tmp/multipartBody7448061964571456205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288943585,"filename":"image_18032025_10_07_35_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18e6b0c27481e8d938b25029730e6aff.jpg","text":"TemporaryFile(/tmp/multipartBody8491714336007138195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742288943585,"filename":"image_18032025_10_07_53_6050.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073149","file1":"1345073147","file0":"1345073145","file4":"1345073153","file5":"1345073157","file3":"1345073151"},"map_files_photo_id_array":[{"photo_id":"1345073157","filename":"file5"},{"photo_id":"1345073149","filename":"file2"},{"photo_id":"1345073153","filename":"file4"},{"photo_id":"1345073147","filename":"file1"},{"photo_id":"1345073145","filename":"file0"},{"photo_id":"1345073151","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073153":["hashtag1","hashtag2"]},{"1345073147":["hashtag1","hashtag2"]},{"1345073149":["hashtag1","hashtag2"]},{"1345073157":["hashtag1","hashtag2"]},{"1345073151":["hashtag1","hashtag2"]},{"1345073145":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073153, 1345073147, 1345073149, 1345073157, 1345073151, 1345073145)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.270034551620483 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:09:03.573336
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_53_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_47_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_41_5048.jpg', 2), ('/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_36_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_30_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_24_6051.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_53_6056.jpg', '/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_47_6053.jpg', '/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_41_5048.jpg', '/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_36_6055.jpg', '/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_30_6051.jpg', '/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_24_6051.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_53_6056.jpg
/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_47_6053.jpg
/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_41_5048.jpg
/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_36_6055.jpg
/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_30_6051.jpg
/home/nano/Desktop/images/18032025/10/08/image_18032025_10_08_24_6051.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073189","1345073201","1345073185","1345073206","1345073193","1345073196"],"photo_ids_order":["1345073185","1345073189","1345073193","1345073196","1345073201","1345073206"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/86b69b09426d18c4f90399c7da857a5f.jpg","text":"TemporaryFile(/tmp/multipartBody110283703650627898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289004053,"filename":"image_18032025_10_08_47_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4b3542408cbfe33acd5019b980bd6fb3.jpg","text":"TemporaryFile(/tmp/multipartBody3030989295422226291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289004053,"filename":"image_18032025_10_08_30_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/73a9d7aeb237dd3f774815bff13167b1.jpg","text":"TemporaryFile(/tmp/multipartBody2653892131344780078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289004053,"filename":"image_18032025_10_08_53_6056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aa9d7a3f6ccf19d0dfb5efa29c59aa60.jpg","text":"TemporaryFile(/tmp/multipartBody3278194242713293856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289004053,"filename":"image_18032025_10_08_24_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/805ad1d6059abfef34048095e4eeef38.jpg","text":"TemporaryFile(/tmp/multipartBody258234555682699780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289004053,"filename":"image_18032025_10_08_41_5048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4352afdad5f7edc7215c524361c8bf82.jpg","text":"TemporaryFile(/tmp/multipartBody5979358584802895296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289004053,"filename":"image_18032025_10_08_36_6055.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073193","file1":"1345073189","file0":"1345073185","file4":"1345073201","file5":"1345073206","file3":"1345073196"},"map_files_photo_id_array":[{"photo_id":"1345073206","filename":"file5"},{"photo_id":"1345073193","filename":"file2"},{"photo_id":"1345073201","filename":"file4"},{"photo_id":"1345073189","filename":"file1"},{"photo_id":"1345073185","filename":"file0"},{"photo_id":"1345073196","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073189":["hashtag1","hashtag2"]},{"1345073201":["hashtag1","hashtag2"]},{"1345073185":["hashtag1","hashtag2"]},{"1345073206":["hashtag1","hashtag2"]},{"1345073193":["hashtag1","hashtag2"]},{"1345073196":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073189, 1345073201, 1345073185, 1345073206, 1345073193, 1345073196)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.090317726135254 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:10:02.373948
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_54_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_48_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_41_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_35_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_29_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_17_6083.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_54_6057.jpg', '/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_48_6082.jpg', '/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_41_6057.jpg', '/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_35_6056.jpg', '/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_29_6053.jpg', '/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_17_6083.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_54_6057.jpg
/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_48_6082.jpg
/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_41_6057.jpg
/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_35_6056.jpg
/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_29_6053.jpg
/home/nano/Desktop/images/18032025/10/09/image_18032025_10_09_17_6083.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073258","1345073261","1345073255","1345073263","1345073266","1345073253"],"photo_ids_order":["1345073253","1345073255","1345073258","1345073261","1345073263","1345073266"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/112b8fa9b1477f8e1667777f5d6ce065.jpg","text":"TemporaryFile(/tmp/multipartBody6347121008139457907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289062805,"filename":"image_18032025_10_09_41_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c6216581df7e59de56711c02e533488.jpg","text":"TemporaryFile(/tmp/multipartBody178023834576372443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289062805,"filename":"image_18032025_10_09_35_6056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/53d3149046da5e5518f6525919291099.jpg","text":"TemporaryFile(/tmp/multipartBody4155045074557992548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289062805,"filename":"image_18032025_10_09_48_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cafa8865cd4fdfaa91439785c42aa526.jpg","text":"TemporaryFile(/tmp/multipartBody699002512695112930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289062805,"filename":"image_18032025_10_09_29_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d344020b9e5fa1b643ab5a2bbca027e8.jpg","text":"TemporaryFile(/tmp/multipartBody1911902304645585754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289062805,"filename":"image_18032025_10_09_17_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0af0dec19efffc0c6e0db927b2c92fd.jpg","text":"TemporaryFile(/tmp/multipartBody8488600952378051727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289062805,"filename":"image_18032025_10_09_54_6057.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073258","file1":"1345073255","file0":"1345073253","file4":"1345073263","file5":"1345073266","file3":"1345073261"},"map_files_photo_id_array":[{"photo_id":"1345073266","filename":"file5"},{"photo_id":"1345073258","filename":"file2"},{"photo_id":"1345073263","filename":"file4"},{"photo_id":"1345073255","filename":"file1"},{"photo_id":"1345073253","filename":"file0"},{"photo_id":"1345073261","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073258":["hashtag1","hashtag2"]},{"1345073261":["hashtag1","hashtag2"]},{"1345073255":["hashtag1","hashtag2"]},{"1345073263":["hashtag1","hashtag2"]},{"1345073266":["hashtag1","hashtag2"]},{"1345073253":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073258, 1345073261, 1345073255, 1345073263, 1345073266, 1345073253)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.866645574569702 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:11:02.416738
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_53_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_47_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_41_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_35_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_29_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_23_6056.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_53_6051.jpg', '/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_47_6052.jpg', '/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_41_6054.jpg', '/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_35_6048.jpg', '/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_29_6054.jpg', '/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_23_6056.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_53_6051.jpg
/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_47_6052.jpg
/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_41_6054.jpg
/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_35_6048.jpg
/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_29_6054.jpg
/home/nano/Desktop/images/18032025/10/10/image_18032025_10_10_23_6056.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073297","1345073300","1345073306","1345073314","1345073302","1345073310"],"photo_ids_order":["1345073297","1345073300","1345073302","1345073306","1345073310","1345073314"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/279191ec0a2b7a26a1d170cb48f2b837.jpg","text":"TemporaryFile(/tmp/multipartBody1250496919369719838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289122849,"filename":"image_18032025_10_10_53_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9dbef96662529393cc791eff870d9b6b.jpg","text":"TemporaryFile(/tmp/multipartBody5823323597858413462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289122849,"filename":"image_18032025_10_10_47_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2871d43e13c93d8fe956139d7c312144.jpg","text":"TemporaryFile(/tmp/multipartBody5185938758520520191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289122849,"filename":"image_18032025_10_10_35_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce87ac21264aaae6836032b3a3c46ec7.jpg","text":"TemporaryFile(/tmp/multipartBody2795129688797479430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289122849,"filename":"image_18032025_10_10_23_6056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a9f355a6eb4b19f9f25b58b0075ad87.jpg","text":"TemporaryFile(/tmp/multipartBody148597906011285552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289122849,"filename":"image_18032025_10_10_41_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b39158dda6cbc6bc644ba349c3cf041e.jpg","text":"TemporaryFile(/tmp/multipartBody8970678667747221973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289122849,"filename":"image_18032025_10_10_29_6054.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073302","file1":"1345073300","file0":"1345073297","file4":"1345073310","file5":"1345073314","file3":"1345073306"},"map_files_photo_id_array":[{"photo_id":"1345073314","filename":"file5"},{"photo_id":"1345073302","filename":"file2"},{"photo_id":"1345073310","filename":"file4"},{"photo_id":"1345073300","filename":"file1"},{"photo_id":"1345073297","filename":"file0"},{"photo_id":"1345073306","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073297":["hashtag1","hashtag2"]},{"1345073300":["hashtag1","hashtag2"]},{"1345073306":["hashtag1","hashtag2"]},{"1345073314":["hashtag1","hashtag2"]},{"1345073302":["hashtag1","hashtag2"]},{"1345073310":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073297, 1345073300, 1345073306, 1345073314, 1345073302, 1345073310)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.332603216171265 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:12:02.679444
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_05_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_53_5076.jpg', 2), ('/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_48_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_42_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_36_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_30_6060.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_05_6086.jpg', '/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_53_5076.jpg', '/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_48_6061.jpg', '/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_42_6087.jpg', '/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_36_6087.jpg', '/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_30_6060.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_05_6086.jpg
/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_53_5076.jpg
/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_48_6061.jpg
/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_42_6087.jpg
/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_36_6087.jpg
/home/nano/Desktop/images/18032025/10/11/image_18032025_10_11_30_6060.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073352","1345073346","1345073355","1345073349","1345073358","1345073343"],"photo_ids_order":["1345073343","1345073346","1345073349","1345073352","1345073355","1345073358"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d27da08b34cd4812e613dd67d74a8faf.jpg","text":"TemporaryFile(/tmp/multipartBody6336880617082741542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289183112,"filename":"image_18032025_10_11_42_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5fe0809ee578259a2ec84c4cee9f345b.jpg","text":"TemporaryFile(/tmp/multipartBody166023984426566210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289183112,"filename":"image_18032025_10_11_53_5076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1c01996b5a38a6d3f596e221ae6e9513.jpg","text":"TemporaryFile(/tmp/multipartBody3098157340464634721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289183112,"filename":"image_18032025_10_11_36_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e8fad26767b5516667b9c7b7f643e2fa.jpg","text":"TemporaryFile(/tmp/multipartBody4274456682650436411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289183112,"filename":"image_18032025_10_11_48_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f3c0998bdaae5391bf8f74bbd72b9c39.jpg","text":"TemporaryFile(/tmp/multipartBody4785194656882820807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289183112,"filename":"image_18032025_10_11_30_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ba1770bd2e61aeb4f3bbe9b34726aca.jpg","text":"TemporaryFile(/tmp/multipartBody6777823911360872763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289183112,"filename":"image_18032025_10_12_05_6086.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073349","file1":"1345073346","file0":"1345073343","file4":"1345073355","file5":"1345073358","file3":"1345073352"},"map_files_photo_id_array":[{"photo_id":"1345073358","filename":"file5"},{"photo_id":"1345073349","filename":"file2"},{"photo_id":"1345073355","filename":"file4"},{"photo_id":"1345073346","filename":"file1"},{"photo_id":"1345073343","filename":"file0"},{"photo_id":"1345073352","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073352":["hashtag1","hashtag2"]},{"1345073346":["hashtag1","hashtag2"]},{"1345073355":["hashtag1","hashtag2"]},{"1345073349":["hashtag1","hashtag2"]},{"1345073358":["hashtag1","hashtag2"]},{"1345073343":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073352, 1345073346, 1345073355, 1345073349, 1345073358, 1345073343)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.19262719154358 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:13:02.660836
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_54_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_47_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_41_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_35_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_29_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_23_6072.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_54_6054.jpg', '/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_47_6052.jpg', '/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_41_6047.jpg', '/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_35_6040.jpg', '/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_29_6077.jpg', '/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_23_6072.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_54_6054.jpg
/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_47_6052.jpg
/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_41_6047.jpg
/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_35_6040.jpg
/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_29_6077.jpg
/home/nano/Desktop/images/18032025/10/12/image_18032025_10_12_23_6072.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073381","1345073383","1345073391","1345073385","1345073394","1345073388"],"photo_ids_order":["1345073381","1345073383","1345073385","1345073388","1345073391","1345073394"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69ac6fe1c7638896faaac73c87654c88.jpg","text":"TemporaryFile(/tmp/multipartBody3564856426914571366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289243096,"filename":"image_18032025_10_12_54_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/840c3cb574377c5a49cbb8c6c97d01aa.jpg","text":"TemporaryFile(/tmp/multipartBody6899287897068834255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289243096,"filename":"image_18032025_10_12_47_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2cb283fb4a1f2128ccf139dad8a8741c.jpg","text":"TemporaryFile(/tmp/multipartBody8059489987481043918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289243096,"filename":"image_18032025_10_12_29_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7a4a31a3f8c06515bf032e6f7c894c25.jpg","text":"TemporaryFile(/tmp/multipartBody4213753809039205557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289243096,"filename":"image_18032025_10_12_41_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f3f1f08d03dd55c4c260ca712a29dfb3.jpg","text":"TemporaryFile(/tmp/multipartBody7187245863092790484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289243096,"filename":"image_18032025_10_12_23_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c882ce4c2355e48c878a4c82538274e2.jpg","text":"TemporaryFile(/tmp/multipartBody1682174429519778008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289243096,"filename":"image_18032025_10_12_35_6040.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073385","file1":"1345073383","file0":"1345073381","file4":"1345073391","file5":"1345073394","file3":"1345073388"},"map_files_photo_id_array":[{"photo_id":"1345073394","filename":"file5"},{"photo_id":"1345073385","filename":"file2"},{"photo_id":"1345073391","filename":"file4"},{"photo_id":"1345073383","filename":"file1"},{"photo_id":"1345073381","filename":"file0"},{"photo_id":"1345073388","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073381":["hashtag1","hashtag2"]},{"1345073383":["hashtag1","hashtag2"]},{"1345073391":["hashtag1","hashtag2"]},{"1345073385":["hashtag1","hashtag2"]},{"1345073394":["hashtag1","hashtag2"]},{"1345073388":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073381, 1345073383, 1345073391, 1345073385, 1345073394, 1345073388)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.865479707717896 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:14:03.127259
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_53_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_47_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_41_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_35_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_29_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_23_6063.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_53_6061.jpg', '/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_47_6057.jpg', '/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_41_6060.jpg', '/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_35_6058.jpg', '/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_29_6052.jpg', '/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_23_6063.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_53_6061.jpg
/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_47_6057.jpg
/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_41_6060.jpg
/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_35_6058.jpg
/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_29_6052.jpg
/home/nano/Desktop/images/18032025/10/13/image_18032025_10_13_23_6063.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073429","1345073440","1345073422","1345073425","1345073419","1345073433"],"photo_ids_order":["1345073419","1345073422","1345073425","1345073429","1345073433","1345073440"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28484156007531787f02604a609c7364.jpg","text":"TemporaryFile(/tmp/multipartBody498839552117719826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289303579,"filename":"image_18032025_10_13_35_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7019311d57ae40e0f4debaea7a26815f.jpg","text":"TemporaryFile(/tmp/multipartBody87589466710988263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289303579,"filename":"image_18032025_10_13_23_6063.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4fd7e21c519f3edae233b866cf44a5a.jpg","text":"TemporaryFile(/tmp/multipartBody5984927056817360799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289303579,"filename":"image_18032025_10_13_47_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/06da124fd6ec88362166289c48fcffac.jpg","text":"TemporaryFile(/tmp/multipartBody8827813321391232002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289303579,"filename":"image_18032025_10_13_41_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ef24efb7766d3d43b433fb79547d8c5.jpg","text":"TemporaryFile(/tmp/multipartBody5671492802253695799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289303579,"filename":"image_18032025_10_13_53_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/07b75bc76db56ae2787bdf7856c7352c.jpg","text":"TemporaryFile(/tmp/multipartBody7709863225645879615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289303579,"filename":"image_18032025_10_13_29_6052.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073425","file1":"1345073422","file0":"1345073419","file4":"1345073433","file5":"1345073440","file3":"1345073429"},"map_files_photo_id_array":[{"photo_id":"1345073440","filename":"file5"},{"photo_id":"1345073425","filename":"file2"},{"photo_id":"1345073433","filename":"file4"},{"photo_id":"1345073422","filename":"file1"},{"photo_id":"1345073419","filename":"file0"},{"photo_id":"1345073429","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073429":["hashtag1","hashtag2"]},{"1345073440":["hashtag1","hashtag2"]},{"1345073422":["hashtag1","hashtag2"]},{"1345073425":["hashtag1","hashtag2"]},{"1345073419":["hashtag1","hashtag2"]},{"1345073433":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073429, 1345073440, 1345073422, 1345073425, 1345073419, 1345073433)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.807387590408325 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:15:02.973380
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_53_5049.jpg', 2), ('/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_48_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_42_6085.jpg', 2), ('/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_36_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_30_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_24_6059.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_53_5049.jpg', '/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_48_6057.jpg', '/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_42_6085.jpg', '/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_36_6057.jpg', '/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_30_6054.jpg', '/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_24_6059.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_53_5049.jpg
/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_48_6057.jpg
/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_42_6085.jpg
/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_36_6057.jpg
/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_30_6054.jpg
/home/nano/Desktop/images/18032025/10/14/image_18032025_10_14_24_6059.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073480","1345073474","1345073468","1345073477","1345073471","1345073486"],"photo_ids_order":["1345073468","1345073471","1345073474","1345073477","1345073480","1345073486"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db1823e18eb23bdb673581396fa6855a.jpg","text":"TemporaryFile(/tmp/multipartBody2650176392981532423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289363394,"filename":"image_18032025_10_14_30_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6a2cd574aa18f6d0f348a26367e4512.jpg","text":"TemporaryFile(/tmp/multipartBody6988637494568567361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289363394,"filename":"image_18032025_10_14_42_6085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f63b427e487ecd85217ea5c2f110ef3.jpg","text":"TemporaryFile(/tmp/multipartBody7184056772429084860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289363394,"filename":"image_18032025_10_14_53_5049.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f385b691defbdf4c6d44ba2224fa2ab1.jpg","text":"TemporaryFile(/tmp/multipartBody8415708962739451800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289363394,"filename":"image_18032025_10_14_36_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e954f9e7dfd68108353d06a8e2136ba5.jpg","text":"TemporaryFile(/tmp/multipartBody6921219295476943320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289363394,"filename":"image_18032025_10_14_48_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/558617519583d420477b7b5a82c1f04f.jpg","text":"TemporaryFile(/tmp/multipartBody3423053300304728949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289363394,"filename":"image_18032025_10_14_24_6059.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073474","file1":"1345073471","file0":"1345073468","file4":"1345073480","file5":"1345073486","file3":"1345073477"},"map_files_photo_id_array":[{"photo_id":"1345073486","filename":"file5"},{"photo_id":"1345073474","filename":"file2"},{"photo_id":"1345073480","filename":"file4"},{"photo_id":"1345073471","filename":"file1"},{"photo_id":"1345073468","filename":"file0"},{"photo_id":"1345073477","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073480":["hashtag1","hashtag2"]},{"1345073474":["hashtag1","hashtag2"]},{"1345073468":["hashtag1","hashtag2"]},{"1345073477":["hashtag1","hashtag2"]},{"1345073471":["hashtag1","hashtag2"]},{"1345073486":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073480, 1345073474, 1345073468, 1345073477, 1345073471, 1345073486)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.97228240966797 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:16:02.933914
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_53_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_47_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_41_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_35_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_29_6062.jpg', 2), ('/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_23_6061.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_53_5898.jpg', '/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_47_6051.jpg', '/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_41_6059.jpg', '/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_35_6067.jpg', '/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_29_6062.jpg', '/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_23_6061.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_53_5898.jpg
/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_47_6051.jpg
/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_41_6059.jpg
/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_35_6067.jpg
/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_29_6062.jpg
/home/nano/Desktop/images/18032025/10/15/image_18032025_10_15_23_6061.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073525","1345073519","1345073522","1345073515","1345073512","1345073529"],"photo_ids_order":["1345073512","1345073515","1345073519","1345073522","1345073525","1345073529"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac4e39a413d11af9f8d2359c79dcf47a.jpg","text":"TemporaryFile(/tmp/multipartBody7371828176025442475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289423352,"filename":"image_18032025_10_15_29_6062.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0737d016f8148f67142bab333b3ed24c.jpg","text":"TemporaryFile(/tmp/multipartBody328996230855617799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289423352,"filename":"image_18032025_10_15_41_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fa3337613ccb8cb77d5f7cabd9ce19ad.jpg","text":"TemporaryFile(/tmp/multipartBody3707624420698444317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289423352,"filename":"image_18032025_10_15_35_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f5789f15f8e2e5be864a67342e2375c.jpg","text":"TemporaryFile(/tmp/multipartBody6469143041417107156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289423352,"filename":"image_18032025_10_15_47_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/71d7537070b6c0429caba99d7f8466aa.jpg","text":"TemporaryFile(/tmp/multipartBody6542003880845646959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289423352,"filename":"image_18032025_10_15_53_5898.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6ab0de130646cf910c1e58005de3ef2.jpg","text":"TemporaryFile(/tmp/multipartBody941358179818996426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289423352,"filename":"image_18032025_10_15_23_6061.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073519","file1":"1345073515","file0":"1345073512","file4":"1345073525","file5":"1345073529","file3":"1345073522"},"map_files_photo_id_array":[{"photo_id":"1345073529","filename":"file5"},{"photo_id":"1345073519","filename":"file2"},{"photo_id":"1345073525","filename":"file4"},{"photo_id":"1345073515","filename":"file1"},{"photo_id":"1345073512","filename":"file0"},{"photo_id":"1345073522","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073525":["hashtag1","hashtag2"]},{"1345073519":["hashtag1","hashtag2"]},{"1345073522":["hashtag1","hashtag2"]},{"1345073515":["hashtag1","hashtag2"]},{"1345073512":["hashtag1","hashtag2"]},{"1345073529":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073525, 1345073519, 1345073522, 1345073515, 1345073512, 1345073529)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.754614114761353 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:17:03.171460
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_53_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_47_5085.jpg', 2), ('/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_42_6062.jpg', 2), ('/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_36_6062.jpg', 2), ('/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_30_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_24_6089.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_53_6089.jpg', '/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_47_5085.jpg', '/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_42_6062.jpg', '/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_36_6062.jpg', '/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_30_6060.jpg', '/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_24_6089.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_53_6089.jpg
/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_47_5085.jpg
/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_42_6062.jpg
/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_36_6062.jpg
/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_30_6060.jpg
/home/nano/Desktop/images/18032025/10/16/image_18032025_10_16_24_6089.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073567","1345073561","1345073564","1345073558","1345073578","1345073571"],"photo_ids_order":["1345073558","1345073561","1345073564","1345073567","1345073571","1345073578"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c3752ce7425fade92f1382767b0e878.jpg","text":"TemporaryFile(/tmp/multipartBody9175176594040013865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289483601,"filename":"image_18032025_10_16_36_6062.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/54283e15a248ebf8763d8482360e67e9.jpg","text":"TemporaryFile(/tmp/multipartBody4457822321289243432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289483601,"filename":"image_18032025_10_16_47_5085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a467cdfb399e743781acd600cc450d48.jpg","text":"TemporaryFile(/tmp/multipartBody4622179740830553959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289483601,"filename":"image_18032025_10_16_42_6062.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a8f39bfedd04c6bc97ebc028db3bfb1.jpg","text":"TemporaryFile(/tmp/multipartBody5504199886102947076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289483601,"filename":"image_18032025_10_16_53_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f0448ffef4857688d4905c12f09b56f6.jpg","text":"TemporaryFile(/tmp/multipartBody774167254023122078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289483601,"filename":"image_18032025_10_16_24_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/59de9e2c4a30d46773d270d877d9ae53.jpg","text":"TemporaryFile(/tmp/multipartBody4429096602539871812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289483601,"filename":"image_18032025_10_16_30_6060.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073564","file1":"1345073561","file0":"1345073558","file4":"1345073571","file5":"1345073578","file3":"1345073567"},"map_files_photo_id_array":[{"photo_id":"1345073578","filename":"file5"},{"photo_id":"1345073564","filename":"file2"},{"photo_id":"1345073571","filename":"file4"},{"photo_id":"1345073561","filename":"file1"},{"photo_id":"1345073558","filename":"file0"},{"photo_id":"1345073567","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073567":["hashtag1","hashtag2"]},{"1345073561":["hashtag1","hashtag2"]},{"1345073564":["hashtag1","hashtag2"]},{"1345073558":["hashtag1","hashtag2"]},{"1345073578":["hashtag1","hashtag2"]},{"1345073571":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073567, 1345073561, 1345073564, 1345073558, 1345073578, 1345073571)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.80360507965088 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:18:03.409733
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_06_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_54_5971.jpg', 2), ('/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_48_6016.jpg', 2), ('/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_42_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_35_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_29_6065.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_06_6098.jpg', '/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_54_5971.jpg', '/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_48_6016.jpg', '/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_42_6056.jpg', '/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_35_6069.jpg', '/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_29_6065.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_06_6098.jpg
/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_54_5971.jpg
/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_48_6016.jpg
/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_42_6056.jpg
/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_35_6069.jpg
/home/nano/Desktop/images/18032025/10/17/image_18032025_10_17_29_6065.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073610","1345073612","1345073620","1345073614","1345073617","1345073626"],"photo_ids_order":["1345073610","1345073612","1345073614","1345073617","1345073620","1345073626"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f88dca1e20c6168ede8070179afcc59e.jpg","text":"TemporaryFile(/tmp/multipartBody8228474587533170715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289543809,"filename":"image_18032025_10_18_06_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/237a51b471fece023d787bf9c230bdf7.jpg","text":"TemporaryFile(/tmp/multipartBody6548891015295549779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289543809,"filename":"image_18032025_10_17_54_5971.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dcfd76608bddff5082ca3a3fa032f459.jpg","text":"TemporaryFile(/tmp/multipartBody6332256125788210005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289543809,"filename":"image_18032025_10_17_35_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/24c30a8eb6b7bf36a316ca56f0f4ee54.jpg","text":"TemporaryFile(/tmp/multipartBody6424440819783990868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289543809,"filename":"image_18032025_10_17_48_6016.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1f4f2adfde613314f50979ecce47772c.jpg","text":"TemporaryFile(/tmp/multipartBody8371990792922640551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289543809,"filename":"image_18032025_10_17_42_6056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3232a58cfd0ce3f3358bfde7d34d84a.jpg","text":"TemporaryFile(/tmp/multipartBody6086535765499945064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289543809,"filename":"image_18032025_10_17_29_6065.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073614","file1":"1345073612","file0":"1345073610","file4":"1345073620","file5":"1345073626","file3":"1345073617"},"map_files_photo_id_array":[{"photo_id":"1345073626","filename":"file5"},{"photo_id":"1345073614","filename":"file2"},{"photo_id":"1345073620","filename":"file4"},{"photo_id":"1345073612","filename":"file1"},{"photo_id":"1345073610","filename":"file0"},{"photo_id":"1345073617","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073610":["hashtag1","hashtag2"]},{"1345073612":["hashtag1","hashtag2"]},{"1345073620":["hashtag1","hashtag2"]},{"1345073614":["hashtag1","hashtag2"]},{"1345073617":["hashtag1","hashtag2"]},{"1345073626":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073610, 1345073612, 1345073620, 1345073614, 1345073617, 1345073626)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.623865604400635 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:19:02.486031
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_53_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_47_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_41_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_35_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_29_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_23_6076.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_53_6086.jpg', '/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_47_6076.jpg', '/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_41_6074.jpg', '/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_35_6077.jpg', '/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_29_6072.jpg', '/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_23_6076.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_53_6086.jpg
/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_47_6076.jpg
/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_41_6074.jpg
/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_35_6077.jpg
/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_29_6072.jpg
/home/nano/Desktop/images/18032025/10/18/image_18032025_10_18_23_6076.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073674","1345073691","1345073664","1345073718","1345073706","1345073684"],"photo_ids_order":["1345073664","1345073674","1345073684","1345073691","1345073706","1345073718"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3210de7d46f11fdee5ab302ecc454666.jpg","text":"TemporaryFile(/tmp/multipartBody3470130410215009493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289602971,"filename":"image_18032025_10_18_47_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4edf17ed30aa8dc84e4b5918b9a8fd6b.jpg","text":"TemporaryFile(/tmp/multipartBody8183038170478130471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289602971,"filename":"image_18032025_10_18_35_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd75fc2dc67878c738987d66a5dc1cae.jpg","text":"TemporaryFile(/tmp/multipartBody4996555117973084743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289602971,"filename":"image_18032025_10_18_53_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/397afdb36d25e1dd9bf90cffaa795891.jpg","text":"TemporaryFile(/tmp/multipartBody8309690978997826840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289602971,"filename":"image_18032025_10_18_23_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/529c37e7062c0941a8c04eb5989eb30e.jpg","text":"TemporaryFile(/tmp/multipartBody8513440319042052440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289602971,"filename":"image_18032025_10_18_29_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ecca62d4ef7a653f4c62e52580a88347.jpg","text":"TemporaryFile(/tmp/multipartBody6227376753305871875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289602971,"filename":"image_18032025_10_18_41_6074.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073684","file1":"1345073674","file0":"1345073664","file4":"1345073706","file5":"1345073718","file3":"1345073691"},"map_files_photo_id_array":[{"photo_id":"1345073718","filename":"file5"},{"photo_id":"1345073684","filename":"file2"},{"photo_id":"1345073706","filename":"file4"},{"photo_id":"1345073674","filename":"file1"},{"photo_id":"1345073664","filename":"file0"},{"photo_id":"1345073691","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073674":["hashtag1","hashtag2"]},{"1345073691":["hashtag1","hashtag2"]},{"1345073664":["hashtag1","hashtag2"]},{"1345073718":["hashtag1","hashtag2"]},{"1345073706":["hashtag1","hashtag2"]},{"1345073684":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073674, 1345073691, 1345073664, 1345073718, 1345073706, 1345073684)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.449668884277344 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:20:02.442713
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_54_6066.jpg', 2), ('/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_47_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_42_5941.jpg', 2), ('/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_36_6038.jpg', 2), ('/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_30_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_24_6054.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_54_6066.jpg', '/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_47_5737.jpg', '/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_42_5941.jpg', '/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_36_6038.jpg', '/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_30_6057.jpg', '/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_24_6054.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_54_6066.jpg
/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_47_5737.jpg
/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_42_5941.jpg
/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_36_6038.jpg
/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_30_6057.jpg
/home/nano/Desktop/images/18032025/10/19/image_18032025_10_19_24_6054.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.35476231575012207 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:20:31.892118
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_53_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_47_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_41_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_35_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_29_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_17_5044.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_53_6044.jpg', '/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_47_6051.jpg', '/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_41_6047.jpg', '/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_35_6043.jpg', '/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_29_6045.jpg', '/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_17_5044.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_53_6044.jpg
/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_47_6051.jpg
/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_41_6047.jpg
/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_35_6043.jpg
/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_29_6045.jpg
/home/nano/Desktop/images/18032025/10/20/image_18032025_10_20_17_5044.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073843","1345073831","1345073856","1345073841","1345073835","1345073838"],"photo_ids_order":["1345073831","1345073835","1345073838","1345073841","1345073843","1345073856"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ceb24100eeb2718d9c42cfde96eda88b.jpg","text":"TemporaryFile(/tmp/multipartBody142401729980911492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289692299,"filename":"image_18032025_10_20_29_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cc5d214faa1025f50a3e596713114902.jpg","text":"TemporaryFile(/tmp/multipartBody6483576920508773273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289692299,"filename":"image_18032025_10_20_53_6044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3a1bbd243cffb68e18d084629123ad67.jpg","text":"TemporaryFile(/tmp/multipartBody8495658257343926770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289692299,"filename":"image_18032025_10_20_17_5044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f56be9a12df2d804167260cbaf8e144c.jpg","text":"TemporaryFile(/tmp/multipartBody8176589159201176227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289692299,"filename":"image_18032025_10_20_35_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e1d217e05d4d84db0bea3dfa61637be2.jpg","text":"TemporaryFile(/tmp/multipartBody1695827044757895850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289692299,"filename":"image_18032025_10_20_47_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43b2d0156f0e39af39175a6423b37f2c.jpg","text":"TemporaryFile(/tmp/multipartBody2442772265310022858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289692299,"filename":"image_18032025_10_20_41_6047.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073838","file1":"1345073835","file0":"1345073831","file4":"1345073843","file5":"1345073856","file3":"1345073841"},"map_files_photo_id_array":[{"photo_id":"1345073856","filename":"file5"},{"photo_id":"1345073838","filename":"file2"},{"photo_id":"1345073843","filename":"file4"},{"photo_id":"1345073835","filename":"file1"},{"photo_id":"1345073831","filename":"file0"},{"photo_id":"1345073841","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073843":["hashtag1","hashtag2"]},{"1345073831":["hashtag1","hashtag2"]},{"1345073856":["hashtag1","hashtag2"]},{"1345073841":["hashtag1","hashtag2"]},{"1345073835":["hashtag1","hashtag2"]},{"1345073838":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073843, 1345073831, 1345073856, 1345073841, 1345073835, 1345073838)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.948724269866943 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:21:31.996737
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_54_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_48_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_36_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_30_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_23_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_17_6050.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_54_6052.jpg', '/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_48_6046.jpg', '/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_36_6052.jpg', '/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_30_6055.jpg', '/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_23_6056.jpg', '/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_17_6050.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_54_6052.jpg
/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_48_6046.jpg
/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_36_6052.jpg
/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_30_6055.jpg
/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_23_6056.jpg
/home/nano/Desktop/images/18032025/10/21/image_18032025_10_21_17_6050.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073956","1345073959","1345073950","1345073953","1345073947","1345073961"],"photo_ids_order":["1345073947","1345073950","1345073953","1345073956","1345073959","1345073961"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f311f4d70b451ca75880cc6af25683c9.jpg","text":"TemporaryFile(/tmp/multipartBody5569309561336753111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289752395,"filename":"image_18032025_10_21_30_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8a65c4760047ff2d5343745aea92410e.jpg","text":"TemporaryFile(/tmp/multipartBody6670335901374964763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289752395,"filename":"image_18032025_10_21_23_6056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2dd9e02edcfe03373ac2d214b249aee2.jpg","text":"TemporaryFile(/tmp/multipartBody2639014866354622027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289752395,"filename":"image_18032025_10_21_48_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a27fcc1d1a476eb542e3c91a65445cdc.jpg","text":"TemporaryFile(/tmp/multipartBody60955746718160167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289752395,"filename":"image_18032025_10_21_36_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c495882efe6b9861e49c770f45027d73.jpg","text":"TemporaryFile(/tmp/multipartBody4016697481541200258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289752395,"filename":"image_18032025_10_21_54_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/819934fe727dd2263d8f207bac6fbb46.jpg","text":"TemporaryFile(/tmp/multipartBody6207352334713586370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289752395,"filename":"image_18032025_10_21_17_6050.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073953","file1":"1345073950","file0":"1345073947","file4":"1345073959","file5":"1345073961","file3":"1345073956"},"map_files_photo_id_array":[{"photo_id":"1345073961","filename":"file5"},{"photo_id":"1345073953","filename":"file2"},{"photo_id":"1345073959","filename":"file4"},{"photo_id":"1345073950","filename":"file1"},{"photo_id":"1345073947","filename":"file0"},{"photo_id":"1345073956","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073956":["hashtag1","hashtag2"]},{"1345073959":["hashtag1","hashtag2"]},{"1345073950":["hashtag1","hashtag2"]},{"1345073953":["hashtag1","hashtag2"]},{"1345073947":["hashtag1","hashtag2"]},{"1345073961":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073956, 1345073959, 1345073950, 1345073953, 1345073947, 1345073961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.92115616798401 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:22:32.174384
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_53_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_47_6049.jpg', 2), ('/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_41_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_35_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_29_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_23_6043.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_53_6047.jpg', '/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_47_6049.jpg', '/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_41_6052.jpg', '/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_35_6052.jpg', '/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_29_6054.jpg', '/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_23_6043.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_53_6047.jpg
/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_47_6049.jpg
/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_41_6052.jpg
/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_35_6052.jpg
/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_29_6054.jpg
/home/nano/Desktop/images/18032025/10/22/image_18032025_10_22_23_6043.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345073999","1345073990","1345073985","1345073994","1345074003","1345074006"],"photo_ids_order":["1345073985","1345073990","1345073994","1345073999","1345074003","1345074006"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/33423c1eb0ede43f983edff274d2b533.jpg","text":"TemporaryFile(/tmp/multipartBody3794612592367455204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289812591,"filename":"image_18032025_10_22_35_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b5cee9c900b76577268e5c73e08bab8d.jpg","text":"TemporaryFile(/tmp/multipartBody1334734759071196626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289812591,"filename":"image_18032025_10_22_47_6049.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/da6e21f9f20ea4c2e497fa9a8d25e077.jpg","text":"TemporaryFile(/tmp/multipartBody6912838672295702305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289812591,"filename":"image_18032025_10_22_53_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6cac21e0ea06d02fcc335d987a16011e.jpg","text":"TemporaryFile(/tmp/multipartBody1562685934069107185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289812591,"filename":"image_18032025_10_22_41_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/54df0b19d63ca0d52718251b30e0e920.jpg","text":"TemporaryFile(/tmp/multipartBody4751030749487168930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289812591,"filename":"image_18032025_10_22_29_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7853e40d8f0d253fb6496bd1080368ad.jpg","text":"TemporaryFile(/tmp/multipartBody8938654371745620009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289812591,"filename":"image_18032025_10_22_23_6043.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345073994","file1":"1345073990","file0":"1345073985","file4":"1345074003","file5":"1345074006","file3":"1345073999"},"map_files_photo_id_array":[{"photo_id":"1345074006","filename":"file5"},{"photo_id":"1345073994","filename":"file2"},{"photo_id":"1345074003","filename":"file4"},{"photo_id":"1345073990","filename":"file1"},{"photo_id":"1345073985","filename":"file0"},{"photo_id":"1345073999","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345073999":["hashtag1","hashtag2"]},{"1345073990":["hashtag1","hashtag2"]},{"1345073985":["hashtag1","hashtag2"]},{"1345073994":["hashtag1","hashtag2"]},{"1345074003":["hashtag1","hashtag2"]},{"1345074006":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345073999, 1345073990, 1345073985, 1345073994, 1345074003, 1345074006)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.67106509208679 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:23:32.262379
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_53_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_47_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_41_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_29_5037.jpg', 2), ('/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_24_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_18_6051.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_53_6055.jpg', '/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_47_6051.jpg', '/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_41_6048.jpg', '/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_29_5037.jpg', '/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_24_6052.jpg', '/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_18_6051.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_53_6055.jpg
/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_47_6051.jpg
/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_41_6048.jpg
/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_29_5037.jpg
/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_24_6052.jpg
/home/nano/Desktop/images/18032025/10/23/image_18032025_10_23_18_6051.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345074029","1345074038","1345074033","1345074045","1345074024","1345074044"],"photo_ids_order":["1345074024","1345074029","1345074033","1345074038","1345074044","1345074045"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/06c15389e37053d071eed923bae5a6d0.jpg","text":"TemporaryFile(/tmp/multipartBody6062724033587910606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289872654,"filename":"image_18032025_10_23_47_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aae5dcdb48fb95de9176c709c54d1371.jpg","text":"TemporaryFile(/tmp/multipartBody176775112959012578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289872654,"filename":"image_18032025_10_23_29_5037.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9be9c96fe9ecdaec51b44f98ce69d7e7.jpg","text":"TemporaryFile(/tmp/multipartBody829641971717111442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289872654,"filename":"image_18032025_10_23_41_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bad8af23dc945c07bebe440037695d24.jpg","text":"TemporaryFile(/tmp/multipartBody6937756709378316929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289872654,"filename":"image_18032025_10_23_18_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9d95347abdf29e24ecd004952e37eee.jpg","text":"TemporaryFile(/tmp/multipartBody563694999156231321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289872654,"filename":"image_18032025_10_23_53_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f6059a2fd804b86282b3400f66ac466f.jpg","text":"TemporaryFile(/tmp/multipartBody8433710961373925821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289872654,"filename":"image_18032025_10_23_24_6052.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345074033","file1":"1345074029","file0":"1345074024","file4":"1345074044","file5":"1345074045","file3":"1345074038"},"map_files_photo_id_array":[{"photo_id":"1345074045","filename":"file5"},{"photo_id":"1345074033","filename":"file2"},{"photo_id":"1345074044","filename":"file4"},{"photo_id":"1345074029","filename":"file1"},{"photo_id":"1345074024","filename":"file0"},{"photo_id":"1345074038","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345074029":["hashtag1","hashtag2"]},{"1345074038":["hashtag1","hashtag2"]},{"1345074033":["hashtag1","hashtag2"]},{"1345074045":["hashtag1","hashtag2"]},{"1345074024":["hashtag1","hashtag2"]},{"1345074044":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345074029, 1345074038, 1345074033, 1345074045, 1345074024, 1345074044)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.985604286193848 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:24:32.378505
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_54_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_48_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_42_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_36_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_29_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_23_6048.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_54_6081.jpg', '/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_48_6057.jpg', '/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_42_6057.jpg', '/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_36_6067.jpg', '/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_29_6088.jpg', '/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_23_6048.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_54_6081.jpg
/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_48_6057.jpg
/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_42_6057.jpg
/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_36_6067.jpg
/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_29_6088.jpg
/home/nano/Desktop/images/18032025/10/24/image_18032025_10_24_23_6048.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345074130","1345074096","1345074183","1345074100","1345074159","1345074092"],"photo_ids_order":["1345074092","1345074096","1345074100","1345074130","1345074159","1345074183"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0444c6488b282a854aab9cad15864bcc.jpg","text":"TemporaryFile(/tmp/multipartBody9081886648976784999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289933065,"filename":"image_18032025_10_24_36_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd191852b2c54612f1bd3428ce2e888d.jpg","text":"TemporaryFile(/tmp/multipartBody4009113064865561508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289933065,"filename":"image_18032025_10_24_48_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c7accec684c69aacdde8f4b3be541b07.jpg","text":"TemporaryFile(/tmp/multipartBody448478705460630167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289933065,"filename":"image_18032025_10_24_23_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9d07046088ea211f153352d82cc0ac54.jpg","text":"TemporaryFile(/tmp/multipartBody2344636617495202292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289933065,"filename":"image_18032025_10_24_42_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/68f1d1f108504e8674296f5e940da238.jpg","text":"TemporaryFile(/tmp/multipartBody7657683765372270957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289933065,"filename":"image_18032025_10_24_29_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aafde957af24587e51aa23ca40ee78d9.jpg","text":"TemporaryFile(/tmp/multipartBody1188360340887381218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289933065,"filename":"image_18032025_10_24_54_6081.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345074100","file1":"1345074096","file0":"1345074092","file4":"1345074159","file5":"1345074183","file3":"1345074130"},"map_files_photo_id_array":[{"photo_id":"1345074183","filename":"file5"},{"photo_id":"1345074100","filename":"file2"},{"photo_id":"1345074159","filename":"file4"},{"photo_id":"1345074096","filename":"file1"},{"photo_id":"1345074092","filename":"file0"},{"photo_id":"1345074130","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345074130":["hashtag1","hashtag2"]},{"1345074096":["hashtag1","hashtag2"]},{"1345074183":["hashtag1","hashtag2"]},{"1345074100":["hashtag1","hashtag2"]},{"1345074159":["hashtag1","hashtag2"]},{"1345074092":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345074130, 1345074096, 1345074183, 1345074100, 1345074159, 1345074092)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.30877065658569 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:25:32.488663
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_53_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_47_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_41_6064.jpg', 2), ('/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_35_6073.jpg', 2), ('/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_29_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_23_6053.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_53_6056.jpg', '/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_47_6052.jpg', '/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_41_6064.jpg', '/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_35_6073.jpg', '/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_29_6056.jpg', '/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_23_6053.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_53_6056.jpg
/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_47_6052.jpg
/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_41_6064.jpg
/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_35_6073.jpg
/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_29_6056.jpg
/home/nano/Desktop/images/18032025/10/25/image_18032025_10_25_23_6053.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345074311","1345074305","1345074274","1345074315","1345074293","1345074269"],"photo_ids_order":["1345074269","1345074274","1345074293","1345074305","1345074311","1345074315"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c3e26fcea3fac87ff59c40b32cd77e0.jpg","text":"TemporaryFile(/tmp/multipartBody3597799599821774045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289992898,"filename":"image_18032025_10_25_29_6056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e489df96b5bc8266362b0b13f3dea654.jpg","text":"TemporaryFile(/tmp/multipartBody3815689013622716516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289992898,"filename":"image_18032025_10_25_35_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4b2d6f80070abaf45de663fad3695df2.jpg","text":"TemporaryFile(/tmp/multipartBody4813505524617343747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289992898,"filename":"image_18032025_10_25_47_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ab0b4dd937e67399194e067814de3760.jpg","text":"TemporaryFile(/tmp/multipartBody1753348417139016301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289992898,"filename":"image_18032025_10_25_23_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce703d11d059e7c548adf56d76e42d7c.jpg","text":"TemporaryFile(/tmp/multipartBody4812550526073448790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289992898,"filename":"image_18032025_10_25_41_6064.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3d72d0d0687874d42bccfad27c40c6c6.jpg","text":"TemporaryFile(/tmp/multipartBody7663334084292905169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742289992898,"filename":"image_18032025_10_25_53_6056.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345074293","file1":"1345074274","file0":"1345074269","file4":"1345074311","file5":"1345074315","file3":"1345074305"},"map_files_photo_id_array":[{"photo_id":"1345074315","filename":"file5"},{"photo_id":"1345074293","filename":"file2"},{"photo_id":"1345074311","filename":"file4"},{"photo_id":"1345074274","filename":"file1"},{"photo_id":"1345074269","filename":"file0"},{"photo_id":"1345074305","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345074311":["hashtag1","hashtag2"]},{"1345074305":["hashtag1","hashtag2"]},{"1345074274":["hashtag1","hashtag2"]},{"1345074315":["hashtag1","hashtag2"]},{"1345074293":["hashtag1","hashtag2"]},{"1345074269":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345074311, 1345074305, 1345074274, 1345074315, 1345074293, 1345074269)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.640678644180298 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:26:32.612035
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_53_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_47_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_41_6073.jpg', 2), ('/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_35_5057.jpg', 2), ('/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_30_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_24_6067.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_53_6059.jpg', '/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_47_6059.jpg', '/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_41_6073.jpg', '/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_35_5057.jpg', '/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_30_6061.jpg', '/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_24_6067.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_53_6059.jpg
/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_47_6059.jpg
/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_41_6073.jpg
/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_35_5057.jpg
/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_30_6061.jpg
/home/nano/Desktop/images/18032025/10/26/image_18032025_10_26_24_6067.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345074754","1345074655","1345074472","1345074838","1345074851","1345074560"],"photo_ids_order":["1345074472","1345074560","1345074655","1345074754","1345074838","1345074851"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/74271141ca6235ed3d4d74cf9749a6f6.jpg","text":"TemporaryFile(/tmp/multipartBody5283497487027833401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742290053023,"filename":"image_18032025_10_26_35_5057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e4861d4d55590c77c0485baa7923db1.jpg","text":"TemporaryFile(/tmp/multipartBody1530410671153303969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742290053023,"filename":"image_18032025_10_26_41_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49d096980f5f0432ef6d2437b2d859b4.jpg","text":"TemporaryFile(/tmp/multipartBody3296963839666991114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742290053023,"filename":"image_18032025_10_26_53_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f415aff1d7e838cfc4d36abb9fb4fc5d.jpg","text":"TemporaryFile(/tmp/multipartBody1512536943478661684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742290053023,"filename":"image_18032025_10_26_30_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/378a452ab9a86d4e305e4d74d1ae3eec.jpg","text":"TemporaryFile(/tmp/multipartBody195740176879741861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742290053023,"filename":"image_18032025_10_26_24_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dc9aaed42e0d28653e9cce750925ab3c.jpg","text":"TemporaryFile(/tmp/multipartBody830993199695927448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742290053023,"filename":"image_18032025_10_26_47_6059.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345074655","file1":"1345074560","file0":"1345074472","file4":"1345074838","file5":"1345074851","file3":"1345074754"},"map_files_photo_id_array":[{"photo_id":"1345074851","filename":"file5"},{"photo_id":"1345074655","filename":"file2"},{"photo_id":"1345074838","filename":"file4"},{"photo_id":"1345074560","filename":"file1"},{"photo_id":"1345074472","filename":"file0"},{"photo_id":"1345074754","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345074754":["hashtag1","hashtag2"]},{"1345074655":["hashtag1","hashtag2"]},{"1345074472":["hashtag1","hashtag2"]},{"1345074838":["hashtag1","hashtag2"]},{"1345074851":["hashtag1","hashtag2"]},{"1345074560":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345074754, 1345074655, 1345074472, 1345074838, 1345074851, 1345074560)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.259997367858887 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:27:32.707065
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_54_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_48_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_42_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_36_6064.jpg', 2), ('/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_30_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_23_6068.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_54_6063.jpg', '/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_48_6060.jpg', '/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_42_6055.jpg', '/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_36_6064.jpg', '/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_30_6063.jpg', '/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_23_6068.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_54_6063.jpg
/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_48_6060.jpg
/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_42_6055.jpg
/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_36_6064.jpg
/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_30_6063.jpg
/home/nano/Desktop/images/18032025/10/27/image_18032025_10_27_23_6068.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:58:02.955438
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_54_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_47_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_41_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_35_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_29_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_23_6082.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_54_6077.jpg', '/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_47_6079.jpg', '/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_41_6076.jpg', '/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_35_6079.jpg', '/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_29_6105.jpg', '/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_23_6082.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_54_6077.jpg
/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_47_6079.jpg
/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_41_6076.jpg
/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_35_6079.jpg
/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_29_6105.jpg
/home/nano/Desktop/images/18032025/10/57/image_18032025_10_57_23_6082.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345079296","1345079242","1345079338","1345079268","1345079157","1345079205"],"photo_ids_order":["1345079157","1345079205","1345079242","1345079268","1345079296","1345079338"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6eebfceefa334199b959927abcdfe06.jpg","text":"TemporaryFile(/tmp/multipartBody4945222988099918153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742291943414,"filename":"image_18032025_10_57_29_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/56b2597db3b45a71e2b2e226b3dc2744.jpg","text":"TemporaryFile(/tmp/multipartBody7349035023715910376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742291943414,"filename":"image_18032025_10_57_41_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/babade6fa6358cc68959e4588b87fe3b.jpg","text":"TemporaryFile(/tmp/multipartBody5490965971876556814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742291943414,"filename":"image_18032025_10_57_23_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/79bfc3555214dd46589067e0fb061a59.jpg","text":"TemporaryFile(/tmp/multipartBody4308837079839864199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742291943414,"filename":"image_18032025_10_57_35_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90651ee63b88a5cf734dc406976b4243.jpg","text":"TemporaryFile(/tmp/multipartBody3079553392532357193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742291943414,"filename":"image_18032025_10_57_54_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3efab544be8faddfbe910cd3f00d47ac.jpg","text":"TemporaryFile(/tmp/multipartBody3033882166662024050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742291943414,"filename":"image_18032025_10_57_47_6079.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345079242","file1":"1345079205","file0":"1345079157","file4":"1345079296","file5":"1345079338","file3":"1345079268"},"map_files_photo_id_array":[{"photo_id":"1345079338","filename":"file5"},{"photo_id":"1345079242","filename":"file2"},{"photo_id":"1345079296","filename":"file4"},{"photo_id":"1345079205","filename":"file1"},{"photo_id":"1345079157","filename":"file0"},{"photo_id":"1345079268","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345079296":["hashtag1","hashtag2"]},{"1345079242":["hashtag1","hashtag2"]},{"1345079338":["hashtag1","hashtag2"]},{"1345079268":["hashtag1","hashtag2"]},{"1345079157":["hashtag1","hashtag2"]},{"1345079205":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345079296, 1345079242, 1345079338, 1345079268, 1345079157, 1345079205)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.632473707199097 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 10:59:03.457527
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_54_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_47_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_41_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_35_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_29_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_23_6087.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_54_6088.jpg', '/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_47_6088.jpg', '/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_41_6086.jpg', '/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_35_6090.jpg', '/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_29_6086.jpg', '/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_23_6087.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_54_6088.jpg
/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_47_6088.jpg
/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_41_6086.jpg
/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_35_6090.jpg
/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_29_6086.jpg
/home/nano/Desktop/images/18032025/10/58/image_18032025_10_58_23_6087.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345079957","1345079989","1345080041","1345080017","1345080112","1345079897"],"photo_ids_order":["1345079897","1345079957","1345079989","1345080017","1345080041","1345080112"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f0d93da8ed44c5dffe14050fc1fd764b.jpg","text":"TemporaryFile(/tmp/multipartBody5740524534907965737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292003938,"filename":"image_18032025_10_58_47_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c29b23e97d659870efd69b1049ce7be0.jpg","text":"TemporaryFile(/tmp/multipartBody5641750073589634194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292003938,"filename":"image_18032025_10_58_41_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/387a9bb6c194744d614a8e5c6c968019.jpg","text":"TemporaryFile(/tmp/multipartBody3125719900824952600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292003938,"filename":"image_18032025_10_58_29_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9c61b8b5dcd8fff9107334cf7ee18390.jpg","text":"TemporaryFile(/tmp/multipartBody2306486754692194983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292003938,"filename":"image_18032025_10_58_35_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5fc88553b7580b8231c7de26ea57b4d.jpg","text":"TemporaryFile(/tmp/multipartBody8499616046459564145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292003938,"filename":"image_18032025_10_58_23_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3fe321af4edc875862909335c284c4c6.jpg","text":"TemporaryFile(/tmp/multipartBody5194993606323300419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292003938,"filename":"image_18032025_10_58_54_6088.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345079989","file1":"1345079957","file0":"1345079897","file4":"1345080041","file5":"1345080112","file3":"1345080017"},"map_files_photo_id_array":[{"photo_id":"1345080112","filename":"file5"},{"photo_id":"1345079989","filename":"file2"},{"photo_id":"1345080041","filename":"file4"},{"photo_id":"1345079957","filename":"file1"},{"photo_id":"1345079897","filename":"file0"},{"photo_id":"1345080017","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345079957":["hashtag1","hashtag2"]},{"1345079989":["hashtag1","hashtag2"]},{"1345080041":["hashtag1","hashtag2"]},{"1345080017":["hashtag1","hashtag2"]},{"1345080112":["hashtag1","hashtag2"]},{"1345079897":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345079957, 1345079989, 1345080041, 1345080017, 1345080112, 1345079897)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.105438232421875 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:00:03.240251
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_53_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_47_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_41_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_35_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_29_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_23_6078.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_53_6088.jpg', '/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_47_6091.jpg', '/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_41_6092.jpg', '/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_35_6119.jpg', '/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_29_6109.jpg', '/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_23_6078.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_53_6088.jpg
/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_47_6091.jpg
/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_41_6092.jpg
/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_35_6119.jpg
/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_29_6109.jpg
/home/nano/Desktop/images/18032025/10/59/image_18032025_10_59_23_6078.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345080228","1345080242","1345080236","1345080224","1345080220","1345080232"],"photo_ids_order":["1345080220","1345080224","1345080228","1345080232","1345080236","1345080242"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1586a44b5aa0edb39e77bcf5bf6cf704.jpg","text":"TemporaryFile(/tmp/multipartBody6920575577716505219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292063671,"filename":"image_18032025_10_59_41_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ba2c2272ae83585ad230a805644a2c4.jpg","text":"TemporaryFile(/tmp/multipartBody5514266715270150766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292063671,"filename":"image_18032025_10_59_23_6078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c8af40967360658561ceae81e61cc2c6.jpg","text":"TemporaryFile(/tmp/multipartBody8203839846001397186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292063671,"filename":"image_18032025_10_59_29_6109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f41628ae757c2d9d914e30b374bc852d.jpg","text":"TemporaryFile(/tmp/multipartBody7794288822816662063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292063671,"filename":"image_18032025_10_59_47_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d676a0c95ef2998550aa2662199acbe1.jpg","text":"TemporaryFile(/tmp/multipartBody7065837107855275374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292063671,"filename":"image_18032025_10_59_53_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c792f81d1e89e5a9023dcc14b458f5ad.jpg","text":"TemporaryFile(/tmp/multipartBody457110923827756428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292063671,"filename":"image_18032025_10_59_35_6119.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345080228","file1":"1345080224","file0":"1345080220","file4":"1345080236","file5":"1345080242","file3":"1345080232"},"map_files_photo_id_array":[{"photo_id":"1345080242","filename":"file5"},{"photo_id":"1345080228","filename":"file2"},{"photo_id":"1345080236","filename":"file4"},{"photo_id":"1345080224","filename":"file1"},{"photo_id":"1345080220","filename":"file0"},{"photo_id":"1345080232","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345080228":["hashtag1","hashtag2"]},{"1345080242":["hashtag1","hashtag2"]},{"1345080236":["hashtag1","hashtag2"]},{"1345080224":["hashtag1","hashtag2"]},{"1345080220":["hashtag1","hashtag2"]},{"1345080232":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345080228, 1345080242, 1345080236, 1345080224, 1345080220, 1345080232)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.063048124313354 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:01:03.401116
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_53_6096.jpg', 2), ('/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_47_6085.jpg', 2), ('/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_41_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_35_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_29_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_23_6088.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_53_6096.jpg', '/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_47_6085.jpg', '/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_41_6091.jpg', '/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_35_6098.jpg', '/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_29_6093.jpg', '/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_23_6088.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_53_6096.jpg
/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_47_6085.jpg
/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_41_6091.jpg
/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_35_6098.jpg
/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_29_6093.jpg
/home/nano/Desktop/images/18032025/11/00/image_18032025_11_00_23_6088.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345080402","1345080493","1345080427","1345080436","1345080505","1345080477"],"photo_ids_order":["1345080402","1345080427","1345080436","1345080477","1345080493","1345080505"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2758cc4a3cb47f66883a24c4e182e87b.jpg","text":"TemporaryFile(/tmp/multipartBody1214277703696813700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292123845,"filename":"image_18032025_11_00_53_6096.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/67763d884afffeb7be4e86ccc60b02c4.jpg","text":"TemporaryFile(/tmp/multipartBody8904009693752574307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292123845,"filename":"image_18032025_11_00_29_6093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8f93569fd96adfdf5db0f6d2c5458365.jpg","text":"TemporaryFile(/tmp/multipartBody8268952705908111498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292123845,"filename":"image_18032025_11_00_47_6085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/61dbe7ecf104af9b6176262d8459f964.jpg","text":"TemporaryFile(/tmp/multipartBody6628122480642914654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292123845,"filename":"image_18032025_11_00_41_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/64fbf824d2dd691a886101f149a3c1f6.jpg","text":"TemporaryFile(/tmp/multipartBody7062410582965693548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292123845,"filename":"image_18032025_11_00_23_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e2c762869da2b39ba9919cea0110e4c0.jpg","text":"TemporaryFile(/tmp/multipartBody198781723581605559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292123845,"filename":"image_18032025_11_00_35_6098.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345080436","file1":"1345080427","file0":"1345080402","file4":"1345080493","file5":"1345080505","file3":"1345080477"},"map_files_photo_id_array":[{"photo_id":"1345080505","filename":"file5"},{"photo_id":"1345080436","filename":"file2"},{"photo_id":"1345080493","filename":"file4"},{"photo_id":"1345080427","filename":"file1"},{"photo_id":"1345080402","filename":"file0"},{"photo_id":"1345080477","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345080402":["hashtag1","hashtag2"]},{"1345080493":["hashtag1","hashtag2"]},{"1345080427":["hashtag1","hashtag2"]},{"1345080436":["hashtag1","hashtag2"]},{"1345080505":["hashtag1","hashtag2"]},{"1345080477":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345080402, 1345080493, 1345080427, 1345080436, 1345080505, 1345080477)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.27115750312805 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:02:02.306927
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_53_5930.jpg', 2), ('/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_47_6085.jpg', 2), ('/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_41_5771.jpg', 2), ('/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_35_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_29_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_23_6091.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_53_5930.jpg', '/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_47_6085.jpg', '/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_41_5771.jpg', '/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_35_6077.jpg', '/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_29_6090.jpg', '/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_23_6091.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_53_5930.jpg
/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_47_6085.jpg
/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_41_5771.jpg
/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_35_6077.jpg
/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_29_6090.jpg
/home/nano/Desktop/images/18032025/11/01/image_18032025_11_01_23_6091.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345080563","1345080565","1345080567","1345080561","1345080555","1345080558"],"photo_ids_order":["1345080555","1345080558","1345080561","1345080563","1345080565","1345080567"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/83a7db0ceafa1e0bddafed128a580fe7.jpg","text":"TemporaryFile(/tmp/multipartBody1865143365631370550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292182738,"filename":"image_18032025_11_01_35_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce7e5c34d521fa16dc294eb09995a837.jpg","text":"TemporaryFile(/tmp/multipartBody8453565936295599214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292182738,"filename":"image_18032025_11_01_29_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ef6cffadb2a2c12512bde0c054ace9bd.jpg","text":"TemporaryFile(/tmp/multipartBody4406113246483024817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292182738,"filename":"image_18032025_11_01_23_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/206cc362ea4f7c20601896fa1a471cdb.jpg","text":"TemporaryFile(/tmp/multipartBody1883888394875088490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292182738,"filename":"image_18032025_11_01_41_5771.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c6681e57436bf8f14106777d3aada61.jpg","text":"TemporaryFile(/tmp/multipartBody5024873003038065010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292182738,"filename":"image_18032025_11_01_53_5930.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43ca3a6e3ea6820c32ff0eda48321ba3.jpg","text":"TemporaryFile(/tmp/multipartBody6799836583121486180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292182738,"filename":"image_18032025_11_01_47_6085.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345080561","file1":"1345080558","file0":"1345080555","file4":"1345080565","file5":"1345080567","file3":"1345080563"},"map_files_photo_id_array":[{"photo_id":"1345080567","filename":"file5"},{"photo_id":"1345080561","filename":"file2"},{"photo_id":"1345080565","filename":"file4"},{"photo_id":"1345080558","filename":"file1"},{"photo_id":"1345080555","filename":"file0"},{"photo_id":"1345080563","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345080563":["hashtag1","hashtag2"]},{"1345080565":["hashtag1","hashtag2"]},{"1345080567":["hashtag1","hashtag2"]},{"1345080561":["hashtag1","hashtag2"]},{"1345080555":["hashtag1","hashtag2"]},{"1345080558":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345080563, 1345080565, 1345080567, 1345080561, 1345080555, 1345080558)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.662785291671753 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:03:02.413530
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_54_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_48_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_42_6097.jpg', 2), ('/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_35_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_29_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_23_6098.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_54_6099.jpg', '/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_48_6102.jpg', '/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_42_6097.jpg', '/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_35_6123.jpg', '/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_29_6055.jpg', '/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_23_6098.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_54_6099.jpg
/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_48_6102.jpg
/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_42_6097.jpg
/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_35_6123.jpg
/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_29_6055.jpg
/home/nano/Desktop/images/18032025/11/02/image_18032025_11_02_23_6098.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345080843","1345080872","1345080812","1345080786","1345080759","1345080732"],"photo_ids_order":["1345080732","1345080759","1345080786","1345080812","1345080843","1345080872"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ea0a0fb53db41b751c5bc4ec9e483f9.jpg","text":"TemporaryFile(/tmp/multipartBody8147253826927034485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292242852,"filename":"image_18032025_11_02_29_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dfbcdddf1dbab97f56269273368a8805.jpg","text":"TemporaryFile(/tmp/multipartBody4249284028876979139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292242852,"filename":"image_18032025_11_02_23_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0654fc3c91e58fe204cccc69a97dc999.jpg","text":"TemporaryFile(/tmp/multipartBody5909050308241672082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292242852,"filename":"image_18032025_11_02_35_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3b55c70454fa1f104d582ff4b628f670.jpg","text":"TemporaryFile(/tmp/multipartBody7350031834774351827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292242852,"filename":"image_18032025_11_02_42_6097.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca82a3c78617477a45559e014c918d13.jpg","text":"TemporaryFile(/tmp/multipartBody7947838612787983110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292242852,"filename":"image_18032025_11_02_48_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f2f988eaa0c668508ffe28536072e7e.jpg","text":"TemporaryFile(/tmp/multipartBody564252424740869274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292242852,"filename":"image_18032025_11_02_54_6099.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345080786","file1":"1345080759","file0":"1345080732","file4":"1345080843","file5":"1345080872","file3":"1345080812"},"map_files_photo_id_array":[{"photo_id":"1345080872","filename":"file5"},{"photo_id":"1345080786","filename":"file2"},{"photo_id":"1345080843","filename":"file4"},{"photo_id":"1345080759","filename":"file1"},{"photo_id":"1345080732","filename":"file0"},{"photo_id":"1345080812","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345080843":["hashtag1","hashtag2"]},{"1345080872":["hashtag1","hashtag2"]},{"1345080812":["hashtag1","hashtag2"]},{"1345080786":["hashtag1","hashtag2"]},{"1345080759":["hashtag1","hashtag2"]},{"1345080732":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345080843, 1345080872, 1345080812, 1345080786, 1345080759, 1345080732)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.556788682937622 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:04:03.028982
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_54_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_48_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_42_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_35_6110.jpg', 2), ('/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_29_6035.jpg', 2), ('/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_23_6045.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_54_6107.jpg', '/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_48_6111.jpg', '/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_42_6109.jpg', '/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_35_6110.jpg', '/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_29_6035.jpg', '/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_23_6045.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_54_6107.jpg
/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_48_6111.jpg
/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_42_6109.jpg
/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_35_6110.jpg
/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_29_6035.jpg
/home/nano/Desktop/images/18032025/11/03/image_18032025_11_03_23_6045.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345081049","1345081052","1345081063","1345081165","1345081113","1345081215"],"photo_ids_order":["1345081049","1345081052","1345081063","1345081113","1345081165","1345081215"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a94bed9781a208294a8cb9999bd6edc7.jpg","text":"TemporaryFile(/tmp/multipartBody8550915055143568711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292303453,"filename":"image_18032025_11_03_54_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2b5e988726a6b6bfdd2dc12141775975.jpg","text":"TemporaryFile(/tmp/multipartBody1785753602132682018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292303453,"filename":"image_18032025_11_03_48_6111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b941ae38018b84106c2f43fb6bfa2e00.jpg","text":"TemporaryFile(/tmp/multipartBody307889535175226771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292303453,"filename":"image_18032025_11_03_42_6109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f122585db1be85363f2a61f1c9ef8caf.jpg","text":"TemporaryFile(/tmp/multipartBody4181811330964128598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292303453,"filename":"image_18032025_11_03_29_6035.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18d9e3b695bc7afef9cf041f8e490c96.jpg","text":"TemporaryFile(/tmp/multipartBody1387698463396557469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292303453,"filename":"image_18032025_11_03_35_6110.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0632d9bfffe37e9f74883773b3f94eb.jpg","text":"TemporaryFile(/tmp/multipartBody5552964919570972214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292303453,"filename":"image_18032025_11_03_23_6045.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345081063","file1":"1345081052","file0":"1345081049","file4":"1345081165","file5":"1345081215","file3":"1345081113"},"map_files_photo_id_array":[{"photo_id":"1345081215","filename":"file5"},{"photo_id":"1345081063","filename":"file2"},{"photo_id":"1345081165","filename":"file4"},{"photo_id":"1345081052","filename":"file1"},{"photo_id":"1345081049","filename":"file0"},{"photo_id":"1345081113","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345081049":["hashtag1","hashtag2"]},{"1345081052":["hashtag1","hashtag2"]},{"1345081063":["hashtag1","hashtag2"]},{"1345081165":["hashtag1","hashtag2"]},{"1345081113":["hashtag1","hashtag2"]},{"1345081215":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345081049, 1345081052, 1345081063, 1345081165, 1345081113, 1345081215)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.76091432571411 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:05:02.928310
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_53_5103.jpg', 2), ('/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_48_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_42_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_36_6110.jpg', 2), ('/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_29_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_23_6108.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_53_5103.jpg', '/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_48_6109.jpg', '/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_42_6054.jpg', '/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_36_6110.jpg', '/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_29_6113.jpg', '/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_23_6108.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_53_5103.jpg
/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_48_6109.jpg
/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_42_6054.jpg
/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_36_6110.jpg
/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_29_6113.jpg
/home/nano/Desktop/images/18032025/11/04/image_18032025_11_04_23_6108.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345081864","1345081915","1345081761","1345081836","1345081809","1345081964"],"photo_ids_order":["1345081761","1345081809","1345081836","1345081864","1345081915","1345081964"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ed1f9f3e60a1c80808ad161b1ddb23a.jpg","text":"TemporaryFile(/tmp/multipartBody8707282336648080462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292363377,"filename":"image_18032025_11_04_36_6110.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/831debc4ce254b6f91e6577e7133e75a.jpg","text":"TemporaryFile(/tmp/multipartBody1667909450068751052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292363377,"filename":"image_18032025_11_04_29_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a1fb00085f6a6f744ec5a3e892b6265a.jpg","text":"TemporaryFile(/tmp/multipartBody8005712122729226860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292363377,"filename":"image_18032025_11_04_53_5103.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/435caf53d8244b9924fe361ee8120bbe.jpg","text":"TemporaryFile(/tmp/multipartBody5103401121526591148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292363377,"filename":"image_18032025_11_04_42_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/767d0076d1fa557527e228081e3c5e6b.jpg","text":"TemporaryFile(/tmp/multipartBody7923937179792620164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292363377,"filename":"image_18032025_11_04_48_6109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/94e67ee04ed62ec0e3eab96ee3a7899f.jpg","text":"TemporaryFile(/tmp/multipartBody3256899672652105614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292363377,"filename":"image_18032025_11_04_23_6108.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345081836","file1":"1345081809","file0":"1345081761","file4":"1345081915","file5":"1345081964","file3":"1345081864"},"map_files_photo_id_array":[{"photo_id":"1345081964","filename":"file5"},{"photo_id":"1345081836","filename":"file2"},{"photo_id":"1345081915","filename":"file4"},{"photo_id":"1345081809","filename":"file1"},{"photo_id":"1345081761","filename":"file0"},{"photo_id":"1345081864","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345081864":["hashtag1","hashtag2"]},{"1345081915":["hashtag1","hashtag2"]},{"1345081761":["hashtag1","hashtag2"]},{"1345081836":["hashtag1","hashtag2"]},{"1345081809":["hashtag1","hashtag2"]},{"1345081964":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345081864, 1345081915, 1345081761, 1345081836, 1345081809, 1345081964)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.537149906158447 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:06:02.939358
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_53_5105.jpg', 2), ('/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_48_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_42_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_36_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_29_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_23_6103.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_53_5105.jpg', '/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_48_6109.jpg', '/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_42_6107.jpg', '/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_36_6113.jpg', '/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_29_6093.jpg', '/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_23_6103.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_53_5105.jpg
/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_48_6109.jpg
/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_42_6107.jpg
/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_36_6113.jpg
/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_29_6093.jpg
/home/nano/Desktop/images/18032025/11/05/image_18032025_11_05_23_6103.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345082593","1345082598","1345082364","1345082468","1345082534","1345082417"],"photo_ids_order":["1345082364","1345082417","1345082468","1345082534","1345082593","1345082598"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/734627ca101cd145c1245bab4c7e3272.jpg","text":"TemporaryFile(/tmp/multipartBody6407030504864272692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292423382,"filename":"image_18032025_11_05_29_6093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/786ed59a6d82a59a26646f87731d6700.jpg","text":"TemporaryFile(/tmp/multipartBody8279563208721516260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292423382,"filename":"image_18032025_11_05_23_6103.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/779c06021b7dc3ac7fc0d2fbbd2c4891.jpg","text":"TemporaryFile(/tmp/multipartBody6438092531134702280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292423382,"filename":"image_18032025_11_05_53_5105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb9162d4eca6177c4ac432802f9e167c.jpg","text":"TemporaryFile(/tmp/multipartBody6470020236680774132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292423382,"filename":"image_18032025_11_05_42_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/304d4a2b00a3300e549099b54839740a.jpg","text":"TemporaryFile(/tmp/multipartBody6886626964767245696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292423382,"filename":"image_18032025_11_05_36_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/589fd6f23ff031c0d9326171e1c3c03a.jpg","text":"TemporaryFile(/tmp/multipartBody6289950917753809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292423382,"filename":"image_18032025_11_05_48_6109.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345082468","file1":"1345082417","file0":"1345082364","file4":"1345082593","file5":"1345082598","file3":"1345082534"},"map_files_photo_id_array":[{"photo_id":"1345082598","filename":"file5"},{"photo_id":"1345082468","filename":"file2"},{"photo_id":"1345082593","filename":"file4"},{"photo_id":"1345082417","filename":"file1"},{"photo_id":"1345082364","filename":"file0"},{"photo_id":"1345082534","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345082593":["hashtag1","hashtag2"]},{"1345082598":["hashtag1","hashtag2"]},{"1345082364":["hashtag1","hashtag2"]},{"1345082468":["hashtag1","hashtag2"]},{"1345082534":["hashtag1","hashtag2"]},{"1345082417":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345082593, 1345082598, 1345082364, 1345082468, 1345082534, 1345082417)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.458719730377197 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:07:02.957632
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_53_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_47_6114.jpg', 2), ('/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_41_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_35_5111.jpg', 2), ('/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_30_6146.jpg', 2), ('/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_24_6121.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_53_6111.jpg', '/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_47_6114.jpg', '/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_41_6116.jpg', '/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_35_5111.jpg', '/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_30_6146.jpg', '/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_24_6121.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_53_6111.jpg
/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_47_6114.jpg
/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_41_6116.jpg
/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_35_5111.jpg
/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_30_6146.jpg
/home/nano/Desktop/images/18032025/11/06/image_18032025_11_06_24_6121.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345083160","1345083150","1345083156","1345083129","1345083111","1345083056"],"photo_ids_order":["1345083056","1345083111","1345083129","1345083150","1345083156","1345083160"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7fcdfd44c027d5a4dd79f00b14065dc1.jpg","text":"TemporaryFile(/tmp/multipartBody5777209053869535645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292483391,"filename":"image_18032025_11_06_24_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9389c511874a21e2438f029dbdb9446e.jpg","text":"TemporaryFile(/tmp/multipartBody2572906408395492315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292483391,"filename":"image_18032025_11_06_35_5111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c1e318b1247e548cc17cb3b364629308.jpg","text":"TemporaryFile(/tmp/multipartBody1230651020989885890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292483391,"filename":"image_18032025_11_06_30_6146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4002a00d08cd1813ad0504c7da123d81.jpg","text":"TemporaryFile(/tmp/multipartBody2361196127842895926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292483391,"filename":"image_18032025_11_06_41_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c44cd1c206fe17409318bbf5f512e3a4.jpg","text":"TemporaryFile(/tmp/multipartBody8277916207761793250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292483391,"filename":"image_18032025_11_06_47_6114.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9d84e3c119bfd83b24983fd9b2747896.jpg","text":"TemporaryFile(/tmp/multipartBody4996066015396534160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292483391,"filename":"image_18032025_11_06_53_6111.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345083129","file1":"1345083111","file0":"1345083056","file4":"1345083156","file5":"1345083160","file3":"1345083150"},"map_files_photo_id_array":[{"photo_id":"1345083160","filename":"file5"},{"photo_id":"1345083129","filename":"file2"},{"photo_id":"1345083156","filename":"file4"},{"photo_id":"1345083111","filename":"file1"},{"photo_id":"1345083056","filename":"file0"},{"photo_id":"1345083150","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345083160":["hashtag1","hashtag2"]},{"1345083150":["hashtag1","hashtag2"]},{"1345083156":["hashtag1","hashtag2"]},{"1345083129":["hashtag1","hashtag2"]},{"1345083111":["hashtag1","hashtag2"]},{"1345083056":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345083160, 1345083150, 1345083156, 1345083129, 1345083111, 1345083056)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.75088596343994 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:08:03.240846
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_53_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_47_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_41_6115.jpg', 2), ('/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_35_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_29_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_23_5139.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_53_6125.jpg', '/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_47_6120.jpg', '/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_41_6115.jpg', '/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_35_6117.jpg', '/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_29_6144.jpg', '/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_23_5139.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_53_6125.jpg
/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_47_6120.jpg
/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_41_6115.jpg
/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_35_6117.jpg
/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_29_6144.jpg
/home/nano/Desktop/images/18032025/11/07/image_18032025_11_07_23_5139.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345083370","1345083307","1345083318","1345083411","1345083299","1345083341"],"photo_ids_order":["1345083299","1345083307","1345083318","1345083341","1345083370","1345083411"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/13d507872a48cdc5bb18db65233e1d52.jpg","text":"TemporaryFile(/tmp/multipartBody2940105931595705001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292543723,"filename":"image_18032025_11_07_29_6144.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a721c6ca41538c4d1216ee21a69d3f2.jpg","text":"TemporaryFile(/tmp/multipartBody6841138538869142152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292543723,"filename":"image_18032025_11_07_47_6120.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/66dabcf201d62b7dfab6f9ed899bc1dc.jpg","text":"TemporaryFile(/tmp/multipartBody8108016043931690094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292543723,"filename":"image_18032025_11_07_41_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3857c651bb7fde79d6fac0a42b0bc563.jpg","text":"TemporaryFile(/tmp/multipartBody616597777207954884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292543723,"filename":"image_18032025_11_07_23_5139.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/03f0f5edbfb9341d9f78ee0b4fc43216.jpg","text":"TemporaryFile(/tmp/multipartBody9195461573392002370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292543723,"filename":"image_18032025_11_07_53_6125.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/82540ace908dc05f625797173996baac.jpg","text":"TemporaryFile(/tmp/multipartBody2817269294506667040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292543723,"filename":"image_18032025_11_07_35_6117.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345083318","file1":"1345083307","file0":"1345083299","file4":"1345083370","file5":"1345083411","file3":"1345083341"},"map_files_photo_id_array":[{"photo_id":"1345083411","filename":"file5"},{"photo_id":"1345083318","filename":"file2"},{"photo_id":"1345083370","filename":"file4"},{"photo_id":"1345083307","filename":"file1"},{"photo_id":"1345083299","filename":"file0"},{"photo_id":"1345083341","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345083370":["hashtag1","hashtag2"]},{"1345083307":["hashtag1","hashtag2"]},{"1345083318":["hashtag1","hashtag2"]},{"1345083411":["hashtag1","hashtag2"]},{"1345083299":["hashtag1","hashtag2"]},{"1345083341":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345083370, 1345083307, 1345083318, 1345083411, 1345083299, 1345083341)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.938528299331665 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:09:03.523938
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_53_5108.jpg', 2), ('/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_48_6131.jpg', 2), ('/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_42_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_36_6259.jpg', 2), ('/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_29_6124.jpg', 2), ('/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_23_6120.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_53_5108.jpg', '/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_48_6131.jpg', '/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_42_6107.jpg', '/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_36_6259.jpg', '/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_29_6124.jpg', '/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_23_6120.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_53_5108.jpg
/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_48_6131.jpg
/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_42_6107.jpg
/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_36_6259.jpg
/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_29_6124.jpg
/home/nano/Desktop/images/18032025/11/08/image_18032025_11_08_23_6120.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345083838","1345083899","1345083627","1345083743","1345083938","1345083688"],"photo_ids_order":["1345083627","1345083688","1345083743","1345083838","1345083899","1345083938"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f166cbdfe1a0bf21ada5c98db2387945.jpg","text":"TemporaryFile(/tmp/multipartBody5540088634765975545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292603991,"filename":"image_18032025_11_08_36_6259.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ff64053306b24cf59a8fb7db13262c5.jpg","text":"TemporaryFile(/tmp/multipartBody406274189772304082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292603991,"filename":"image_18032025_11_08_29_6124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3daeb737fb723cd32df36308b890796e.jpg","text":"TemporaryFile(/tmp/multipartBody8091613438709935183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292603991,"filename":"image_18032025_11_08_53_5108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac68e15c4f1439ffb2a4536567ec5955.jpg","text":"TemporaryFile(/tmp/multipartBody2245207098435210733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292603991,"filename":"image_18032025_11_08_42_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9f2de10983cada498fc345d861dd71ae.jpg","text":"TemporaryFile(/tmp/multipartBody4191208166765173319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292603991,"filename":"image_18032025_11_08_23_6120.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0784278c6f7a2e04c8769400b05709ab.jpg","text":"TemporaryFile(/tmp/multipartBody2812295085643063973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292603991,"filename":"image_18032025_11_08_48_6131.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345083743","file1":"1345083688","file0":"1345083627","file4":"1345083899","file5":"1345083938","file3":"1345083838"},"map_files_photo_id_array":[{"photo_id":"1345083938","filename":"file5"},{"photo_id":"1345083743","filename":"file2"},{"photo_id":"1345083899","filename":"file4"},{"photo_id":"1345083688","filename":"file1"},{"photo_id":"1345083627","filename":"file0"},{"photo_id":"1345083838","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345083838":["hashtag1","hashtag2"]},{"1345083899":["hashtag1","hashtag2"]},{"1345083627":["hashtag1","hashtag2"]},{"1345083743":["hashtag1","hashtag2"]},{"1345083938":["hashtag1","hashtag2"]},{"1345083688":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345083838, 1345083899, 1345083627, 1345083743, 1345083938, 1345083688)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.527204751968384 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:10:02.435772
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_53_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_47_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_41_5106.jpg', 2), ('/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_36_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_30_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_23_6118.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_53_6123.jpg', '/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_47_6123.jpg', '/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_41_5106.jpg', '/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_36_6119.jpg', '/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_30_6116.jpg', '/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_23_6118.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_53_6123.jpg
/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_47_6123.jpg
/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_41_5106.jpg
/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_36_6119.jpg
/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_30_6116.jpg
/home/nano/Desktop/images/18032025/11/09/image_18032025_11_09_23_6118.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345084420","1345084491","1345084275","1345084544","1345084352","1345084520"],"photo_ids_order":["1345084275","1345084352","1345084420","1345084491","1345084520","1345084544"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/beed040ceb5e5b7030df444f33660506.jpg","text":"TemporaryFile(/tmp/multipartBody4713095756615092398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292662891,"filename":"image_18032025_11_09_41_5106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cba12f4576920b6a14a77ab9da50ac46.jpg","text":"TemporaryFile(/tmp/multipartBody97932909341268164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292662891,"filename":"image_18032025_11_09_36_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/123672a099fb3a41aa18a24a3b2c3955.jpg","text":"TemporaryFile(/tmp/multipartBody7409942343506671275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292662891,"filename":"image_18032025_11_09_53_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e02ef5f9965995334916f32864c98830.jpg","text":"TemporaryFile(/tmp/multipartBody518297727838054881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292662891,"filename":"image_18032025_11_09_23_6118.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5f31f2d02c882133780386c9c09a70a.jpg","text":"TemporaryFile(/tmp/multipartBody5986698946013883297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292662891,"filename":"image_18032025_11_09_47_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aacc97e88a17b6f05a3118496823b633.jpg","text":"TemporaryFile(/tmp/multipartBody8882396023740075113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292662891,"filename":"image_18032025_11_09_30_6116.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345084420","file1":"1345084352","file0":"1345084275","file4":"1345084520","file5":"1345084544","file3":"1345084491"},"map_files_photo_id_array":[{"photo_id":"1345084544","filename":"file5"},{"photo_id":"1345084420","filename":"file2"},{"photo_id":"1345084520","filename":"file4"},{"photo_id":"1345084352","filename":"file1"},{"photo_id":"1345084275","filename":"file0"},{"photo_id":"1345084491","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345084420":["hashtag1","hashtag2"]},{"1345084491":["hashtag1","hashtag2"]},{"1345084275":["hashtag1","hashtag2"]},{"1345084544":["hashtag1","hashtag2"]},{"1345084352":["hashtag1","hashtag2"]},{"1345084520":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345084420, 1345084491, 1345084275, 1345084544, 1345084352, 1345084520)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.69846034049988 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:11:02.548907
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_53_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_47_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_41_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_35_5115.jpg', 2), ('/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_30_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_24_6112.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_53_6119.jpg', '/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_47_6121.jpg', '/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_41_6123.jpg', '/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_35_5115.jpg', '/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_30_6098.jpg', '/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_24_6112.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_53_6119.jpg
/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_47_6121.jpg
/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_41_6123.jpg
/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_35_5115.jpg
/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_30_6098.jpg
/home/nano/Desktop/images/18032025/11/10/image_18032025_11_10_24_6112.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345084936","1345084881","1345084854","1345084818","1345084905","1345084844"],"photo_ids_order":["1345084818","1345084844","1345084854","1345084881","1345084905","1345084936"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0d233b1e2684e4d39e61ec4eed11ee3.jpg","text":"TemporaryFile(/tmp/multipartBody3802043447917757883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292722997,"filename":"image_18032025_11_10_24_6112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c94dd628b209c9abc4885a730ab599ab.jpg","text":"TemporaryFile(/tmp/multipartBody7449995860261881467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292722997,"filename":"image_18032025_11_10_35_5115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd3eecd95634dcec74f1c47d4585ebb4.jpg","text":"TemporaryFile(/tmp/multipartBody6699626595069846321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292722997,"filename":"image_18032025_11_10_41_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af60990c2bf33bf7a78365a709af8f52.jpg","text":"TemporaryFile(/tmp/multipartBody8728022956155916145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292722997,"filename":"image_18032025_11_10_53_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d5ec2cc76c5f654ae3e226b22e04233e.jpg","text":"TemporaryFile(/tmp/multipartBody4899933408141082177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292722997,"filename":"image_18032025_11_10_30_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/37a478815d624f3b6534b3f8a8c86af3.jpg","text":"TemporaryFile(/tmp/multipartBody6187813282000485367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292722997,"filename":"image_18032025_11_10_47_6121.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345084854","file1":"1345084844","file0":"1345084818","file4":"1345084905","file5":"1345084936","file3":"1345084881"},"map_files_photo_id_array":[{"photo_id":"1345084936","filename":"file5"},{"photo_id":"1345084854","filename":"file2"},{"photo_id":"1345084905","filename":"file4"},{"photo_id":"1345084844","filename":"file1"},{"photo_id":"1345084818","filename":"file0"},{"photo_id":"1345084881","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345084936":["hashtag1","hashtag2"]},{"1345084881":["hashtag1","hashtag2"]},{"1345084854":["hashtag1","hashtag2"]},{"1345084818":["hashtag1","hashtag2"]},{"1345084905":["hashtag1","hashtag2"]},{"1345084844":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345084936, 1345084881, 1345084854, 1345084818, 1345084905, 1345084844)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.46725845336914 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:12:02.701044
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_54_6131.jpg', 2), ('/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_48_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_41_6158.jpg', 2), ('/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_35_6122.jpg', 2), ('/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_29_6124.jpg', 2), ('/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_23_6133.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_54_6131.jpg', '/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_48_6135.jpg', '/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_41_6158.jpg', '/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_35_6122.jpg', '/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_29_6124.jpg', '/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_23_6133.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_54_6131.jpg
/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_48_6135.jpg
/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_41_6158.jpg
/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_35_6122.jpg
/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_29_6124.jpg
/home/nano/Desktop/images/18032025/11/11/image_18032025_11_11_23_6133.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345085172","1345085180","1345085174","1345085168","1345085176","1345085170"],"photo_ids_order":["1345085168","1345085170","1345085172","1345085174","1345085176","1345085180"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/284d47a25eb620b12296f76b442cbf20.jpg","text":"TemporaryFile(/tmp/multipartBody3016701884200377286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292783151,"filename":"image_18032025_11_11_41_6158.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d007286a64714a5aa84446bdb257e827.jpg","text":"TemporaryFile(/tmp/multipartBody3799962763936168431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292783151,"filename":"image_18032025_11_11_23_6133.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0d35da5d2d75a89568ee481865d41d0c.jpg","text":"TemporaryFile(/tmp/multipartBody1211891242659199420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292783151,"filename":"image_18032025_11_11_35_6122.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e5900dba2f1e2924e0550f3cabe6b9f3.jpg","text":"TemporaryFile(/tmp/multipartBody2122700849860203941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292783151,"filename":"image_18032025_11_11_54_6131.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6d16406489e3dbd46f17f2ecbbb7b83.jpg","text":"TemporaryFile(/tmp/multipartBody4205988393449610573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292783151,"filename":"image_18032025_11_11_29_6124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/44489414fb5d257a06293c4b21ae65f3.jpg","text":"TemporaryFile(/tmp/multipartBody8608429312734680193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292783151,"filename":"image_18032025_11_11_48_6135.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345085172","file1":"1345085170","file0":"1345085168","file4":"1345085176","file5":"1345085180","file3":"1345085174"},"map_files_photo_id_array":[{"photo_id":"1345085180","filename":"file5"},{"photo_id":"1345085172","filename":"file2"},{"photo_id":"1345085176","filename":"file4"},{"photo_id":"1345085170","filename":"file1"},{"photo_id":"1345085168","filename":"file0"},{"photo_id":"1345085174","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345085172":["hashtag1","hashtag2"]},{"1345085180":["hashtag1","hashtag2"]},{"1345085174":["hashtag1","hashtag2"]},{"1345085168":["hashtag1","hashtag2"]},{"1345085176":["hashtag1","hashtag2"]},{"1345085170":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345085172, 1345085180, 1345085174, 1345085168, 1345085176, 1345085170)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.941210985183716 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:13:02.765625
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_05_6159.jpg', 2), ('/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_54_6131.jpg', 2), ('/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_48_6132.jpg', 2), ('/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_42_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_35_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_29_6130.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_05_6159.jpg', '/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_54_6131.jpg', '/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_48_6132.jpg', '/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_42_6108.jpg', '/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_35_6150.jpg', '/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_29_6130.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_05_6159.jpg
/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_54_6131.jpg
/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_48_6132.jpg
/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_42_6108.jpg
/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_35_6150.jpg
/home/nano/Desktop/images/18032025/11/12/image_18032025_11_12_29_6130.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345085241","1345085235","1345085237","1345085234","1345085236","1345085233"],"photo_ids_order":["1345085233","1345085234","1345085235","1345085236","1345085237","1345085241"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e521fea7ebec9b7b2940493779694de2.jpg","text":"TemporaryFile(/tmp/multipartBody1103111617928542995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292843215,"filename":"image_18032025_11_12_29_6130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6f52e35762de5fab51a586f59aeb538.jpg","text":"TemporaryFile(/tmp/multipartBody7309387960364971236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292843215,"filename":"image_18032025_11_12_48_6132.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fb75db0d56b3f0d6869fcf770d3a032f.jpg","text":"TemporaryFile(/tmp/multipartBody337811777310372392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292843215,"filename":"image_18032025_11_12_35_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ea635b5f4a73e64d74fb943a6aed0cb.jpg","text":"TemporaryFile(/tmp/multipartBody8618688720730287751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292843215,"filename":"image_18032025_11_12_54_6131.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a57cdfacbf680f9e670cb7be1b609244.jpg","text":"TemporaryFile(/tmp/multipartBody7424423184857537115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292843215,"filename":"image_18032025_11_12_42_6108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ccd1c2d954588ffa2896e6f06e378bde.jpg","text":"TemporaryFile(/tmp/multipartBody822118465784951661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292843215,"filename":"image_18032025_11_13_05_6159.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345085235","file1":"1345085234","file0":"1345085233","file4":"1345085237","file5":"1345085241","file3":"1345085236"},"map_files_photo_id_array":[{"photo_id":"1345085241","filename":"file5"},{"photo_id":"1345085235","filename":"file2"},{"photo_id":"1345085237","filename":"file4"},{"photo_id":"1345085234","filename":"file1"},{"photo_id":"1345085233","filename":"file0"},{"photo_id":"1345085236","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345085241":["hashtag1","hashtag2"]},{"1345085235":["hashtag1","hashtag2"]},{"1345085237":["hashtag1","hashtag2"]},{"1345085234":["hashtag1","hashtag2"]},{"1345085236":["hashtag1","hashtag2"]},{"1345085233":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345085241, 1345085235, 1345085237, 1345085234, 1345085236, 1345085233)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.0611207485199 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:14:03.111525
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_53_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_47_6169.jpg', 2), ('/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_41_5130.jpg', 2), ('/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_36_6163.jpg', 2), ('/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_30_6136.jpg', 2), ('/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_24_6135.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_53_6135.jpg', '/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_47_6169.jpg', '/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_41_5130.jpg', '/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_36_6163.jpg', '/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_30_6136.jpg', '/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_24_6135.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_53_6135.jpg
/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_47_6169.jpg
/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_41_5130.jpg
/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_36_6163.jpg
/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_30_6136.jpg
/home/nano/Desktop/images/18032025/11/13/image_18032025_11_13_24_6135.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345085406","1345085417","1345085411","1345085414","1345085422","1345085397"],"photo_ids_order":["1345085397","1345085406","1345085411","1345085414","1345085417","1345085422"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d68516e1397b564ab5e7e48afbfa24f2.jpg","text":"TemporaryFile(/tmp/multipartBody4784857111402980536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292903547,"filename":"image_18032025_11_13_47_6169.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/920fdf9f49f0712d9adfc37426d9e9a7.jpg","text":"TemporaryFile(/tmp/multipartBody8382231847849922809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292903547,"filename":"image_18032025_11_13_30_6136.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a686c53b6ee191d5b9c5f7dfa26586fa.jpg","text":"TemporaryFile(/tmp/multipartBody3636068552828154175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292903547,"filename":"image_18032025_11_13_41_5130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a57f4e66751dfe8ec3b7993821383211.jpg","text":"TemporaryFile(/tmp/multipartBody3829117679044600290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292903547,"filename":"image_18032025_11_13_36_6163.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d5439417b9e84430032bedf736886961.jpg","text":"TemporaryFile(/tmp/multipartBody6976191218718862715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292903547,"filename":"image_18032025_11_13_24_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6b27df90951a8f5bb63a514a1ebe3c3.jpg","text":"TemporaryFile(/tmp/multipartBody8936318572152946917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292903547,"filename":"image_18032025_11_13_53_6135.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345085411","file1":"1345085406","file0":"1345085397","file4":"1345085417","file5":"1345085422","file3":"1345085414"},"map_files_photo_id_array":[{"photo_id":"1345085422","filename":"file5"},{"photo_id":"1345085411","filename":"file2"},{"photo_id":"1345085417","filename":"file4"},{"photo_id":"1345085406","filename":"file1"},{"photo_id":"1345085397","filename":"file0"},{"photo_id":"1345085414","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345085406":["hashtag1","hashtag2"]},{"1345085417":["hashtag1","hashtag2"]},{"1345085411":["hashtag1","hashtag2"]},{"1345085414":["hashtag1","hashtag2"]},{"1345085422":["hashtag1","hashtag2"]},{"1345085397":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345085406, 1345085417, 1345085411, 1345085414, 1345085422, 1345085397)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.596523761749268 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:15:02.940951
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_54_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_47_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_41_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_35_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_29_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_23_5127.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_54_6141.jpg', '/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_47_6135.jpg', '/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_41_6127.jpg', '/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_35_6148.jpg', '/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_29_6140.jpg', '/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_23_5127.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_54_6141.jpg
/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_47_6135.jpg
/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_41_6127.jpg
/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_35_6148.jpg
/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_29_6140.jpg
/home/nano/Desktop/images/18032025/11/14/image_18032025_11_14_23_5127.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345085562","1345085556","1345085576","1345085581","1345085572","1345085530"],"photo_ids_order":["1345085530","1345085556","1345085562","1345085572","1345085576","1345085581"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ffc3c7b03574123b26d5633a7df967a.jpg","text":"TemporaryFile(/tmp/multipartBody2895624872905956278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292963391,"filename":"image_18032025_11_14_41_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3f80e7a27a6b9e08ec7f26f51d4866a.jpg","text":"TemporaryFile(/tmp/multipartBody6078553437906010339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292963391,"filename":"image_18032025_11_14_47_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/222e00f6c002cdeb0163fdb777298a4d.jpg","text":"TemporaryFile(/tmp/multipartBody3203781983461073716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292963391,"filename":"image_18032025_11_14_29_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/20d92a4a35cf766f98ab1ee8f6116018.jpg","text":"TemporaryFile(/tmp/multipartBody634376378305071817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292963391,"filename":"image_18032025_11_14_23_5127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af600ce9eb2a1b6398b25b466078c07a.jpg","text":"TemporaryFile(/tmp/multipartBody2539342937771855268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292963391,"filename":"image_18032025_11_14_35_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8944bac72c4c2442e54969fa907d6fec.jpg","text":"TemporaryFile(/tmp/multipartBody8267978461711981034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742292963391,"filename":"image_18032025_11_14_54_6141.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345085562","file1":"1345085556","file0":"1345085530","file4":"1345085576","file5":"1345085581","file3":"1345085572"},"map_files_photo_id_array":[{"photo_id":"1345085581","filename":"file5"},{"photo_id":"1345085562","filename":"file2"},{"photo_id":"1345085576","filename":"file4"},{"photo_id":"1345085556","filename":"file1"},{"photo_id":"1345085530","filename":"file0"},{"photo_id":"1345085572","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345085562":["hashtag1","hashtag2"]},{"1345085556":["hashtag1","hashtag2"]},{"1345085576":["hashtag1","hashtag2"]},{"1345085581":["hashtag1","hashtag2"]},{"1345085572":["hashtag1","hashtag2"]},{"1345085530":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345085562, 1345085556, 1345085576, 1345085581, 1345085572, 1345085530)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.26178598403931 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:16:03.221073
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_53_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_47_6143.jpg', 2), ('/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_41_5130.jpg', 2), ('/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_36_6146.jpg', 2), ('/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_30_6139.jpg', 2), ('/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_23_6140.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_53_6147.jpg', '/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_47_6143.jpg', '/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_41_5130.jpg', '/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_36_6146.jpg', '/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_30_6139.jpg', '/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_23_6140.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_53_6147.jpg
/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_47_6143.jpg
/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_41_5130.jpg
/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_36_6146.jpg
/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_30_6139.jpg
/home/nano/Desktop/images/18032025/11/15/image_18032025_11_15_23_6140.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345085622","1345085619","1345085628","1345085621","1345085624","1345085617"],"photo_ids_order":["1345085617","1345085619","1345085621","1345085622","1345085624","1345085628"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8047c2c8996b9850a76f494d5de459e.jpg","text":"TemporaryFile(/tmp/multipartBody4230124273342232399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293023713,"filename":"image_18032025_11_15_36_6146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/87004c83538b4c6a261d2659011ad0c8.jpg","text":"TemporaryFile(/tmp/multipartBody2787144897848906512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293023713,"filename":"image_18032025_11_15_47_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/134299992243f7fc9280c076a2f9c456.jpg","text":"TemporaryFile(/tmp/multipartBody7317718248150901948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293023713,"filename":"image_18032025_11_15_23_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e2c05dcba49a0e237d9b39334d61e860.jpg","text":"TemporaryFile(/tmp/multipartBody6594892616333242183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293023713,"filename":"image_18032025_11_15_41_5130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c612d24604788aa68377e93492d1e5f.jpg","text":"TemporaryFile(/tmp/multipartBody1563657036283906073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293023713,"filename":"image_18032025_11_15_30_6139.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5903d5a8b44c87261dfc78f35ce03791.jpg","text":"TemporaryFile(/tmp/multipartBody3482588248300957354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293023713,"filename":"image_18032025_11_15_53_6147.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345085621","file1":"1345085619","file0":"1345085617","file4":"1345085624","file5":"1345085628","file3":"1345085622"},"map_files_photo_id_array":[{"photo_id":"1345085628","filename":"file5"},{"photo_id":"1345085621","filename":"file2"},{"photo_id":"1345085624","filename":"file4"},{"photo_id":"1345085619","filename":"file1"},{"photo_id":"1345085617","filename":"file0"},{"photo_id":"1345085622","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345085622":["hashtag1","hashtag2"]},{"1345085619":["hashtag1","hashtag2"]},{"1345085628":["hashtag1","hashtag2"]},{"1345085621":["hashtag1","hashtag2"]},{"1345085624":["hashtag1","hashtag2"]},{"1345085617":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345085622, 1345085619, 1345085628, 1345085621, 1345085624, 1345085617)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.888861417770386 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:17:03.141516
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_54_6186.jpg', 2), ('/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_48_6161.jpg', 2), ('/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_41_6156.jpg', 2), ('/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_35_6149.jpg', 2), ('/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_29_6189.jpg', 2), ('/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_23_5143.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_54_6186.jpg', '/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_48_6161.jpg', '/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_41_6156.jpg', '/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_35_6149.jpg', '/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_29_6189.jpg', '/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_23_5143.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_54_6186.jpg
/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_48_6161.jpg
/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_41_6156.jpg
/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_35_6149.jpg
/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_29_6189.jpg
/home/nano/Desktop/images/18032025/11/16/image_18032025_11_16_23_5143.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345085681","1345085678","1345085672","1345085675","1345085669","1345085685"],"photo_ids_order":["1345085669","1345085672","1345085675","1345085678","1345085681","1345085685"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b1f5a0da4234711f7d96ff918ae78b8a.jpg","text":"TemporaryFile(/tmp/multipartBody7867722572799410148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293083580,"filename":"image_18032025_11_16_29_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/367103d477c44e9a7b8fe93800797df5.jpg","text":"TemporaryFile(/tmp/multipartBody258914982338766705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293083580,"filename":"image_18032025_11_16_35_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6e8aa1a0488eedcdb5cfce3eccc77f9f.jpg","text":"TemporaryFile(/tmp/multipartBody505414984712691106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293083580,"filename":"image_18032025_11_16_48_6161.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/edaafc4345c1e09d3b5be406169cfa5a.jpg","text":"TemporaryFile(/tmp/multipartBody411346991768994581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293083580,"filename":"image_18032025_11_16_41_6156.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c59f30e07385af20c548284332dab6e2.jpg","text":"TemporaryFile(/tmp/multipartBody6800891016063232773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293083580,"filename":"image_18032025_11_16_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/3/18/17405b22e23db46f90355ca4ff980597.jpg","text":"TemporaryFile(/tmp/multipartBody8658762024303288538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293083580,"filename":"image_18032025_11_16_23_5143.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345085675","file1":"1345085672","file0":"1345085669","file4":"1345085681","file5":"1345085685","file3":"1345085678"},"map_files_photo_id_array":[{"photo_id":"1345085685","filename":"file5"},{"photo_id":"1345085675","filename":"file2"},{"photo_id":"1345085681","filename":"file4"},{"photo_id":"1345085672","filename":"file1"},{"photo_id":"1345085669","filename":"file0"},{"photo_id":"1345085678","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345085681":["hashtag1","hashtag2"]},{"1345085678":["hashtag1","hashtag2"]},{"1345085672":["hashtag1","hashtag2"]},{"1345085675":["hashtag1","hashtag2"]},{"1345085669":["hashtag1","hashtag2"]},{"1345085685":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345085681, 1345085678, 1345085672, 1345085675, 1345085669, 1345085685)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.543864011764526 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:18:03.380275
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_53_6155.jpg', 2), ('/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_47_6154.jpg', 2), ('/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_41_6157.jpg', 2), ('/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_35_5142.jpg', 2), ('/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_30_6155.jpg', 2), ('/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_24_6153.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_53_6155.jpg', '/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_47_6154.jpg', '/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_41_6157.jpg', '/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_35_5142.jpg', '/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_30_6155.jpg', '/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_24_6153.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_53_6155.jpg
/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_47_6154.jpg
/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_41_6157.jpg
/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_35_5142.jpg
/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_30_6155.jpg
/home/nano/Desktop/images/18032025/11/17/image_18032025_11_17_24_6153.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345085868","1345085861","1345085855","1345085863","1345085857","1345085865"],"photo_ids_order":["1345085855","1345085857","1345085861","1345085863","1345085865","1345085868"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d7ff18533b26c4a9f50e0f5e84fdb93.jpg","text":"TemporaryFile(/tmp/multipartBody2514558214644751670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293143804,"filename":"image_18032025_11_17_24_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b586b0d1396fe2f39d32df399e606402.jpg","text":"TemporaryFile(/tmp/multipartBody1793847388874871671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293143804,"filename":"image_18032025_11_17_41_6157.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/13f02c6b68330ff6d86806f117bbeff4.jpg","text":"TemporaryFile(/tmp/multipartBody4053542992166536791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293143804,"filename":"image_18032025_11_17_53_6155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4cc5cda38c8ebe724be4da81838ff93d.jpg","text":"TemporaryFile(/tmp/multipartBody8733865391796551510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293143804,"filename":"image_18032025_11_17_35_5142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b25ead153fd5e38d2a0582536916585b.jpg","text":"TemporaryFile(/tmp/multipartBody8056784094310000298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293143804,"filename":"image_18032025_11_17_47_6154.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9e15f84cc8532c8efc227d9cb3eaed85.jpg","text":"TemporaryFile(/tmp/multipartBody5378001830193042388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293143804,"filename":"image_18032025_11_17_30_6155.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345085861","file1":"1345085857","file0":"1345085855","file4":"1345085865","file5":"1345085868","file3":"1345085863"},"map_files_photo_id_array":[{"photo_id":"1345085868","filename":"file5"},{"photo_id":"1345085861","filename":"file2"},{"photo_id":"1345085865","filename":"file4"},{"photo_id":"1345085857","filename":"file1"},{"photo_id":"1345085855","filename":"file0"},{"photo_id":"1345085863","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345085868":["hashtag1","hashtag2"]},{"1345085861":["hashtag1","hashtag2"]},{"1345085855":["hashtag1","hashtag2"]},{"1345085863":["hashtag1","hashtag2"]},{"1345085857":["hashtag1","hashtag2"]},{"1345085865":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345085868, 1345085861, 1345085855, 1345085863, 1345085857, 1345085865)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.1959764957428 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:19:02.774532
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_06_6205.jpg', 2), ('/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_53_6160.jpg', 2), ('/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_47_5183.jpg', 2), ('/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_42_6171.jpg', 2), ('/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_36_6271.jpg', 2), ('/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_29_6160.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_06_6205.jpg', '/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_53_6160.jpg', '/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_47_5183.jpg', '/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_42_6171.jpg', '/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_36_6271.jpg', '/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_29_6160.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_06_6205.jpg
/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_53_6160.jpg
/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_47_5183.jpg
/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_42_6171.jpg
/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_36_6271.jpg
/home/nano/Desktop/images/18032025/11/18/image_18032025_11_18_29_6160.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345085913","1345085916","1345085925","1345085910","1345085906","1345085920"],"photo_ids_order":["1345085906","1345085910","1345085913","1345085916","1345085920","1345085925"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/832ae51ecab8aab794f8a6666649b9bb.jpg","text":"TemporaryFile(/tmp/multipartBody3608883722285980686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293203303,"filename":"image_18032025_11_18_47_5183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2f55ac470c5929338b0fe859097475b9.jpg","text":"TemporaryFile(/tmp/multipartBody7585327498488229294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293203303,"filename":"image_18032025_11_18_42_6171.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e909237210f9f2cc7527af4de3a4cac1.jpg","text":"TemporaryFile(/tmp/multipartBody3559188862864283089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293203303,"filename":"image_18032025_11_18_29_6160.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14236f47ed6da5291ce2d4b7c2ddb45d.jpg","text":"TemporaryFile(/tmp/multipartBody8908964611052611075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293203303,"filename":"image_18032025_11_18_53_6160.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/55864b662ebca8a71d4079df552827ac.jpg","text":"TemporaryFile(/tmp/multipartBody5499969865310807784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293203303,"filename":"image_18032025_11_19_06_6205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/39ed7df01e216460ce0392adffd34921.jpg","text":"TemporaryFile(/tmp/multipartBody7095405911849717496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293203303,"filename":"image_18032025_11_18_36_6271.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345085913","file1":"1345085910","file0":"1345085906","file4":"1345085920","file5":"1345085925","file3":"1345085916"},"map_files_photo_id_array":[{"photo_id":"1345085925","filename":"file5"},{"photo_id":"1345085913","filename":"file2"},{"photo_id":"1345085920","filename":"file4"},{"photo_id":"1345085910","filename":"file1"},{"photo_id":"1345085906","filename":"file0"},{"photo_id":"1345085916","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345085913":["hashtag1","hashtag2"]},{"1345085916":["hashtag1","hashtag2"]},{"1345085925":["hashtag1","hashtag2"]},{"1345085910":["hashtag1","hashtag2"]},{"1345085906":["hashtag1","hashtag2"]},{"1345085920":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345085913, 1345085916, 1345085925, 1345085910, 1345085906, 1345085920)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.43573021888733 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:20:02.720870
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_53_5157.jpg', 2), ('/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_48_6166.jpg', 2), ('/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_42_6166.jpg', 2), ('/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_35_6158.jpg', 2), ('/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_29_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_23_6164.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_53_5157.jpg', '/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_48_6166.jpg', '/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_42_6166.jpg', '/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_35_6158.jpg', '/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_29_6148.jpg', '/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_23_6164.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_53_5157.jpg
/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_48_6166.jpg
/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_42_6166.jpg
/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_35_6158.jpg
/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_29_6148.jpg
/home/nano/Desktop/images/18032025/11/19/image_18032025_11_19_23_6164.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3754572868347168 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:20:31.951346
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_54_6170.jpg', 2), ('/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_47_6162.jpg', 2), ('/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_41_6198.jpg', 2), ('/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_35_6170.jpg', 2), ('/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_29_5155.jpg', 2), ('/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_24_6161.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_54_6170.jpg', '/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_47_6162.jpg', '/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_41_6198.jpg', '/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_35_6170.jpg', '/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_29_5155.jpg', '/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_24_6161.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_54_6170.jpg
/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_47_6162.jpg
/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_41_6198.jpg
/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_35_6170.jpg
/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_29_5155.jpg
/home/nano/Desktop/images/18032025/11/20/image_18032025_11_20_24_6161.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345086108","1345086105","1345086089","1345086097","1345086101","1345086093"],"photo_ids_order":["1345086089","1345086093","1345086097","1345086101","1345086105","1345086108"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/61bffe398d03a946f8508698ca9d71a8.jpg","text":"TemporaryFile(/tmp/multipartBody5781887822146382623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293292389,"filename":"image_18032025_11_20_24_6161.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/48d6ddb1e117e2b504bbc4c84ecd4fcb.jpg","text":"TemporaryFile(/tmp/multipartBody394476730461621678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293292389,"filename":"image_18032025_11_20_29_5155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ad26356085b325c72fcc8557b44b6fb.jpg","text":"TemporaryFile(/tmp/multipartBody4753331397210271929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293292389,"filename":"image_18032025_11_20_54_6170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/31785afe8a42bd075b3f2ddc1a82396b.jpg","text":"TemporaryFile(/tmp/multipartBody5214836446757855359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293292389,"filename":"image_18032025_11_20_41_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/77893cd350958d80370d516837a56ad4.jpg","text":"TemporaryFile(/tmp/multipartBody1861847459494774199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293292389,"filename":"image_18032025_11_20_35_6170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/746a475cc77476d11b41f7fb39f5c752.jpg","text":"TemporaryFile(/tmp/multipartBody5130464580822528342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293292389,"filename":"image_18032025_11_20_47_6162.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345086097","file1":"1345086093","file0":"1345086089","file4":"1345086105","file5":"1345086108","file3":"1345086101"},"map_files_photo_id_array":[{"photo_id":"1345086108","filename":"file5"},{"photo_id":"1345086097","filename":"file2"},{"photo_id":"1345086105","filename":"file4"},{"photo_id":"1345086093","filename":"file1"},{"photo_id":"1345086089","filename":"file0"},{"photo_id":"1345086101","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345086108":["hashtag1","hashtag2"]},{"1345086105":["hashtag1","hashtag2"]},{"1345086089":["hashtag1","hashtag2"]},{"1345086097":["hashtag1","hashtag2"]},{"1345086101":["hashtag1","hashtag2"]},{"1345086093":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345086108, 1345086105, 1345086089, 1345086097, 1345086101, 1345086093)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.368563652038574 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:21:32.070692
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_53_6163.jpg', 2), ('/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_47_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_41_5146.jpg', 2), ('/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_36_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_30_6162.jpg', 2), ('/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_23_6164.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_53_6163.jpg', '/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_47_6153.jpg', '/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_41_5146.jpg', '/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_36_6152.jpg', '/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_30_6162.jpg', '/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_23_6164.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_53_6163.jpg
/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_47_6153.jpg
/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_41_5146.jpg
/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_36_6152.jpg
/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_30_6162.jpg
/home/nano/Desktop/images/18032025/11/21/image_18032025_11_21_23_6164.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345086341","1345086305","1345086286","1345086367","1345086253","1345086276"],"photo_ids_order":["1345086253","1345086276","1345086286","1345086305","1345086341","1345086367"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9decb3b16af3a2735c1cf25965613fa4.jpg","text":"TemporaryFile(/tmp/multipartBody4437225847740786796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293352507,"filename":"image_18032025_11_21_30_6162.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ef3cd1e974d3fb11f657adeb91b2021c.jpg","text":"TemporaryFile(/tmp/multipartBody4417250150682724063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293352507,"filename":"image_18032025_11_21_36_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/041ee6e219f1976d51a4946d1288727f.jpg","text":"TemporaryFile(/tmp/multipartBody3156575410704116453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293352507,"filename":"image_18032025_11_21_41_5146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e5fba6d9888bd11708f8cfd0f60b1572.jpg","text":"TemporaryFile(/tmp/multipartBody8350223549069197576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293352507,"filename":"image_18032025_11_21_23_6164.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dc71b00e992b1b67dc28029da7c8f258.jpg","text":"TemporaryFile(/tmp/multipartBody610701565583301565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293352507,"filename":"image_18032025_11_21_53_6163.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1b98ba719f5729c32c3ce9cad889f84e.jpg","text":"TemporaryFile(/tmp/multipartBody9193378604329020913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293352507,"filename":"image_18032025_11_21_47_6153.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345086286","file1":"1345086276","file0":"1345086253","file4":"1345086341","file5":"1345086367","file3":"1345086305"},"map_files_photo_id_array":[{"photo_id":"1345086367","filename":"file5"},{"photo_id":"1345086286","filename":"file2"},{"photo_id":"1345086341","filename":"file4"},{"photo_id":"1345086276","filename":"file1"},{"photo_id":"1345086253","filename":"file0"},{"photo_id":"1345086305","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345086341":["hashtag1","hashtag2"]},{"1345086305":["hashtag1","hashtag2"]},{"1345086286":["hashtag1","hashtag2"]},{"1345086367":["hashtag1","hashtag2"]},{"1345086253":["hashtag1","hashtag2"]},{"1345086276":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345086341, 1345086305, 1345086286, 1345086367, 1345086253, 1345086276)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.982423543930054 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:22:32.201354
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_53_6168.jpg', 2), ('/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_47_5159.jpg', 2), ('/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_42_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_36_6162.jpg', 2), ('/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_29_6189.jpg', 2), ('/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_23_6210.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_53_6168.jpg', '/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_47_5159.jpg', '/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_42_6152.jpg', '/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_36_6162.jpg', '/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_29_6189.jpg', '/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_23_6210.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_53_6168.jpg
/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_47_5159.jpg
/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_42_6152.jpg
/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_36_6162.jpg
/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_29_6189.jpg
/home/nano/Desktop/images/18032025/11/22/image_18032025_11_22_23_6210.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345086548","1345086571","1345086532","1345086520","1345086585","1345086528"],"photo_ids_order":["1345086520","1345086528","1345086532","1345086548","1345086571","1345086585"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c3b524137241b633795fd9d24c5bf4a.jpg","text":"TemporaryFile(/tmp/multipartBody8747248155176199277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293412621,"filename":"image_18032025_11_22_36_6162.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/91c60392ba3a0314a2c646c60aa99211.jpg","text":"TemporaryFile(/tmp/multipartBody3472824749946000036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293412621,"filename":"image_18032025_11_22_29_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3ed226f58f76538457007ca63c0b711b.jpg","text":"TemporaryFile(/tmp/multipartBody2781167162273760305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293412621,"filename":"image_18032025_11_22_42_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ea56026590995752d7d59559ebfc5ef.jpg","text":"TemporaryFile(/tmp/multipartBody2338110748139608260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293412621,"filename":"image_18032025_11_22_53_6168.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/320fbe477149cd37b71c82aaae031c83.jpg","text":"TemporaryFile(/tmp/multipartBody6759782155047155756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293412621,"filename":"image_18032025_11_22_23_6210.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a592d0c3d07c7c0ee4c2c79b45223afd.jpg","text":"TemporaryFile(/tmp/multipartBody5978595598977069014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293412621,"filename":"image_18032025_11_22_47_5159.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345086532","file1":"1345086528","file0":"1345086520","file4":"1345086571","file5":"1345086585","file3":"1345086548"},"map_files_photo_id_array":[{"photo_id":"1345086585","filename":"file5"},{"photo_id":"1345086532","filename":"file2"},{"photo_id":"1345086571","filename":"file4"},{"photo_id":"1345086528","filename":"file1"},{"photo_id":"1345086520","filename":"file0"},{"photo_id":"1345086548","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345086548":["hashtag1","hashtag2"]},{"1345086571":["hashtag1","hashtag2"]},{"1345086532":["hashtag1","hashtag2"]},{"1345086520":["hashtag1","hashtag2"]},{"1345086585":["hashtag1","hashtag2"]},{"1345086528":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345086548, 1345086571, 1345086532, 1345086520, 1345086585, 1345086528)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.60409164428711 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:23:32.280745
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_54_6161.jpg', 2), ('/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_48_6166.jpg', 2), ('/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_41_6166.jpg', 2), ('/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_35_6167.jpg', 2), ('/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_29_6208.jpg', 2), ('/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_23_5161.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_54_6161.jpg', '/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_48_6166.jpg', '/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_41_6166.jpg', '/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_35_6167.jpg', '/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_29_6208.jpg', '/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_23_5161.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_54_6161.jpg
/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_48_6166.jpg
/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_41_6166.jpg
/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_35_6167.jpg
/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_29_6208.jpg
/home/nano/Desktop/images/18032025/11/23/image_18032025_11_23_23_5161.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345086707","1345086766","1345086681","1345086654","1345086756","1345086735"],"photo_ids_order":["1345086654","1345086681","1345086707","1345086735","1345086756","1345086766"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f553fd4e6dd80da04c2d907bc3d8de7f.jpg","text":"TemporaryFile(/tmp/multipartBody6069819896605911631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293472717,"filename":"image_18032025_11_23_41_6166.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d7119850ad2de7ac3e1d6852e07e15dc.jpg","text":"TemporaryFile(/tmp/multipartBody9093959725736204804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293472717,"filename":"image_18032025_11_23_23_5161.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7a12724abfb83a537e04f438f491278b.jpg","text":"TemporaryFile(/tmp/multipartBody1121472999253965578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293472717,"filename":"image_18032025_11_23_48_6166.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/817ba7841041493f36fe630cc53e3b44.jpg","text":"TemporaryFile(/tmp/multipartBody6502660321710787291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293472717,"filename":"image_18032025_11_23_54_6161.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d1cbe0e810201dd224b2f57bad839314.jpg","text":"TemporaryFile(/tmp/multipartBody259475715911381906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293472717,"filename":"image_18032025_11_23_29_6208.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0443c5604a1ab38a7172ced7382c8e6e.jpg","text":"TemporaryFile(/tmp/multipartBody4259097825770269122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293472717,"filename":"image_18032025_11_23_35_6167.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345086707","file1":"1345086681","file0":"1345086654","file4":"1345086756","file5":"1345086766","file3":"1345086735"},"map_files_photo_id_array":[{"photo_id":"1345086766","filename":"file5"},{"photo_id":"1345086707","filename":"file2"},{"photo_id":"1345086756","filename":"file4"},{"photo_id":"1345086681","filename":"file1"},{"photo_id":"1345086654","filename":"file0"},{"photo_id":"1345086735","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345086707":["hashtag1","hashtag2"]},{"1345086766":["hashtag1","hashtag2"]},{"1345086681":["hashtag1","hashtag2"]},{"1345086654":["hashtag1","hashtag2"]},{"1345086756":["hashtag1","hashtag2"]},{"1345086735":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345086707, 1345086766, 1345086681, 1345086654, 1345086756, 1345086735)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.486889123916626 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:24:32.406315
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_54_6174.jpg', 2), ('/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_48_6205.jpg', 2), ('/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_41_6182.jpg', 2), ('/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_35_6214.jpg', 2), ('/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_29_5188.jpg', 2), ('/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_24_6169.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_54_6174.jpg', '/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_48_6205.jpg', '/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_41_6182.jpg', '/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_35_6214.jpg', '/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_29_5188.jpg', '/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_24_6169.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_54_6174.jpg
/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_48_6205.jpg
/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_41_6182.jpg
/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_35_6214.jpg
/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_29_5188.jpg
/home/nano/Desktop/images/18032025/11/24/image_18032025_11_24_24_6169.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345086791","1345086797","1345086802","1345086805","1345086783","1345086786"],"photo_ids_order":["1345086783","1345086786","1345086791","1345086797","1345086802","1345086805"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ef62cdc0d9185c85d95cddc49b3a8b1.jpg","text":"TemporaryFile(/tmp/multipartBody2295519809987447034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293532843,"filename":"image_18032025_11_24_41_6182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f56517760256b47de25298b7d468c18d.jpg","text":"TemporaryFile(/tmp/multipartBody8783857703246602775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293532843,"filename":"image_18032025_11_24_35_6214.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e1c852362a84f364febd75dd57fb05f.jpg","text":"TemporaryFile(/tmp/multipartBody7500833032711356495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293532843,"filename":"image_18032025_11_24_29_5188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/86ad11832f2fb9f1a3057219b486059e.jpg","text":"TemporaryFile(/tmp/multipartBody75968140407585184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293532843,"filename":"image_18032025_11_24_24_6169.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7bf3f260e6207c6f50d9b91aff946e8.jpg","text":"TemporaryFile(/tmp/multipartBody5864019177110036553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293532843,"filename":"image_18032025_11_24_54_6174.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c169d20ae41d60596dbad3084c9eb15.jpg","text":"TemporaryFile(/tmp/multipartBody7481019249601512673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293532843,"filename":"image_18032025_11_24_48_6205.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345086791","file1":"1345086786","file0":"1345086783","file4":"1345086802","file5":"1345086805","file3":"1345086797"},"map_files_photo_id_array":[{"photo_id":"1345086805","filename":"file5"},{"photo_id":"1345086791","filename":"file2"},{"photo_id":"1345086802","filename":"file4"},{"photo_id":"1345086786","filename":"file1"},{"photo_id":"1345086783","filename":"file0"},{"photo_id":"1345086797","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345086791":["hashtag1","hashtag2"]},{"1345086797":["hashtag1","hashtag2"]},{"1345086802":["hashtag1","hashtag2"]},{"1345086805":["hashtag1","hashtag2"]},{"1345086783":["hashtag1","hashtag2"]},{"1345086786":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345086791, 1345086797, 1345086802, 1345086805, 1345086783, 1345086786)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.708702325820923 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:25:32.504578
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_54_6172.jpg', 2), ('/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_47_6171.jpg', 2), ('/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_41_6209.jpg', 2), ('/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_35_6210.jpg', 2), ('/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_29_5169.jpg', 2), ('/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_24_6171.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_54_6172.jpg', '/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_47_6171.jpg', '/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_41_6209.jpg', '/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_35_6210.jpg', '/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_29_5169.jpg', '/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_24_6171.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_54_6172.jpg
/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_47_6171.jpg
/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_41_6209.jpg
/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_35_6210.jpg
/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_29_5169.jpg
/home/nano/Desktop/images/18032025/11/25/image_18032025_11_25_24_6171.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345087073","1345087100","1345087030","1345087132","1345087056","1345087017"],"photo_ids_order":["1345087017","1345087030","1345087056","1345087073","1345087100","1345087132"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0318b501b3660ef35c9d4a9402fd82bd.jpg","text":"TemporaryFile(/tmp/multipartBody1962656661302751024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293592945,"filename":"image_18032025_11_25_35_6210.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ee4e883c6fb7780ccbe9406f7172ff5.jpg","text":"TemporaryFile(/tmp/multipartBody5818573001569097076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293592945,"filename":"image_18032025_11_25_29_5169.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/33e0ebb326bf9262b6140f7576beb990.jpg","text":"TemporaryFile(/tmp/multipartBody793746627328630723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293592945,"filename":"image_18032025_11_25_47_6171.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/80d6f0e28997d9109368b00bc72e66d7.jpg","text":"TemporaryFile(/tmp/multipartBody2881125524432177579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293592945,"filename":"image_18032025_11_25_24_6171.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7b26c3329428eab8b803eea84c74ae66.jpg","text":"TemporaryFile(/tmp/multipartBody802456489561473092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293592945,"filename":"image_18032025_11_25_41_6209.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0f0ef64c96948c116f5e59eb5dd6a4d1.jpg","text":"TemporaryFile(/tmp/multipartBody5179939211060414805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293592945,"filename":"image_18032025_11_25_54_6172.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345087056","file1":"1345087030","file0":"1345087017","file4":"1345087100","file5":"1345087132","file3":"1345087073"},"map_files_photo_id_array":[{"photo_id":"1345087132","filename":"file5"},{"photo_id":"1345087056","filename":"file2"},{"photo_id":"1345087100","filename":"file4"},{"photo_id":"1345087030","filename":"file1"},{"photo_id":"1345087017","filename":"file0"},{"photo_id":"1345087073","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345087073":["hashtag1","hashtag2"]},{"1345087100":["hashtag1","hashtag2"]},{"1345087030":["hashtag1","hashtag2"]},{"1345087132":["hashtag1","hashtag2"]},{"1345087056":["hashtag1","hashtag2"]},{"1345087017":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345087073, 1345087100, 1345087030, 1345087132, 1345087056, 1345087017)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.8112735748291 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:26:32.608868
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_53_6185.jpg', 2), ('/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_47_6182.jpg', 2), ('/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_41_6187.jpg', 2), ('/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_35_5175.jpg', 2), ('/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_30_6175.jpg', 2), ('/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_24_6180.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_53_6185.jpg', '/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_47_6182.jpg', '/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_41_6187.jpg', '/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_35_5175.jpg', '/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_30_6175.jpg', '/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_24_6180.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_53_6185.jpg
/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_47_6182.jpg
/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_41_6187.jpg
/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_35_5175.jpg
/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_30_6175.jpg
/home/nano/Desktop/images/18032025/11/26/image_18032025_11_26_24_6180.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345087447","1345087378","1345087351","1345087414","1345087443","1345087454"],"photo_ids_order":["1345087351","1345087378","1345087414","1345087443","1345087447","1345087454"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e83d95787aa8bc0881d96a147df1441d.jpg","text":"TemporaryFile(/tmp/multipartBody5418888683780333320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293653027,"filename":"image_18032025_11_26_30_6175.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3e0570e776494aa5af957a608538779a.jpg","text":"TemporaryFile(/tmp/multipartBody6239722081050522486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293653027,"filename":"image_18032025_11_26_47_6182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ef8dcf0c28e92a0165db862b0e469f5.jpg","text":"TemporaryFile(/tmp/multipartBody6325935351961208275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293653027,"filename":"image_18032025_11_26_53_6185.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/33b2231ebc8de3f7e37738bb6b19682d.jpg","text":"TemporaryFile(/tmp/multipartBody3647446194129836433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293653027,"filename":"image_18032025_11_26_41_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca926e7adf4cb0a9ec0ad00a3e8c3873.jpg","text":"TemporaryFile(/tmp/multipartBody615475066198565103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293653027,"filename":"image_18032025_11_26_35_5175.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db93aec791d4c67b0cb0333cb8562b01.jpg","text":"TemporaryFile(/tmp/multipartBody2462238116652707631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293653027,"filename":"image_18032025_11_26_24_6180.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345087414","file1":"1345087378","file0":"1345087351","file4":"1345087447","file5":"1345087454","file3":"1345087443"},"map_files_photo_id_array":[{"photo_id":"1345087454","filename":"file5"},{"photo_id":"1345087414","filename":"file2"},{"photo_id":"1345087447","filename":"file4"},{"photo_id":"1345087378","filename":"file1"},{"photo_id":"1345087351","filename":"file0"},{"photo_id":"1345087443","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345087447":["hashtag1","hashtag2"]},{"1345087378":["hashtag1","hashtag2"]},{"1345087351":["hashtag1","hashtag2"]},{"1345087414":["hashtag1","hashtag2"]},{"1345087443":["hashtag1","hashtag2"]},{"1345087454":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345087447, 1345087378, 1345087351, 1345087414, 1345087443, 1345087454)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.981308937072754 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:27:32.766984
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_53_6164.jpg', 2), ('/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_47_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_41_6211.jpg', 2), ('/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_35_5168.jpg', 2), ('/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_30_6173.jpg', 2), ('/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_24_6170.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_53_6164.jpg', '/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_47_6165.jpg', '/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_41_6211.jpg', '/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_35_5168.jpg', '/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_30_6173.jpg', '/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_24_6170.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_53_6164.jpg
/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_47_6165.jpg
/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_41_6211.jpg
/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_35_5168.jpg
/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_30_6173.jpg
/home/nano/Desktop/images/18032025/11/27/image_18032025_11_27_24_6170.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345087538","1345087633","1345087621","1345087543","1345087639","1345087584"],"photo_ids_order":["1345087538","1345087543","1345087584","1345087621","1345087633","1345087639"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/34f098d521f230f390689c7db2ae0e1a.jpg","text":"TemporaryFile(/tmp/multipartBody3983955187133581792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293713208,"filename":"image_18032025_11_27_53_6164.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/24e4646fd68e4d46f5929baf5dd2d7c4.jpg","text":"TemporaryFile(/tmp/multipartBody5891838688245302377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293713208,"filename":"image_18032025_11_27_30_6173.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb5f0792072110018a3f896cb9d2435b.jpg","text":"TemporaryFile(/tmp/multipartBody421778966677694594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293713208,"filename":"image_18032025_11_27_35_5168.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c7e0ebaaec881e69d6b12d307bb71ee5.jpg","text":"TemporaryFile(/tmp/multipartBody3039269773105416528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293713208,"filename":"image_18032025_11_27_47_6165.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19484fa6f584df5323f4c9371853ea69.jpg","text":"TemporaryFile(/tmp/multipartBody1680679109144647824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293713208,"filename":"image_18032025_11_27_24_6170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/80a9cc81aaa575cf5c0948a648bcefce.jpg","text":"TemporaryFile(/tmp/multipartBody3715336074927146930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293713208,"filename":"image_18032025_11_27_41_6211.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345087584","file1":"1345087543","file0":"1345087538","file4":"1345087633","file5":"1345087639","file3":"1345087621"},"map_files_photo_id_array":[{"photo_id":"1345087639","filename":"file5"},{"photo_id":"1345087584","filename":"file2"},{"photo_id":"1345087633","filename":"file4"},{"photo_id":"1345087543","filename":"file1"},{"photo_id":"1345087538","filename":"file0"},{"photo_id":"1345087621","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345087538":["hashtag1","hashtag2"]},{"1345087633":["hashtag1","hashtag2"]},{"1345087621":["hashtag1","hashtag2"]},{"1345087543":["hashtag1","hashtag2"]},{"1345087639":["hashtag1","hashtag2"]},{"1345087584":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345087538, 1345087633, 1345087621, 1345087543, 1345087639, 1345087584)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.57299828529358 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:28:31.875390
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_53_6174.jpg', 2), ('/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_47_5163.jpg', 2), ('/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_42_6175.jpg', 2), ('/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_36_6168.jpg', 2), ('/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_29_6170.jpg', 2), ('/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_23_6170.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_53_6174.jpg', '/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_47_5163.jpg', '/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_42_6175.jpg', '/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_36_6168.jpg', '/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_29_6170.jpg', '/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_23_6170.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_53_6174.jpg
/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_47_5163.jpg
/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_42_6175.jpg
/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_36_6168.jpg
/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_29_6170.jpg
/home/nano/Desktop/images/18032025/11/28/image_18032025_11_28_23_6170.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345087684","1345087663","1345087669","1345087689","1345087679","1345087673"],"photo_ids_order":["1345087663","1345087669","1345087673","1345087679","1345087684","1345087689"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e764612b2014608a3e69191b11914753.jpg","text":"TemporaryFile(/tmp/multipartBody2334991126771953874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293772313,"filename":"image_18032025_11_28_29_6170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14342d8f2d8ce4c04fa7d4938f6f3aff.jpg","text":"TemporaryFile(/tmp/multipartBody7022206153446007633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293772313,"filename":"image_18032025_11_28_53_6174.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0e1419f42d37ac016ad194c87763715.jpg","text":"TemporaryFile(/tmp/multipartBody1010659605555947027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293772313,"filename":"image_18032025_11_28_47_5163.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c761b3041a358075fccbde95d5c51aa.jpg","text":"TemporaryFile(/tmp/multipartBody8601777596390583845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293772313,"filename":"image_18032025_11_28_23_6170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b9939608ab3b978d41e678378487ec4.jpg","text":"TemporaryFile(/tmp/multipartBody5862186587310200528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293772313,"filename":"image_18032025_11_28_36_6168.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0f975b38a1e0f084d72248b8a8a84605.jpg","text":"TemporaryFile(/tmp/multipartBody6625338587185168590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293772313,"filename":"image_18032025_11_28_42_6175.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345087673","file1":"1345087669","file0":"1345087663","file4":"1345087684","file5":"1345087689","file3":"1345087679"},"map_files_photo_id_array":[{"photo_id":"1345087689","filename":"file5"},{"photo_id":"1345087673","filename":"file2"},{"photo_id":"1345087684","filename":"file4"},{"photo_id":"1345087669","filename":"file1"},{"photo_id":"1345087663","filename":"file0"},{"photo_id":"1345087679","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345087684":["hashtag1","hashtag2"]},{"1345087663":["hashtag1","hashtag2"]},{"1345087669":["hashtag1","hashtag2"]},{"1345087689":["hashtag1","hashtag2"]},{"1345087679":["hashtag1","hashtag2"]},{"1345087673":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345087684, 1345087663, 1345087669, 1345087689, 1345087679, 1345087673)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.85477566719055 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:29:32.020054
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_54_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_48_6159.jpg', 2), ('/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_42_6184.jpg', 2), ('/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_35_6187.jpg', 2), ('/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_29_6154.jpg', 2), ('/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_23_6168.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_54_6123.jpg', '/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_48_6159.jpg', '/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_42_6184.jpg', '/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_35_6187.jpg', '/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_29_6154.jpg', '/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_23_6168.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_54_6123.jpg
/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_48_6159.jpg
/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_42_6184.jpg
/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_35_6187.jpg
/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_29_6154.jpg
/home/nano/Desktop/images/18032025/11/29/image_18032025_11_29_23_6168.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345087904","1345087936","1345087948","1345087896","1345087881","1345087944"],"photo_ids_order":["1345087881","1345087896","1345087904","1345087936","1345087944","1345087948"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f047df7e35b1ef86d68f2b95c7f2f6d7.jpg","text":"TemporaryFile(/tmp/multipartBody9108218539013380428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293832452,"filename":"image_18032025_11_29_42_6184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62a514d85a61a6edf5e6e9bcb2bba570.jpg","text":"TemporaryFile(/tmp/multipartBody5207554655314427260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293832452,"filename":"image_18032025_11_29_35_6187.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2538ecc7a8040585f9d6d14c051056e2.jpg","text":"TemporaryFile(/tmp/multipartBody2547793265112119711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293832452,"filename":"image_18032025_11_29_23_6168.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c9e6a0ba347bd1f853c03e857e73a98.jpg","text":"TemporaryFile(/tmp/multipartBody7340042213851611501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293832452,"filename":"image_18032025_11_29_48_6159.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19cf4a1cd89aaf8b90949d3c6ccbc763.jpg","text":"TemporaryFile(/tmp/multipartBody5878847951764689905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293832452,"filename":"image_18032025_11_29_54_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be267e009566bc49d69e3f4f653a5eb1.jpg","text":"TemporaryFile(/tmp/multipartBody656539395383286626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293832452,"filename":"image_18032025_11_29_29_6154.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345087904","file1":"1345087896","file0":"1345087881","file4":"1345087944","file5":"1345087948","file3":"1345087936"},"map_files_photo_id_array":[{"photo_id":"1345087948","filename":"file5"},{"photo_id":"1345087904","filename":"file2"},{"photo_id":"1345087944","filename":"file4"},{"photo_id":"1345087896","filename":"file1"},{"photo_id":"1345087881","filename":"file0"},{"photo_id":"1345087936","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345087904":["hashtag1","hashtag2"]},{"1345087936":["hashtag1","hashtag2"]},{"1345087948":["hashtag1","hashtag2"]},{"1345087896":["hashtag1","hashtag2"]},{"1345087881":["hashtag1","hashtag2"]},{"1345087944":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345087904, 1345087936, 1345087948, 1345087896, 1345087881, 1345087944)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.217060565948486 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:30:32.147699
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_53_5075.jpg', 2), ('/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_48_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_42_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_36_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_30_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_23_6084.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_53_5075.jpg', '/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_48_6083.jpg', '/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_42_6088.jpg', '/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_36_6086.jpg', '/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_30_6076.jpg', '/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_23_6084.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_53_5075.jpg
/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_48_6083.jpg
/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_42_6088.jpg
/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_36_6086.jpg
/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_30_6076.jpg
/home/nano/Desktop/images/18032025/11/30/image_18032025_11_30_23_6084.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088006","1345087972","1345087966","1345088002","1345087995","1345087980"],"photo_ids_order":["1345087966","1345087972","1345087980","1345087995","1345088002","1345088006"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/59a19997ec1d828d4c2bcc13036885ff.jpg","text":"TemporaryFile(/tmp/multipartBody2972914136131450492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293892572,"filename":"image_18032025_11_30_23_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/218719712692730b2870881984d8d781.jpg","text":"TemporaryFile(/tmp/multipartBody4872613001209718355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293892572,"filename":"image_18032025_11_30_48_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/575b349fc7fcfd53011f9076895946fd.jpg","text":"TemporaryFile(/tmp/multipartBody3734186874885594413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293892572,"filename":"image_18032025_11_30_53_5075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d55955626a2454aedf0f4df1ab12920d.jpg","text":"TemporaryFile(/tmp/multipartBody7833284499631016119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293892572,"filename":"image_18032025_11_30_30_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a534cd0893b19aeee912be9ada5b939c.jpg","text":"TemporaryFile(/tmp/multipartBody6246757508398222994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293892572,"filename":"image_18032025_11_30_36_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aae3e3c82516b51cca65c466834ac5e9.jpg","text":"TemporaryFile(/tmp/multipartBody5343865966468183912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293892572,"filename":"image_18032025_11_30_42_6088.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345087980","file1":"1345087972","file0":"1345087966","file4":"1345088002","file5":"1345088006","file3":"1345087995"},"map_files_photo_id_array":[{"photo_id":"1345088006","filename":"file5"},{"photo_id":"1345087980","filename":"file2"},{"photo_id":"1345088002","filename":"file4"},{"photo_id":"1345087972","filename":"file1"},{"photo_id":"1345087966","filename":"file0"},{"photo_id":"1345087995","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088006":["hashtag1","hashtag2"]},{"1345087972":["hashtag1","hashtag2"]},{"1345087966":["hashtag1","hashtag2"]},{"1345088002":["hashtag1","hashtag2"]},{"1345087995":["hashtag1","hashtag2"]},{"1345087980":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088006, 1345087972, 1345087966, 1345088002, 1345087995, 1345087980)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.25196695327759 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:31:32.288781
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_54_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_48_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_29_6073.jpg', 2), ('/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_23_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_17_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_11_6105.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_54_6069.jpg', '/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_48_6074.jpg', '/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_29_6073.jpg', '/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_23_6081.jpg', '/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_17_6113.jpg', '/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_11_6105.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_54_6069.jpg
/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_48_6074.jpg
/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_29_6073.jpg
/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_23_6081.jpg
/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_17_6113.jpg
/home/nano/Desktop/images/18032025/11/31/image_18032025_11_31_11_6105.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088041","1345088050","1345088055","1345088037","1345088045","1345088033"],"photo_ids_order":["1345088033","1345088037","1345088041","1345088045","1345088050","1345088055"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/33c8b7865482292b1861c98a5249c95a.jpg","text":"TemporaryFile(/tmp/multipartBody6056015929551846412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293952698,"filename":"image_18032025_11_31_29_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c00cc04c26e8c64f59a9b7d4de682c30.jpg","text":"TemporaryFile(/tmp/multipartBody1421425500802113812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293952698,"filename":"image_18032025_11_31_17_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af757a2ad7c1aecd1754d20dd9ef0a2d.jpg","text":"TemporaryFile(/tmp/multipartBody2139454560387931981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293952698,"filename":"image_18032025_11_31_11_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fcca1789b78eff17f03f428d2b0c39eb.jpg","text":"TemporaryFile(/tmp/multipartBody573899298168664791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293952698,"filename":"image_18032025_11_31_48_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c2bbde1cc81ab7ca5cb4d357a71d0b35.jpg","text":"TemporaryFile(/tmp/multipartBody7024083743164515499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293952698,"filename":"image_18032025_11_31_23_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9aa99542e8267a0d87c7f345859d6ae7.jpg","text":"TemporaryFile(/tmp/multipartBody2591823909505275113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742293952698,"filename":"image_18032025_11_31_54_6069.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088041","file1":"1345088037","file0":"1345088033","file4":"1345088050","file5":"1345088055","file3":"1345088045"},"map_files_photo_id_array":[{"photo_id":"1345088055","filename":"file5"},{"photo_id":"1345088041","filename":"file2"},{"photo_id":"1345088050","filename":"file4"},{"photo_id":"1345088037","filename":"file1"},{"photo_id":"1345088033","filename":"file0"},{"photo_id":"1345088045","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088041":["hashtag1","hashtag2"]},{"1345088050":["hashtag1","hashtag2"]},{"1345088055":["hashtag1","hashtag2"]},{"1345088037":["hashtag1","hashtag2"]},{"1345088045":["hashtag1","hashtag2"]},{"1345088033":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088041, 1345088050, 1345088055, 1345088037, 1345088045, 1345088033)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.871556282043457 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:32:32.391795
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_54_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_48_6068.jpg', 2), ('/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_42_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_35_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_29_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_23_6096.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_54_6102.jpg', '/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_48_6068.jpg', '/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_42_6094.jpg', '/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_35_6072.jpg', '/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_29_6072.jpg', '/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_23_6096.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_54_6102.jpg
/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_48_6068.jpg
/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_42_6094.jpg
/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_35_6072.jpg
/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_29_6072.jpg
/home/nano/Desktop/images/18032025/11/32/image_18032025_11_32_23_6096.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088095","1345088089","1345088085","1345088076","1345088093","1345088081"],"photo_ids_order":["1345088076","1345088081","1345088085","1345088089","1345088093","1345088095"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28ec0184cb29463c2c532fa265f0e1b4.jpg","text":"TemporaryFile(/tmp/multipartBody3459255691856314925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294012855,"filename":"image_18032025_11_32_23_6096.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/acb4a7a04dc5535e0cdfc986f395a8ae.jpg","text":"TemporaryFile(/tmp/multipartBody2017029654288157986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294012855,"filename":"image_18032025_11_32_35_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9c88d56b722a4915cd4f984d18879b16.jpg","text":"TemporaryFile(/tmp/multipartBody513174385929946031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294012855,"filename":"image_18032025_11_32_42_6094.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c7682e5b1572db1ee70f8449f5492474.jpg","text":"TemporaryFile(/tmp/multipartBody8701936113912196488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294012855,"filename":"image_18032025_11_32_54_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bcc48f2ea39ca253ecaa85cd69626b99.jpg","text":"TemporaryFile(/tmp/multipartBody5364985135697335981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294012855,"filename":"image_18032025_11_32_29_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb0afb6d6ba55fbee2ab1885436891d7.jpg","text":"TemporaryFile(/tmp/multipartBody6035258999995437367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294012855,"filename":"image_18032025_11_32_48_6068.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088085","file1":"1345088081","file0":"1345088076","file4":"1345088093","file5":"1345088095","file3":"1345088089"},"map_files_photo_id_array":[{"photo_id":"1345088095","filename":"file5"},{"photo_id":"1345088085","filename":"file2"},{"photo_id":"1345088093","filename":"file4"},{"photo_id":"1345088081","filename":"file1"},{"photo_id":"1345088076","filename":"file0"},{"photo_id":"1345088089","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088095":["hashtag1","hashtag2"]},{"1345088089":["hashtag1","hashtag2"]},{"1345088085":["hashtag1","hashtag2"]},{"1345088076":["hashtag1","hashtag2"]},{"1345088093":["hashtag1","hashtag2"]},{"1345088081":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088095, 1345088089, 1345088085, 1345088076, 1345088093, 1345088081)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.72678828239441 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:33:32.509807
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_53_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_47_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_41_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_35_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_29_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_23_6071.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_53_6071.jpg', '/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_47_6067.jpg', '/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_41_6069.jpg', '/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_35_6067.jpg', '/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_29_6076.jpg', '/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_23_6071.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_53_6071.jpg
/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_47_6067.jpg
/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_41_6069.jpg
/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_35_6067.jpg
/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_29_6076.jpg
/home/nano/Desktop/images/18032025/11/33/image_18032025_11_33_23_6071.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088120","1345088122","1345088131","1345088125","1345088128","1345088118"],"photo_ids_order":["1345088118","1345088120","1345088122","1345088125","1345088128","1345088131"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7b7d4d7d35237756dfd343219fce239c.jpg","text":"TemporaryFile(/tmp/multipartBody206210201153899799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294072957,"filename":"image_18032025_11_33_47_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/814ace00db8c83e0b9d2f1e9c1fa4a54.jpg","text":"TemporaryFile(/tmp/multipartBody5137100326817310209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294072957,"filename":"image_18032025_11_33_41_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3c642dd5e91ad6ef1b68a108b713bb93.jpg","text":"TemporaryFile(/tmp/multipartBody5654550610980759932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294072957,"filename":"image_18032025_11_33_23_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ee2d998ed3411cbb64bbd11d46daf264.jpg","text":"TemporaryFile(/tmp/multipartBody5792490870375213594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294072957,"filename":"image_18032025_11_33_35_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f4c6b107d6ace5259502beeefff0661c.jpg","text":"TemporaryFile(/tmp/multipartBody873775953196164530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294072957,"filename":"image_18032025_11_33_29_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d573657ddd909717d2342ab670e1114.jpg","text":"TemporaryFile(/tmp/multipartBody8457413979683855454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294072957,"filename":"image_18032025_11_33_53_6071.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088122","file1":"1345088120","file0":"1345088118","file4":"1345088128","file5":"1345088131","file3":"1345088125"},"map_files_photo_id_array":[{"photo_id":"1345088131","filename":"file5"},{"photo_id":"1345088122","filename":"file2"},{"photo_id":"1345088128","filename":"file4"},{"photo_id":"1345088120","filename":"file1"},{"photo_id":"1345088118","filename":"file0"},{"photo_id":"1345088125","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088120":["hashtag1","hashtag2"]},{"1345088122":["hashtag1","hashtag2"]},{"1345088131":["hashtag1","hashtag2"]},{"1345088125":["hashtag1","hashtag2"]},{"1345088128":["hashtag1","hashtag2"]},{"1345088118":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088120, 1345088122, 1345088131, 1345088125, 1345088128, 1345088118)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.328482627868652 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:34:32.647239
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_54_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_48_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_42_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_36_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_30_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_23_6058.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_54_6040.jpg', '/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_48_6069.jpg', '/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_42_6105.jpg', '/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_36_6079.jpg', '/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_30_6067.jpg', '/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_23_6058.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_54_6040.jpg
/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_48_6069.jpg
/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_42_6105.jpg
/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_36_6079.jpg
/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_30_6067.jpg
/home/nano/Desktop/images/18032025/11/34/image_18032025_11_34_23_6058.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088176","1345088164","1345088178","1345088172","1345088168","1345088159"],"photo_ids_order":["1345088159","1345088164","1345088168","1345088172","1345088176","1345088178"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/550c7c24148099e2357fca340bee1fb7.jpg","text":"TemporaryFile(/tmp/multipartBody5069455162361544646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294133050,"filename":"image_18032025_11_34_30_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/501a7a41bb90bd32c3b0767b1cbd527a.jpg","text":"TemporaryFile(/tmp/multipartBody7863232152415094806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294133050,"filename":"image_18032025_11_34_48_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/68f5c8cf3cae961c244aeb4d16be49e5.jpg","text":"TemporaryFile(/tmp/multipartBody5103285243238680198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294133050,"filename":"image_18032025_11_34_23_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0a494697cc91ba6980390a55c253a4fe.jpg","text":"TemporaryFile(/tmp/multipartBody8764457655850140105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294133050,"filename":"image_18032025_11_34_36_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/03cd8144de0f0a751826254cac9804c4.jpg","text":"TemporaryFile(/tmp/multipartBody81700875413711895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294133050,"filename":"image_18032025_11_34_42_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6fd087b723b98589c6d3250969e0586.jpg","text":"TemporaryFile(/tmp/multipartBody3523551297513628785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294133050,"filename":"image_18032025_11_34_54_6040.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088168","file1":"1345088164","file0":"1345088159","file4":"1345088176","file5":"1345088178","file3":"1345088172"},"map_files_photo_id_array":[{"photo_id":"1345088178","filename":"file5"},{"photo_id":"1345088168","filename":"file2"},{"photo_id":"1345088176","filename":"file4"},{"photo_id":"1345088164","filename":"file1"},{"photo_id":"1345088159","filename":"file0"},{"photo_id":"1345088172","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088176":["hashtag1","hashtag2"]},{"1345088164":["hashtag1","hashtag2"]},{"1345088178":["hashtag1","hashtag2"]},{"1345088172":["hashtag1","hashtag2"]},{"1345088168":["hashtag1","hashtag2"]},{"1345088159":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088176, 1345088164, 1345088178, 1345088172, 1345088168, 1345088159)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.89573359489441 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:35:32.738669
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_53_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_47_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_41_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_35_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_29_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_23_6059.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_53_6050.jpg', '/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_47_6054.jpg', '/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_41_6061.jpg', '/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_35_6067.jpg', '/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_29_6063.jpg', '/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_23_6059.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_53_6050.jpg
/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_47_6054.jpg
/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_41_6061.jpg
/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_35_6067.jpg
/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_29_6063.jpg
/home/nano/Desktop/images/18032025/11/35/image_18032025_11_35_23_6059.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088215","1345088196","1345088200","1345088220","1345088205","1345088210"],"photo_ids_order":["1345088196","1345088200","1345088205","1345088210","1345088215","1345088220"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd3b9de2e42bc1c079df7da1dcbeb6df.jpg","text":"TemporaryFile(/tmp/multipartBody5922070622447471931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294193159,"filename":"image_18032025_11_35_29_6063.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/149848877f451587ca69a00819feaf2c.jpg","text":"TemporaryFile(/tmp/multipartBody2870147267864113528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294193159,"filename":"image_18032025_11_35_53_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/61920ed21498d1f71ea47347ac46e6b6.jpg","text":"TemporaryFile(/tmp/multipartBody7996548810691464954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294193159,"filename":"image_18032025_11_35_47_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fdd78bf7b81796ce7b4bb2008001c37f.jpg","text":"TemporaryFile(/tmp/multipartBody8102096401614939181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294193159,"filename":"image_18032025_11_35_23_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1c111e5833fe88474e0cfd9c3cd8c138.jpg","text":"TemporaryFile(/tmp/multipartBody3113600721748073295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294193159,"filename":"image_18032025_11_35_41_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/53e6654caf21a391140beb4b84833931.jpg","text":"TemporaryFile(/tmp/multipartBody3999363937055155469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294193159,"filename":"image_18032025_11_35_35_6067.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088205","file1":"1345088200","file0":"1345088196","file4":"1345088215","file5":"1345088220","file3":"1345088210"},"map_files_photo_id_array":[{"photo_id":"1345088220","filename":"file5"},{"photo_id":"1345088205","filename":"file2"},{"photo_id":"1345088215","filename":"file4"},{"photo_id":"1345088200","filename":"file1"},{"photo_id":"1345088196","filename":"file0"},{"photo_id":"1345088210","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088215":["hashtag1","hashtag2"]},{"1345088196":["hashtag1","hashtag2"]},{"1345088200":["hashtag1","hashtag2"]},{"1345088220":["hashtag1","hashtag2"]},{"1345088205":["hashtag1","hashtag2"]},{"1345088210":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088215, 1345088196, 1345088200, 1345088220, 1345088205, 1345088210)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.60447597503662 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:36:31.922195
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_53_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_47_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_41_6037.jpg', 2), ('/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_35_5076.jpg', 2), ('/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_30_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_24_6063.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_53_6061.jpg', '/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_47_6050.jpg', '/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_41_6037.jpg', '/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_35_5076.jpg', '/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_30_6060.jpg', '/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_24_6063.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_53_6061.jpg
/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_47_6050.jpg
/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_41_6037.jpg
/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_35_5076.jpg
/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_30_6060.jpg
/home/nano/Desktop/images/18032025/11/36/image_18032025_11_36_24_6063.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088254","1345088236","1345088245","1345088250","1345088232","1345088240"],"photo_ids_order":["1345088232","1345088236","1345088240","1345088245","1345088250","1345088254"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bb0be8d725bd35cb8e6fc7b54c30bd2e.jpg","text":"TemporaryFile(/tmp/multipartBody4424932106212032093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294252351,"filename":"image_18032025_11_36_24_6063.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/536ad15a5231fe529659575a4ac42ca8.jpg","text":"TemporaryFile(/tmp/multipartBody5512824093504128743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294252351,"filename":"image_18032025_11_36_47_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a051917b5f5bef6a6ee7b9e8c10645ea.jpg","text":"TemporaryFile(/tmp/multipartBody929244839905932483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294252351,"filename":"image_18032025_11_36_35_5076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/376bcaa149b48a0d4ec671da9cba0baf.jpg","text":"TemporaryFile(/tmp/multipartBody6243939951310617823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294252351,"filename":"image_18032025_11_36_30_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c96bdee1dd0bbe83c0e03840161b1f03.jpg","text":"TemporaryFile(/tmp/multipartBody4298599750595349329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294252351,"filename":"image_18032025_11_36_53_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/073d408898a1c9caee8cfa6dc3080560.jpg","text":"TemporaryFile(/tmp/multipartBody2475997584005461392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294252351,"filename":"image_18032025_11_36_41_6037.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088240","file1":"1345088236","file0":"1345088232","file4":"1345088250","file5":"1345088254","file3":"1345088245"},"map_files_photo_id_array":[{"photo_id":"1345088254","filename":"file5"},{"photo_id":"1345088240","filename":"file2"},{"photo_id":"1345088250","filename":"file4"},{"photo_id":"1345088236","filename":"file1"},{"photo_id":"1345088232","filename":"file0"},{"photo_id":"1345088245","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088254":["hashtag1","hashtag2"]},{"1345088236":["hashtag1","hashtag2"]},{"1345088245":["hashtag1","hashtag2"]},{"1345088250":["hashtag1","hashtag2"]},{"1345088232":["hashtag1","hashtag2"]},{"1345088240":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088254, 1345088236, 1345088245, 1345088250, 1345088232, 1345088240)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.093443393707275 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:37:32.027993
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_53_5066.jpg', 2), ('/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_48_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_42_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_36_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_30_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_23_6071.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_53_5066.jpg', '/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_48_6105.jpg', '/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_42_6071.jpg', '/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_36_6072.jpg', '/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_30_6070.jpg', '/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_23_6071.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_53_5066.jpg
/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_48_6105.jpg
/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_42_6071.jpg
/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_36_6072.jpg
/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_30_6070.jpg
/home/nano/Desktop/images/18032025/11/37/image_18032025_11_37_23_6071.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088300","1345088275","1345088289","1345088280","1345088285","1345088297"],"photo_ids_order":["1345088275","1345088280","1345088285","1345088289","1345088297","1345088300"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe35a99fae054b512ed85eb11eab2af8.jpg","text":"TemporaryFile(/tmp/multipartBody6251567931262913762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294312441,"filename":"image_18032025_11_37_23_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/54bd1642f267f7a90a902ea849bd4f9b.jpg","text":"TemporaryFile(/tmp/multipartBody5991532625217159638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294312441,"filename":"image_18032025_11_37_53_5066.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d2d91394d4576ec7f884f71c729b8a66.jpg","text":"TemporaryFile(/tmp/multipartBody9116064595868042036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294312441,"filename":"image_18032025_11_37_36_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ed2e7bc957aaca5f6a02dcb714155a4d.jpg","text":"TemporaryFile(/tmp/multipartBody8028964541529353447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294312441,"filename":"image_18032025_11_37_48_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a4fccdc93b02ceed4482277dab28f68.jpg","text":"TemporaryFile(/tmp/multipartBody52292352993134057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294312441,"filename":"image_18032025_11_37_42_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9775c4211e9e2d717d1eff6d63ebf183.jpg","text":"TemporaryFile(/tmp/multipartBody609064002852700383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294312441,"filename":"image_18032025_11_37_30_6070.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088285","file1":"1345088280","file0":"1345088275","file4":"1345088297","file5":"1345088300","file3":"1345088289"},"map_files_photo_id_array":[{"photo_id":"1345088300","filename":"file5"},{"photo_id":"1345088285","filename":"file2"},{"photo_id":"1345088297","filename":"file4"},{"photo_id":"1345088280","filename":"file1"},{"photo_id":"1345088275","filename":"file0"},{"photo_id":"1345088289","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088300":["hashtag1","hashtag2"]},{"1345088275":["hashtag1","hashtag2"]},{"1345088289":["hashtag1","hashtag2"]},{"1345088280":["hashtag1","hashtag2"]},{"1345088285":["hashtag1","hashtag2"]},{"1345088297":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088300, 1345088275, 1345088289, 1345088280, 1345088285, 1345088297)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.448107957839966 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:38:32.178226
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_54_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_48_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_41_6075.jpg', 2), ('/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_35_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_29_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_23_6070.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_54_6072.jpg', '/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_48_6071.jpg', '/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_41_6075.jpg', '/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_35_6072.jpg', '/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_29_6070.jpg', '/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_23_6070.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_54_6072.jpg
/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_48_6071.jpg
/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_41_6075.jpg
/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_35_6072.jpg
/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_29_6070.jpg
/home/nano/Desktop/images/18032025/11/38/image_18032025_11_38_23_6070.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088333","1345088329","1345088317","1345088325","1345088322","1345088336"],"photo_ids_order":["1345088317","1345088322","1345088325","1345088329","1345088333","1345088336"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6169791da2692bd54e7e268371e58f2c.jpg","text":"TemporaryFile(/tmp/multipartBody2802079794491374532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294372645,"filename":"image_18032025_11_38_29_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c0f89506fcd393f2b6fe6932e86edff7.jpg","text":"TemporaryFile(/tmp/multipartBody3113405722900358200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294372645,"filename":"image_18032025_11_38_35_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1fd379fd1c605629f6d3ecc6bd730c74.jpg","text":"TemporaryFile(/tmp/multipartBody5181789085774265129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294372645,"filename":"image_18032025_11_38_54_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0f9e43b6fec1af96153becd1d9e28e2b.jpg","text":"TemporaryFile(/tmp/multipartBody7231260259511818115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294372645,"filename":"image_18032025_11_38_41_6075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fed5952a9664e142ffdf303f420cbc00.jpg","text":"TemporaryFile(/tmp/multipartBody5821492309560852739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294372645,"filename":"image_18032025_11_38_48_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4b2fb2012840912db6d447116fc0fdc3.jpg","text":"TemporaryFile(/tmp/multipartBody4911432705593233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294372645,"filename":"image_18032025_11_38_23_6070.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088325","file1":"1345088322","file0":"1345088317","file4":"1345088333","file5":"1345088336","file3":"1345088329"},"map_files_photo_id_array":[{"photo_id":"1345088336","filename":"file5"},{"photo_id":"1345088325","filename":"file2"},{"photo_id":"1345088333","filename":"file4"},{"photo_id":"1345088322","filename":"file1"},{"photo_id":"1345088317","filename":"file0"},{"photo_id":"1345088329","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088333":["hashtag1","hashtag2"]},{"1345088329":["hashtag1","hashtag2"]},{"1345088317":["hashtag1","hashtag2"]},{"1345088325":["hashtag1","hashtag2"]},{"1345088322":["hashtag1","hashtag2"]},{"1345088336":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088333, 1345088329, 1345088317, 1345088325, 1345088322, 1345088336)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.607211112976074 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:39:32.323018
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_53_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_47_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_41_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_35_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_29_6085.jpg', 2), ('/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_23_6081.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_53_6084.jpg', '/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_47_6077.jpg', '/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_41_6077.jpg', '/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_35_6074.jpg', '/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_29_6085.jpg', '/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_23_6081.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_53_6084.jpg
/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_47_6077.jpg
/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_41_6077.jpg
/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_35_6074.jpg
/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_29_6085.jpg
/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_23_6081.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088395","1345088392","1345088353","1345088362","1345088375","1345088357"],"photo_ids_order":["1345088353","1345088357","1345088362","1345088375","1345088392","1345088395"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/04dd5a4ca1f2622f145af9c2886b0770.jpg","text":"TemporaryFile(/tmp/multipartBody8884229286803614700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294432751,"filename":"image_18032025_11_39_23_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ebef36bdb107b136acd3c1c2f00ee3fb.jpg","text":"TemporaryFile(/tmp/multipartBody1213287601689065013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294432751,"filename":"image_18032025_11_39_29_6085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/37e7efa33fea86cc605c2b066ab3b414.jpg","text":"TemporaryFile(/tmp/multipartBody7876012416902816377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294432751,"filename":"image_18032025_11_39_53_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3c84b8a72ac8aaec2ba438965181e38f.jpg","text":"TemporaryFile(/tmp/multipartBody3464069755273412888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294432751,"filename":"image_18032025_11_39_41_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bcfd245e918574bacc21cd19c29cf56f.jpg","text":"TemporaryFile(/tmp/multipartBody8947829401178527545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294432751,"filename":"image_18032025_11_39_35_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/83742593540298cbd2a9b9757af0ee33.jpg","text":"TemporaryFile(/tmp/multipartBody6475110611994008599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294432751,"filename":"image_18032025_11_39_47_6077.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088362","file1":"1345088357","file0":"1345088353","file4":"1345088392","file5":"1345088395","file3":"1345088375"},"map_files_photo_id_array":[{"photo_id":"1345088395","filename":"file5"},{"photo_id":"1345088362","filename":"file2"},{"photo_id":"1345088392","filename":"file4"},{"photo_id":"1345088357","filename":"file1"},{"photo_id":"1345088353","filename":"file0"},{"photo_id":"1345088375","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088395":["hashtag1","hashtag2"]},{"1345088392":["hashtag1","hashtag2"]},{"1345088353":["hashtag1","hashtag2"]},{"1345088362":["hashtag1","hashtag2"]},{"1345088375":["hashtag1","hashtag2"]},{"1345088357":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088395, 1345088392, 1345088353, 1345088362, 1345088375, 1345088357)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.004434823989868 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:40:32.474912
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_53_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_47_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_41_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_35_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_29_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_23_6079.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_53_6074.jpg', '/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_47_6076.jpg', '/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_41_6083.jpg', '/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_35_6081.jpg', '/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_29_6081.jpg', '/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_23_6079.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_53_6074.jpg
/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_47_6076.jpg
/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_41_6083.jpg
/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_35_6081.jpg
/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_29_6081.jpg
/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_23_6079.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088428","1345088443","1345088433","1345088447","1345088420","1345088438"],"photo_ids_order":["1345088420","1345088428","1345088433","1345088438","1345088443","1345088447"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8950bbc7923b014d517e81cc6a4ac1c1.jpg","text":"TemporaryFile(/tmp/multipartBody185492170057049713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294492893,"filename":"image_18032025_11_40_47_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1caa74fc58c069c5dafb6f9ad6f9ce80.jpg","text":"TemporaryFile(/tmp/multipartBody2570819688337067446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294492893,"filename":"image_18032025_11_40_29_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f35a059a60eef13d4bd69090e16315a.jpg","text":"TemporaryFile(/tmp/multipartBody5217722018022379456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294492893,"filename":"image_18032025_11_40_41_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/17bd93f6c033d46ee67df3519f034e51.jpg","text":"TemporaryFile(/tmp/multipartBody7946169369785888400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294492893,"filename":"image_18032025_11_40_23_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c0f38cafb2e35bb578a029fe54a13ee.jpg","text":"TemporaryFile(/tmp/multipartBody7581113514405038047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294492893,"filename":"image_18032025_11_40_53_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ae6c082394b0d654a84af5f4948ee35.jpg","text":"TemporaryFile(/tmp/multipartBody434922792834500289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294492893,"filename":"image_18032025_11_40_35_6081.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088433","file1":"1345088428","file0":"1345088420","file4":"1345088443","file5":"1345088447","file3":"1345088438"},"map_files_photo_id_array":[{"photo_id":"1345088447","filename":"file5"},{"photo_id":"1345088433","filename":"file2"},{"photo_id":"1345088443","filename":"file4"},{"photo_id":"1345088428","filename":"file1"},{"photo_id":"1345088420","filename":"file0"},{"photo_id":"1345088438","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088428":["hashtag1","hashtag2"]},{"1345088443":["hashtag1","hashtag2"]},{"1345088433":["hashtag1","hashtag2"]},{"1345088447":["hashtag1","hashtag2"]},{"1345088420":["hashtag1","hashtag2"]},{"1345088438":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088428, 1345088443, 1345088433, 1345088447, 1345088420, 1345088438)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.511603116989136 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:41:03.171658
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_17_5071.jpg', 2), ('/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_12_6112.jpg', 2), ('/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_06_6110.jpg', 2), ('/home/nano/Desktop/images/18032025/11/39/image_18032025_11_40_00_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_17_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_11_5083.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_17_5071.jpg', '/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_12_6112.jpg', '/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_06_6110.jpg', '/home/nano/Desktop/images/18032025/11/39/image_18032025_11_40_00_6082.jpg', '/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_17_6079.jpg', '/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_11_5083.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_17_5071.jpg
/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_12_6112.jpg
/home/nano/Desktop/images/18032025/11/40/image_18032025_11_40_06_6110.jpg
/home/nano/Desktop/images/18032025/11/39/image_18032025_11_40_00_6082.jpg
/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_17_6079.jpg
/home/nano/Desktop/images/18032025/11/39/image_18032025_11_39_11_5083.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088469","1345088460","1345088454","1345088463","1345088457","1345088466"],"photo_ids_order":["1345088454","1345088457","1345088460","1345088463","1345088466","1345088469"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3b87bdc57f6d7f16f0701dfdfd3191a.jpg","text":"TemporaryFile(/tmp/multipartBody8013068896955287242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294523754,"filename":"image_18032025_11_39_11_5083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/588f12a771cc2f63aa6a409912e4c340.jpg","text":"TemporaryFile(/tmp/multipartBody8041461772854938232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294523754,"filename":"image_18032025_11_40_06_6110.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3b9127da8a1418747d0e7a85d113ba32.jpg","text":"TemporaryFile(/tmp/multipartBody6586716345331273434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294523754,"filename":"image_18032025_11_40_17_5071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f4091942dcc8781518f7329c78d261c9.jpg","text":"TemporaryFile(/tmp/multipartBody38089118933262550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294523754,"filename":"image_18032025_11_40_00_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e92201824c070cc42dafb1a1b5c8560.jpg","text":"TemporaryFile(/tmp/multipartBody5259050803494244262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294523754,"filename":"image_18032025_11_40_12_6112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6587000562019700151714fa027aa0e3.jpg","text":"TemporaryFile(/tmp/multipartBody1152504050514081640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294523754,"filename":"image_18032025_11_39_17_6079.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088460","file1":"1345088457","file0":"1345088454","file4":"1345088466","file5":"1345088469","file3":"1345088463"},"map_files_photo_id_array":[{"photo_id":"1345088469","filename":"file5"},{"photo_id":"1345088460","filename":"file2"},{"photo_id":"1345088466","filename":"file4"},{"photo_id":"1345088457","filename":"file1"},{"photo_id":"1345088454","filename":"file0"},{"photo_id":"1345088463","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088469":["hashtag1","hashtag2"]},{"1345088460":["hashtag1","hashtag2"]},{"1345088454":["hashtag1","hashtag2"]},{"1345088463":["hashtag1","hashtag2"]},{"1345088457":["hashtag1","hashtag2"]},{"1345088466":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088469, 1345088460, 1345088454, 1345088463, 1345088457, 1345088466)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.69517731666565 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:42:02.446742
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_53_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_47_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_41_6110.jpg', 2), ('/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_35_6085.jpg', 2), ('/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_29_5079.jpg', 2), ('/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_24_6082.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_53_6079.jpg', '/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_47_6102.jpg', '/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_41_6110.jpg', '/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_35_6085.jpg', '/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_29_5079.jpg', '/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_24_6082.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_53_6079.jpg
/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_47_6102.jpg
/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_41_6110.jpg
/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_35_6085.jpg
/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_29_5079.jpg
/home/nano/Desktop/images/18032025/11/41/image_18032025_11_41_24_6082.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088507","1345088503","1345088505","1345088498","1345088495","1345088501"],"photo_ids_order":["1345088495","1345088498","1345088501","1345088503","1345088505","1345088507"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/72fcb9d26126230b25676c49a5fbdf5d.jpg","text":"TemporaryFile(/tmp/multipartBody8742119982799683290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294582900,"filename":"image_18032025_11_41_24_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/683577d572b72325bf133a290f66a1b1.jpg","text":"TemporaryFile(/tmp/multipartBody1888085507975659477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294582900,"filename":"image_18032025_11_41_35_6085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a666f964119342cd2c72c745b7fe0a9c.jpg","text":"TemporaryFile(/tmp/multipartBody6897448073512646734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294582900,"filename":"image_18032025_11_41_29_5079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/76519aed0bdadf8819b295b8137f92ec.jpg","text":"TemporaryFile(/tmp/multipartBody2290134953806137039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294582900,"filename":"image_18032025_11_41_47_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac312f33c08dfc58bbe92773b72a703c.jpg","text":"TemporaryFile(/tmp/multipartBody6499114198139341983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294582900,"filename":"image_18032025_11_41_53_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ffd90186d3aca84a4acf156ef9d6cad8.jpg","text":"TemporaryFile(/tmp/multipartBody3303453913296864937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294582900,"filename":"image_18032025_11_41_41_6110.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088501","file1":"1345088498","file0":"1345088495","file4":"1345088505","file5":"1345088507","file3":"1345088503"},"map_files_photo_id_array":[{"photo_id":"1345088507","filename":"file5"},{"photo_id":"1345088501","filename":"file2"},{"photo_id":"1345088505","filename":"file4"},{"photo_id":"1345088498","filename":"file1"},{"photo_id":"1345088495","filename":"file0"},{"photo_id":"1345088503","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088507":["hashtag1","hashtag2"]},{"1345088503":["hashtag1","hashtag2"]},{"1345088505":["hashtag1","hashtag2"]},{"1345088498":["hashtag1","hashtag2"]},{"1345088495":["hashtag1","hashtag2"]},{"1345088501":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088507, 1345088503, 1345088505, 1345088498, 1345088495, 1345088501)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.21311593055725 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:43:02.442017
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_53_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_47_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_41_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_35_5111.jpg', 2), ('/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_30_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_24_6083.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_53_6083.jpg', '/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_47_6086.jpg', '/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_41_6088.jpg', '/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_35_5111.jpg', '/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_30_6086.jpg', '/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_24_6083.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_53_6083.jpg
/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_47_6086.jpg
/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_41_6088.jpg
/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_35_5111.jpg
/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_30_6086.jpg
/home/nano/Desktop/images/18032025/11/42/image_18032025_11_42_24_6083.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088538","1345088552","1345088546","1345088549","1345088540","1345088543"],"photo_ids_order":["1345088538","1345088540","1345088543","1345088546","1345088549","1345088552"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8896c21969d8d283c6fe38000765dd5.jpg","text":"TemporaryFile(/tmp/multipartBody7807617819195342061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294642902,"filename":"image_18032025_11_42_53_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0b69919ee01c53eb7063deb6585f554.jpg","text":"TemporaryFile(/tmp/multipartBody2166580543978894090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294642902,"filename":"image_18032025_11_42_24_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b122b3bc1f7b2e0ee70572b5fbd1de19.jpg","text":"TemporaryFile(/tmp/multipartBody2364147462009339709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294642902,"filename":"image_18032025_11_42_35_5111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/274ef5b0c5712b55180357b7638413a1.jpg","text":"TemporaryFile(/tmp/multipartBody8288534608782961061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294642902,"filename":"image_18032025_11_42_30_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/587d9f10caf9850d412ca88e799beda8.jpg","text":"TemporaryFile(/tmp/multipartBody369491258717583828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294642902,"filename":"image_18032025_11_42_47_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db6726938f43e22ac0b0caa71bb547f1.jpg","text":"TemporaryFile(/tmp/multipartBody5278456532106360647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294642902,"filename":"image_18032025_11_42_41_6088.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088543","file1":"1345088540","file0":"1345088538","file4":"1345088549","file5":"1345088552","file3":"1345088546"},"map_files_photo_id_array":[{"photo_id":"1345088552","filename":"file5"},{"photo_id":"1345088543","filename":"file2"},{"photo_id":"1345088549","filename":"file4"},{"photo_id":"1345088540","filename":"file1"},{"photo_id":"1345088538","filename":"file0"},{"photo_id":"1345088546","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088538":["hashtag1","hashtag2"]},{"1345088552":["hashtag1","hashtag2"]},{"1345088546":["hashtag1","hashtag2"]},{"1345088549":["hashtag1","hashtag2"]},{"1345088540":["hashtag1","hashtag2"]},{"1345088543":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088538, 1345088552, 1345088546, 1345088549, 1345088540, 1345088543)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.31772494316101 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:44:02.780891
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_47_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_41_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_35_5078.jpg', 2), ('/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_30_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_24_6115.jpg', 2), ('/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_18_6084.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_47_6083.jpg', '/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_41_6076.jpg', '/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_35_5078.jpg', '/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_30_6078.jpg', '/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_24_6115.jpg', '/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_18_6084.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_47_6083.jpg
/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_41_6076.jpg
/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_35_5078.jpg
/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_30_6078.jpg
/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_24_6115.jpg
/home/nano/Desktop/images/18032025/11/43/image_18032025_11_43_18_6084.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088603","1345088575","1345088608","1345088589","1345088577","1345088597"],"photo_ids_order":["1345088575","1345088577","1345088589","1345088597","1345088603","1345088608"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a93ac3491bd4b0e1abbafbd897695d8.jpg","text":"TemporaryFile(/tmp/multipartBody4161449820174485247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294703260,"filename":"image_18032025_11_43_24_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/45db974edede13e7d9c416afe8c40398.jpg","text":"TemporaryFile(/tmp/multipartBody7017011909756666690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294703260,"filename":"image_18032025_11_43_47_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/190a1ff578d010c0ca50e80d428b31fc.jpg","text":"TemporaryFile(/tmp/multipartBody6283139877688764636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294703260,"filename":"image_18032025_11_43_18_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b7e4059cad9efa378574ea5398a5ba91.jpg","text":"TemporaryFile(/tmp/multipartBody8331943413550789606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294703260,"filename":"image_18032025_11_43_35_5078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce1602ffb654952ebbd07b3712f5419e.jpg","text":"TemporaryFile(/tmp/multipartBody8465941617505827895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294703260,"filename":"image_18032025_11_43_41_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1534a52b4fb15bb3cc416ccf2bafd014.jpg","text":"TemporaryFile(/tmp/multipartBody6335401271535910252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294703260,"filename":"image_18032025_11_43_30_6078.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088589","file1":"1345088577","file0":"1345088575","file4":"1345088603","file5":"1345088608","file3":"1345088597"},"map_files_photo_id_array":[{"photo_id":"1345088608","filename":"file5"},{"photo_id":"1345088589","filename":"file2"},{"photo_id":"1345088603","filename":"file4"},{"photo_id":"1345088577","filename":"file1"},{"photo_id":"1345088575","filename":"file0"},{"photo_id":"1345088597","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088603":["hashtag1","hashtag2"]},{"1345088575":["hashtag1","hashtag2"]},{"1345088608":["hashtag1","hashtag2"]},{"1345088589":["hashtag1","hashtag2"]},{"1345088577":["hashtag1","hashtag2"]},{"1345088597":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088603, 1345088575, 1345088608, 1345088589, 1345088577, 1345088597)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.595773220062256 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:45:02.730448
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_53_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_47_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_41_5065.jpg', 2), ('/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_36_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_30_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_24_6086.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_53_6071.jpg', '/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_47_6078.jpg', '/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_41_5065.jpg', '/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_36_6080.jpg', '/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_30_6084.jpg', '/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_24_6086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_53_6071.jpg
/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_47_6078.jpg
/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_41_5065.jpg
/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_36_6080.jpg
/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_30_6084.jpg
/home/nano/Desktop/images/18032025/11/44/image_18032025_11_44_24_6086.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088909","1345088961","1345088964","1345088955","1345088969","1345088942"],"photo_ids_order":["1345088909","1345088942","1345088955","1345088961","1345088964","1345088969"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7af68f4bbb8c2bfeb7f9f380eb1e31e4.jpg","text":"TemporaryFile(/tmp/multipartBody6627249120348552929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294763327,"filename":"image_18032025_11_44_53_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aa5080423c23e1a44c7cf05b3b70080a.jpg","text":"TemporaryFile(/tmp/multipartBody1408836190429420141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294763327,"filename":"image_18032025_11_44_36_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7a8e975254ad9aee19ba5524f353f87.jpg","text":"TemporaryFile(/tmp/multipartBody7201289278301011917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294763327,"filename":"image_18032025_11_44_30_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec92f6d11a72e46d5969c3f72a0fd8a1.jpg","text":"TemporaryFile(/tmp/multipartBody8972389328058406528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294763327,"filename":"image_18032025_11_44_41_5065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c4e70ede8f1347a54c6023573b95a37a.jpg","text":"TemporaryFile(/tmp/multipartBody6784271050904053761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294763327,"filename":"image_18032025_11_44_24_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/05b19d5ef3c4f285fdf734dd1e073718.jpg","text":"TemporaryFile(/tmp/multipartBody1645401465793773831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294763327,"filename":"image_18032025_11_44_47_6078.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088955","file1":"1345088942","file0":"1345088909","file4":"1345088964","file5":"1345088969","file3":"1345088961"},"map_files_photo_id_array":[{"photo_id":"1345088969","filename":"file5"},{"photo_id":"1345088955","filename":"file2"},{"photo_id":"1345088964","filename":"file4"},{"photo_id":"1345088942","filename":"file1"},{"photo_id":"1345088909","filename":"file0"},{"photo_id":"1345088961","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088909":["hashtag1","hashtag2"]},{"1345088961":["hashtag1","hashtag2"]},{"1345088964":["hashtag1","hashtag2"]},{"1345088955":["hashtag1","hashtag2"]},{"1345088969":["hashtag1","hashtag2"]},{"1345088942":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088909, 1345088961, 1345088964, 1345088955, 1345088969, 1345088942)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.76536273956299 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:46:02.792838
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_53_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_47_5094.jpg', 2), ('/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_42_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_36_6104.jpg', 2), ('/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_30_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_23_6104.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_53_6106.jpg', '/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_47_5094.jpg', '/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_42_6077.jpg', '/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_36_6104.jpg', '/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_30_6102.jpg', '/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_23_6104.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_53_6106.jpg
/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_47_5094.jpg
/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_42_6077.jpg
/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_36_6104.jpg
/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_30_6102.jpg
/home/nano/Desktop/images/18032025/11/45/image_18032025_11_45_23_6104.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345088989","1345088994","1345088991","1345088999","1345088996","1345089002"],"photo_ids_order":["1345088989","1345088991","1345088994","1345088996","1345088999","1345089002"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/550b44ec8d9c048d64c4b688fd3dc25b.jpg","text":"TemporaryFile(/tmp/multipartBody56582888819807028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294823236,"filename":"image_18032025_11_45_53_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b84fe191e76e5f8bc300eea7ab7bd9f6.jpg","text":"TemporaryFile(/tmp/multipartBody5381612234092886621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294823236,"filename":"image_18032025_11_45_42_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/288d497b57ab85f837f53c7b7a392ddb.jpg","text":"TemporaryFile(/tmp/multipartBody2198828309499426682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294823236,"filename":"image_18032025_11_45_47_5094.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/202b7bb2e59e45a98964d959641ede53.jpg","text":"TemporaryFile(/tmp/multipartBody256418626433303963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294823236,"filename":"image_18032025_11_45_30_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43e42ecad67e1930e4bec743dfea6c0b.jpg","text":"TemporaryFile(/tmp/multipartBody8474144790081507830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294823236,"filename":"image_18032025_11_45_36_6104.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47ab351a661dde5b4f465b753e6a61f6.jpg","text":"TemporaryFile(/tmp/multipartBody366175516328900750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294823236,"filename":"image_18032025_11_45_23_6104.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345088994","file1":"1345088991","file0":"1345088989","file4":"1345088999","file5":"1345089002","file3":"1345088996"},"map_files_photo_id_array":[{"photo_id":"1345089002","filename":"file5"},{"photo_id":"1345088994","filename":"file2"},{"photo_id":"1345088999","filename":"file4"},{"photo_id":"1345088991","filename":"file1"},{"photo_id":"1345088989","filename":"file0"},{"photo_id":"1345088996","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345088989":["hashtag1","hashtag2"]},{"1345088994":["hashtag1","hashtag2"]},{"1345088991":["hashtag1","hashtag2"]},{"1345088999":["hashtag1","hashtag2"]},{"1345088996":["hashtag1","hashtag2"]},{"1345089002":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345088989, 1345088994, 1345088991, 1345088999, 1345088996, 1345089002)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.044989824295044 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:47:03.014531
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_54_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_48_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_42_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_36_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_30_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_11_6133.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_54_6067.jpg', '/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_48_6082.jpg', '/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_42_6078.jpg', '/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_36_6079.jpg', '/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_30_6076.jpg', '/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_11_6133.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_54_6067.jpg
/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_48_6082.jpg
/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_42_6078.jpg
/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_36_6079.jpg
/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_30_6076.jpg
/home/nano/Desktop/images/18032025/11/46/image_18032025_11_46_11_6133.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.36074042320251465 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:47:32.333933
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_54_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_48_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_41_6104.jpg', 2), ('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_35_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_29_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_23_6069.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_54_6070.jpg', '/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_48_6099.jpg', '/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_41_6104.jpg', '/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_35_6065.jpg', '/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_29_6069.jpg', '/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_23_6069.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_54_6070.jpg
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_48_6099.jpg
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_41_6104.jpg
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_35_6065.jpg
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_29_6069.jpg
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_23_6069.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 0.055391788482666016 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c0393c8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:48:02.991800
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_54_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_48_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_41_6104.jpg', 2), ('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_35_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_29_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_23_6069.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_54_6070.jpg', '/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_48_6099.jpg', '/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_41_6104.jpg', '/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_35_6065.jpg', '/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_29_6069.jpg', '/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_23_6069.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_54_6070.jpg
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_48_6099.jpg
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_41_6104.jpg
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_35_6065.jpg
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_29_6069.jpg
/home/nano/Desktop/images/18032025/11/47/image_18032025_11_47_23_6069.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345089075","1345089084","1345089078","1345089072","1345089080","1345089082"],"photo_ids_order":["1345089072","1345089075","1345089078","1345089080","1345089082","1345089084"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec77d926cdc3b4fecfbfb24d14205eb8.jpg","text":"TemporaryFile(/tmp/multipartBody6024624647439722643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294943459,"filename":"image_18032025_11_47_48_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ed98432c005ee90354fe57fc715f133b.jpg","text":"TemporaryFile(/tmp/multipartBody4528798729017450736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294943459,"filename":"image_18032025_11_47_23_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b1996f0f0b3e20093809dfee6815a1f0.jpg","text":"TemporaryFile(/tmp/multipartBody6261000624809086511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294943459,"filename":"image_18032025_11_47_41_6104.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d0e30fdd7c17274cdbd5abb812f873a.jpg","text":"TemporaryFile(/tmp/multipartBody1904678882767931432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294943459,"filename":"image_18032025_11_47_54_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e2dea0b43f3aa7c34772d04b99fbde48.jpg","text":"TemporaryFile(/tmp/multipartBody2005665460765871427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294943459,"filename":"image_18032025_11_47_35_6065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/823ea376a0bf8056af5b41e5a515c8e2.jpg","text":"TemporaryFile(/tmp/multipartBody5242631857541603096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742294943459,"filename":"image_18032025_11_47_29_6069.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345089078","file1":"1345089075","file0":"1345089072","file4":"1345089082","file5":"1345089084","file3":"1345089080"},"map_files_photo_id_array":[{"photo_id":"1345089084","filename":"file5"},{"photo_id":"1345089078","filename":"file2"},{"photo_id":"1345089082","filename":"file4"},{"photo_id":"1345089075","filename":"file1"},{"photo_id":"1345089072","filename":"file0"},{"photo_id":"1345089080","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345089075":["hashtag1","hashtag2"]},{"1345089084":["hashtag1","hashtag2"]},{"1345089078":["hashtag1","hashtag2"]},{"1345089072":["hashtag1","hashtag2"]},{"1345089080":["hashtag1","hashtag2"]},{"1345089082":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345089075, 1345089084, 1345089078, 1345089072, 1345089080, 1345089082)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.804203271865845 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:49:03.321589
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_53_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_47_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_41_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_35_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_29_6097.jpg', 2), ('/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_23_6072.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_53_6069.jpg', '/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_47_6074.jpg', '/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_41_6071.jpg', '/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_35_6070.jpg', '/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_29_6097.jpg', '/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_23_6072.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_53_6069.jpg
/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_47_6074.jpg
/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_41_6071.jpg
/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_35_6070.jpg
/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_29_6097.jpg
/home/nano/Desktop/images/18032025/11/48/image_18032025_11_48_23_6072.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345089192","1345089197","1345089194","1345089188","1345089182","1345089190"],"photo_ids_order":["1345089182","1345089188","1345089190","1345089192","1345089194","1345089197"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5cbc6af6c3772c0edd7bdc6d8891e461.jpg","text":"TemporaryFile(/tmp/multipartBody6040526655642805296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295003787,"filename":"image_18032025_11_48_35_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0bab00873de17c3468363ba32c1faa3d.jpg","text":"TemporaryFile(/tmp/multipartBody4274643981466709954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295003787,"filename":"image_18032025_11_48_23_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3c51605d9c6adff2e9600190c6481e9.jpg","text":"TemporaryFile(/tmp/multipartBody3234735335998619140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295003787,"filename":"image_18032025_11_48_29_6097.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cea13192f2f4b12c5b897a69cdc53fc1.jpg","text":"TemporaryFile(/tmp/multipartBody5989379906503245458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295003787,"filename":"image_18032025_11_48_47_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ba0c0ffe9c4ee604c791a233b7b818e.jpg","text":"TemporaryFile(/tmp/multipartBody4726681506094424017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295003787,"filename":"image_18032025_11_48_53_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d5dabede8c6dca7760906f94b885b43.jpg","text":"TemporaryFile(/tmp/multipartBody2145993630485881310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295003787,"filename":"image_18032025_11_48_41_6071.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345089190","file1":"1345089188","file0":"1345089182","file4":"1345089194","file5":"1345089197","file3":"1345089192"},"map_files_photo_id_array":[{"photo_id":"1345089197","filename":"file5"},{"photo_id":"1345089190","filename":"file2"},{"photo_id":"1345089194","filename":"file4"},{"photo_id":"1345089188","filename":"file1"},{"photo_id":"1345089182","filename":"file0"},{"photo_id":"1345089192","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345089192":["hashtag1","hashtag2"]},{"1345089197":["hashtag1","hashtag2"]},{"1345089194":["hashtag1","hashtag2"]},{"1345089188":["hashtag1","hashtag2"]},{"1345089182":["hashtag1","hashtag2"]},{"1345089190":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345089192, 1345089197, 1345089194, 1345089188, 1345089182, 1345089190)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.163036346435547 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:50:03.189208
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_53_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_47_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_41_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_35_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_29_6100.jpg', 2), ('/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_23_5096.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_53_6077.jpg', '/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_47_6074.jpg', '/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_41_6102.jpg', '/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_35_6074.jpg', '/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_29_6100.jpg', '/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_23_5096.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_53_6077.jpg
/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_47_6074.jpg
/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_41_6102.jpg
/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_35_6074.jpg
/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_29_6100.jpg
/home/nano/Desktop/images/18032025/11/49/image_18032025_11_49_23_5096.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345089244","1345089247","1345089249","1345089252","1345089251","1345089254"],"photo_ids_order":["1345089244","1345089247","1345089249","1345089251","1345089252","1345089254"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47b35b3a21c6d7df8b11b90b2f96c6fb.jpg","text":"TemporaryFile(/tmp/multipartBody6801048013687881587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295063615,"filename":"image_18032025_11_49_53_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/588122e0bc211c079b7c9ac53e05a9c2.jpg","text":"TemporaryFile(/tmp/multipartBody6632426554537525932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295063615,"filename":"image_18032025_11_49_47_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8f3f99b694aec006d7596fca6afdfe73.jpg","text":"TemporaryFile(/tmp/multipartBody5084292562035975826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295063615,"filename":"image_18032025_11_49_41_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/94ac05da4455152d8f23d8e24b41f9ee.jpg","text":"TemporaryFile(/tmp/multipartBody4374232864871953585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295063615,"filename":"image_18032025_11_49_29_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3ab2298e81630c595a20607ba55713a1.jpg","text":"TemporaryFile(/tmp/multipartBody6095610601889375965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295063615,"filename":"image_18032025_11_49_35_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49a9b22d0e03d7505956ebb39d04aad8.jpg","text":"TemporaryFile(/tmp/multipartBody9104224677714221446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295063615,"filename":"image_18032025_11_49_23_5096.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345089249","file1":"1345089247","file0":"1345089244","file4":"1345089252","file5":"1345089254","file3":"1345089251"},"map_files_photo_id_array":[{"photo_id":"1345089254","filename":"file5"},{"photo_id":"1345089249","filename":"file2"},{"photo_id":"1345089252","filename":"file4"},{"photo_id":"1345089247","filename":"file1"},{"photo_id":"1345089244","filename":"file0"},{"photo_id":"1345089251","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345089244":["hashtag1","hashtag2"]},{"1345089247":["hashtag1","hashtag2"]},{"1345089249":["hashtag1","hashtag2"]},{"1345089252":["hashtag1","hashtag2"]},{"1345089251":["hashtag1","hashtag2"]},{"1345089254":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345089244, 1345089247, 1345089249, 1345089252, 1345089251, 1345089254)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.090057134628296 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:51:02.230532
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_53_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_47_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_41_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_35_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_29_5057.jpg', 2), ('/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_24_6068.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_53_6065.jpg', '/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_47_6071.jpg', '/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_41_6069.jpg', '/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_35_6102.jpg', '/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_29_5057.jpg', '/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_24_6068.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_53_6065.jpg
/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_47_6071.jpg
/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_41_6069.jpg
/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_35_6102.jpg
/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_29_5057.jpg
/home/nano/Desktop/images/18032025/11/50/image_18032025_11_50_24_6068.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345089306","1345089296","1345089309","1345089290","1345089280","1345089283"],"photo_ids_order":["1345089280","1345089283","1345089290","1345089296","1345089306","1345089309"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0857a90d06eb61a07cd9a434cfab8333.jpg","text":"TemporaryFile(/tmp/multipartBody1335482179704358268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295122685,"filename":"image_18032025_11_50_29_5057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/911c56b0eba4b1a2eaf8d77115faaf16.jpg","text":"TemporaryFile(/tmp/multipartBody5962411002697509901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295122685,"filename":"image_18032025_11_50_35_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e771ad1695023641bc4f92c751e2534a.jpg","text":"TemporaryFile(/tmp/multipartBody1609489723426944001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295122685,"filename":"image_18032025_11_50_24_6068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2323fa4f659481930b0ce44f280fe482.jpg","text":"TemporaryFile(/tmp/multipartBody9137060313486962925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295122685,"filename":"image_18032025_11_50_41_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4a703298d0896109a9c15929b8cb513.jpg","text":"TemporaryFile(/tmp/multipartBody2601783403988458453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295122685,"filename":"image_18032025_11_50_53_6065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/26ac50d9a6cb4044e2621088661ce22e.jpg","text":"TemporaryFile(/tmp/multipartBody3090203103033743144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295122685,"filename":"image_18032025_11_50_47_6071.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345089290","file1":"1345089283","file0":"1345089280","file4":"1345089306","file5":"1345089309","file3":"1345089296"},"map_files_photo_id_array":[{"photo_id":"1345089309","filename":"file5"},{"photo_id":"1345089290","filename":"file2"},{"photo_id":"1345089306","filename":"file4"},{"photo_id":"1345089283","filename":"file1"},{"photo_id":"1345089280","filename":"file0"},{"photo_id":"1345089296","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345089306":["hashtag1","hashtag2"]},{"1345089296":["hashtag1","hashtag2"]},{"1345089309":["hashtag1","hashtag2"]},{"1345089290":["hashtag1","hashtag2"]},{"1345089280":["hashtag1","hashtag2"]},{"1345089283":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345089306, 1345089296, 1345089309, 1345089290, 1345089280, 1345089283)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.103277921676636 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:52:02.527047
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_53_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_47_5060.jpg', 2), ('/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_42_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_36_6073.jpg', 2), ('/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_30_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_24_6069.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_53_6127.jpg', '/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_47_5060.jpg', '/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_42_6067.jpg', '/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_36_6073.jpg', '/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_30_6067.jpg', '/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_24_6069.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_53_6127.jpg
/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_47_5060.jpg
/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_42_6067.jpg
/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_36_6073.jpg
/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_30_6067.jpg
/home/nano/Desktop/images/18032025/11/51/image_18032025_11_51_24_6069.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345089445","1345089439","1345089403","1345089435","1345089417","1345089377"],"photo_ids_order":["1345089377","1345089403","1345089417","1345089435","1345089439","1345089445"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b74e19dc56576f7f269035241a48f245.jpg","text":"TemporaryFile(/tmp/multipartBody9188166200355872193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295182957,"filename":"image_18032025_11_51_24_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c763350ef02bad71fcff431d9fa9283.jpg","text":"TemporaryFile(/tmp/multipartBody1296917909085790486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295182957,"filename":"image_18032025_11_51_30_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1805591b50aea89cb39470e2083ad762.jpg","text":"TemporaryFile(/tmp/multipartBody4168800061762461857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295182957,"filename":"image_18032025_11_51_47_5060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7ffaa85c2c1bb550aeede969163f743e.jpg","text":"TemporaryFile(/tmp/multipartBody7039931251048447065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295182957,"filename":"image_18032025_11_51_36_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e2e9a6e761db9cc7bcccb15938b7b5a1.jpg","text":"TemporaryFile(/tmp/multipartBody2752327584180046274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295182957,"filename":"image_18032025_11_51_42_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85f83cb3ade8aa8f46dc48753c3ec3c5.jpg","text":"TemporaryFile(/tmp/multipartBody1234835446979990202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295182957,"filename":"image_18032025_11_51_53_6127.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345089417","file1":"1345089403","file0":"1345089377","file4":"1345089439","file5":"1345089445","file3":"1345089435"},"map_files_photo_id_array":[{"photo_id":"1345089445","filename":"file5"},{"photo_id":"1345089417","filename":"file2"},{"photo_id":"1345089439","filename":"file4"},{"photo_id":"1345089403","filename":"file1"},{"photo_id":"1345089377","filename":"file0"},{"photo_id":"1345089435","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345089445":["hashtag1","hashtag2"]},{"1345089439":["hashtag1","hashtag2"]},{"1345089403":["hashtag1","hashtag2"]},{"1345089435":["hashtag1","hashtag2"]},{"1345089417":["hashtag1","hashtag2"]},{"1345089377":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345089445, 1345089439, 1345089403, 1345089435, 1345089417, 1345089377)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.869126081466675 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:53:02.577149
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_54_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_48_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_42_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_36_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_29_6073.jpg', 2), ('/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_23_6068.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_54_6102.jpg', '/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_48_6077.jpg', '/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_42_6070.jpg', '/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_36_6053.jpg', '/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_29_6073.jpg', '/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_23_6068.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_54_6102.jpg
/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_48_6077.jpg
/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_42_6070.jpg
/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_36_6053.jpg
/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_29_6073.jpg
/home/nano/Desktop/images/18032025/11/52/image_18032025_11_52_23_6068.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345089484","1345089480","1345089467","1345089472","1345089475","1345089469"],"photo_ids_order":["1345089467","1345089469","1345089472","1345089475","1345089480","1345089484"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2e10f6f80580e4931b7befe1758f51ce.jpg","text":"TemporaryFile(/tmp/multipartBody6755544340001424788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295243005,"filename":"image_18032025_11_52_23_6068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a579723415fc982d8c0b3c598d29ac65.jpg","text":"TemporaryFile(/tmp/multipartBody2355600583660719865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295243005,"filename":"image_18032025_11_52_29_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/689febfdf7dbb0b542ccd35621d8da56.jpg","text":"TemporaryFile(/tmp/multipartBody5350871368686491951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295243005,"filename":"image_18032025_11_52_54_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/411087094dd8e89f1aef3b913cc31239.jpg","text":"TemporaryFile(/tmp/multipartBody5656003359004595289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295243005,"filename":"image_18032025_11_52_42_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/11a15fd21687a5a8f2a8b0fe8c2bbd01.jpg","text":"TemporaryFile(/tmp/multipartBody6008461543217596243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295243005,"filename":"image_18032025_11_52_36_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5fba204e701beac3686b22f7137941ff.jpg","text":"TemporaryFile(/tmp/multipartBody8466018822987605244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295243005,"filename":"image_18032025_11_52_48_6077.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345089472","file1":"1345089469","file0":"1345089467","file4":"1345089480","file5":"1345089484","file3":"1345089475"},"map_files_photo_id_array":[{"photo_id":"1345089484","filename":"file5"},{"photo_id":"1345089472","filename":"file2"},{"photo_id":"1345089480","filename":"file4"},{"photo_id":"1345089469","filename":"file1"},{"photo_id":"1345089467","filename":"file0"},{"photo_id":"1345089475","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345089484":["hashtag1","hashtag2"]},{"1345089480":["hashtag1","hashtag2"]},{"1345089467":["hashtag1","hashtag2"]},{"1345089472":["hashtag1","hashtag2"]},{"1345089475":["hashtag1","hashtag2"]},{"1345089469":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345089484, 1345089480, 1345089467, 1345089472, 1345089475, 1345089469)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.10785984992981 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:54:02.967147
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_53_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_47_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_41_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_35_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_23_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_17_5969.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_53_6076.jpg', '/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_47_6065.jpg', '/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_41_6083.jpg', '/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_35_6072.jpg', '/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_23_6098.jpg', '/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_17_5969.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_53_6076.jpg
/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_47_6065.jpg
/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_41_6083.jpg
/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_35_6072.jpg
/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_23_6098.jpg
/home/nano/Desktop/images/18032025/11/53/image_18032025_11_53_17_5969.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345089562","1345089535","1345089565","1345089529","1345089531","1345089551"],"photo_ids_order":["1345089529","1345089531","1345089535","1345089551","1345089562","1345089565"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0492c015ca49ee20d541306a01730a69.jpg","text":"TemporaryFile(/tmp/multipartBody3051952668301084569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295303417,"filename":"image_18032025_11_53_23_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9dc3d9691351df7249bfc5a2455948ec.jpg","text":"TemporaryFile(/tmp/multipartBody3658352884764365505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295303417,"filename":"image_18032025_11_53_41_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/629a40fdcc38566d8ecded041f6b5dab.jpg","text":"TemporaryFile(/tmp/multipartBody1719186443242655431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295303417,"filename":"image_18032025_11_53_17_5969.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/16474896be523c7eb2c6c645a4954da9.jpg","text":"TemporaryFile(/tmp/multipartBody6835310618696380126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295303417,"filename":"image_18032025_11_53_53_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/449821397ef5514524bf1cee8b3faaf3.jpg","text":"TemporaryFile(/tmp/multipartBody624705746956290235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295303417,"filename":"image_18032025_11_53_47_6065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/430434cd7cf83607ff5c3e7c7ef9a0e2.jpg","text":"TemporaryFile(/tmp/multipartBody8231000478820333801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295303417,"filename":"image_18032025_11_53_35_6072.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345089535","file1":"1345089531","file0":"1345089529","file4":"1345089562","file5":"1345089565","file3":"1345089551"},"map_files_photo_id_array":[{"photo_id":"1345089565","filename":"file5"},{"photo_id":"1345089535","filename":"file2"},{"photo_id":"1345089562","filename":"file4"},{"photo_id":"1345089531","filename":"file1"},{"photo_id":"1345089529","filename":"file0"},{"photo_id":"1345089551","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345089562":["hashtag1","hashtag2"]},{"1345089535":["hashtag1","hashtag2"]},{"1345089565":["hashtag1","hashtag2"]},{"1345089529":["hashtag1","hashtag2"]},{"1345089531":["hashtag1","hashtag2"]},{"1345089551":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345089562, 1345089535, 1345089565, 1345089529, 1345089531, 1345089551)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.321446895599365 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:55:02.947594
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_06_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_53_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_41_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_35_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_29_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_23_6102.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_06_6091.jpg', '/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_53_6065.jpg', '/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_41_6108.jpg', '/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_35_6078.jpg', '/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_29_6074.jpg', '/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_23_6102.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_06_6091.jpg
/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_53_6065.jpg
/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_41_6108.jpg
/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_35_6078.jpg
/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_29_6074.jpg
/home/nano/Desktop/images/18032025/11/54/image_18032025_11_54_23_6102.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345089769","1345089762","1345089756","1345089765","1345089759","1345089752"],"photo_ids_order":["1345089752","1345089756","1345089759","1345089762","1345089765","1345089769"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d48bd6957c507c6f99ad5a8fe77c113a.jpg","text":"TemporaryFile(/tmp/multipartBody5357973073263785244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295363411,"filename":"image_18032025_11_54_23_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ac4c6a70999560d21a6dc570ad9b6c5.jpg","text":"TemporaryFile(/tmp/multipartBody8421241932188089912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295363411,"filename":"image_18032025_11_54_35_6078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/38dd52e178ad2ea7af44923a1bb463a8.jpg","text":"TemporaryFile(/tmp/multipartBody2978436479922190059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295363411,"filename":"image_18032025_11_54_53_6065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e47bc25166dfa0fe13148fdef24315f8.jpg","text":"TemporaryFile(/tmp/multipartBody7345851860348020894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295363411,"filename":"image_18032025_11_54_29_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27c1b218e7f375d54eed7f03a15d36b1.jpg","text":"TemporaryFile(/tmp/multipartBody514416682312368713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295363411,"filename":"image_18032025_11_54_41_6108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6628751a7aa822d30671fdba5a9da657.jpg","text":"TemporaryFile(/tmp/multipartBody1665919535105434111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295363411,"filename":"image_18032025_11_55_06_6091.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345089759","file1":"1345089756","file0":"1345089752","file4":"1345089765","file5":"1345089769","file3":"1345089762"},"map_files_photo_id_array":[{"photo_id":"1345089769","filename":"file5"},{"photo_id":"1345089759","filename":"file2"},{"photo_id":"1345089765","filename":"file4"},{"photo_id":"1345089756","filename":"file1"},{"photo_id":"1345089752","filename":"file0"},{"photo_id":"1345089762","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345089769":["hashtag1","hashtag2"]},{"1345089762":["hashtag1","hashtag2"]},{"1345089756":["hashtag1","hashtag2"]},{"1345089765":["hashtag1","hashtag2"]},{"1345089759":["hashtag1","hashtag2"]},{"1345089752":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345089769, 1345089762, 1345089756, 1345089765, 1345089759, 1345089752)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.893965005874634 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:56:02.888969
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_53_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_47_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_41_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_35_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_29_5051.jpg', 2), ('/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_24_6094.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_53_6042.jpg', '/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_47_6056.jpg', '/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_41_6087.jpg', '/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_35_6091.jpg', '/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_29_5051.jpg', '/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_24_6094.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_53_6042.jpg
/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_47_6056.jpg
/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_41_6087.jpg
/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_35_6091.jpg
/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_29_5051.jpg
/home/nano/Desktop/images/18032025/11/55/image_18032025_11_55_24_6094.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345089874","1345089837","1345089819","1345089804","1345089863","1345089880"],"photo_ids_order":["1345089804","1345089819","1345089837","1345089863","1345089874","1345089880"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bbe9b1a2403ffef31f84df0b05b83717.jpg","text":"TemporaryFile(/tmp/multipartBody8458465989690649601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295423360,"filename":"image_18032025_11_55_29_5051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a2baa1417474147b96dcc6d80528c69a.jpg","text":"TemporaryFile(/tmp/multipartBody9094668091205637450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295423360,"filename":"image_18032025_11_55_41_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8daf507a2670004e07461d8760674df3.jpg","text":"TemporaryFile(/tmp/multipartBody4792578888815457509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295423360,"filename":"image_18032025_11_55_47_6056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/912f8dcc84d04081dfa5a20dc628b736.jpg","text":"TemporaryFile(/tmp/multipartBody264850977656209371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295423360,"filename":"image_18032025_11_55_53_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d80e5360c291cbd460c38f4eea140efe.jpg","text":"TemporaryFile(/tmp/multipartBody4675349642792008933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295423360,"filename":"image_18032025_11_55_35_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/061d8dbd7b998150de2e12620d31f7e6.jpg","text":"TemporaryFile(/tmp/multipartBody2932440533131182153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295423360,"filename":"image_18032025_11_55_24_6094.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345089837","file1":"1345089819","file0":"1345089804","file4":"1345089874","file5":"1345089880","file3":"1345089863"},"map_files_photo_id_array":[{"photo_id":"1345089880","filename":"file5"},{"photo_id":"1345089837","filename":"file2"},{"photo_id":"1345089874","filename":"file4"},{"photo_id":"1345089819","filename":"file1"},{"photo_id":"1345089804","filename":"file0"},{"photo_id":"1345089863","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345089874":["hashtag1","hashtag2"]},{"1345089837":["hashtag1","hashtag2"]},{"1345089819":["hashtag1","hashtag2"]},{"1345089804":["hashtag1","hashtag2"]},{"1345089863":["hashtag1","hashtag2"]},{"1345089880":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345089874, 1345089837, 1345089819, 1345089804, 1345089863, 1345089880)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.554234981536865 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:57:02.954137
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_54_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_48_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_42_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_36_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_30_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_24_5952.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_54_6109.jpg', '/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_48_6065.jpg', '/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_42_6057.jpg', '/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_36_5908.jpg', '/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_30_6128.jpg', '/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_24_5952.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_54_6109.jpg
/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_48_6065.jpg
/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_42_6057.jpg
/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_36_5908.jpg
/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_30_6128.jpg
/home/nano/Desktop/images/18032025/11/56/image_18032025_11_56_24_5952.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345090078","1345090213","1345090120","1345090154","1345090040","1345090334"],"photo_ids_order":["1345090040","1345090078","1345090120","1345090154","1345090213","1345090334"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ecb77d87f2ac96d202329f9c84c5828.jpg","text":"TemporaryFile(/tmp/multipartBody8589275371587242676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295483464,"filename":"image_18032025_11_56_48_6065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d1e5de254d85ebe5c567f17a04996b2e.jpg","text":"TemporaryFile(/tmp/multipartBody1747986913094600546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295483464,"filename":"image_18032025_11_56_30_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8410406a930258765c6c2b9e9917ed64.jpg","text":"TemporaryFile(/tmp/multipartBody865110950570786910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295483464,"filename":"image_18032025_11_56_42_6057.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0f2e6d43fcedb69fd37e50b6b89594f.jpg","text":"TemporaryFile(/tmp/multipartBody4807943645847699331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295483464,"filename":"image_18032025_11_56_36_5908.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e8d8461e4537915177d90be1646f55b2.jpg","text":"TemporaryFile(/tmp/multipartBody2839318986725180427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295483464,"filename":"image_18032025_11_56_54_6109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/749e11fc0861f0f7609f894ee91d7174.jpg","text":"TemporaryFile(/tmp/multipartBody6168646672954992574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295483464,"filename":"image_18032025_11_56_24_5952.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345090120","file1":"1345090078","file0":"1345090040","file4":"1345090213","file5":"1345090334","file3":"1345090154"},"map_files_photo_id_array":[{"photo_id":"1345090334","filename":"file5"},{"photo_id":"1345090120","filename":"file2"},{"photo_id":"1345090213","filename":"file4"},{"photo_id":"1345090078","filename":"file1"},{"photo_id":"1345090040","filename":"file0"},{"photo_id":"1345090154","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345090078":["hashtag1","hashtag2"]},{"1345090213":["hashtag1","hashtag2"]},{"1345090120":["hashtag1","hashtag2"]},{"1345090154":["hashtag1","hashtag2"]},{"1345090040":["hashtag1","hashtag2"]},{"1345090334":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345090078, 1345090213, 1345090120, 1345090154, 1345090040, 1345090334)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.63886046409607 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:59:03.221399
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_54_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_48_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_41_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_29_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_23_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_17_6072.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_54_6072.jpg', '/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_48_6070.jpg', '/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_41_6069.jpg', '/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_29_6079.jpg', '/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_23_6069.jpg', '/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_17_6072.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_54_6072.jpg
/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_48_6070.jpg
/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_41_6069.jpg
/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_29_6079.jpg
/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_23_6069.jpg
/home/nano/Desktop/images/18032025/11/57/image_18032025_11_57_17_6072.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.4011859893798828 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 11:59:32.311001
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_53_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_47_6062.jpg', 2), ('/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_41_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_35_6068.jpg', 2), ('/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_24_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_18_6104.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_53_5833.jpg', '/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_47_6062.jpg', '/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_41_6071.jpg', '/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_35_6068.jpg', '/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_24_6077.jpg', '/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_18_6104.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_53_5833.jpg
/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_47_6062.jpg
/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_41_6071.jpg
/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_35_6068.jpg
/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_24_6077.jpg
/home/nano/Desktop/images/18032025/11/59/image_18032025_11_59_18_6104.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345091571","1345091622","1345091526","1345091594","1345091654","1345091497"],"photo_ids_order":["1345091497","1345091526","1345091571","1345091594","1345091622","1345091654"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/44a847c8badc10d1d5c1e700dc18de31.jpg","text":"TemporaryFile(/tmp/multipartBody1129602835227756844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295632723,"filename":"image_18032025_11_59_41_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5cf528756e1a019ca651a2205c708753.jpg","text":"TemporaryFile(/tmp/multipartBody3637016277398624009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295632723,"filename":"image_18032025_11_59_24_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/02ab7e02f05b9c7a45319f6407f8eee1.jpg","text":"TemporaryFile(/tmp/multipartBody8926710866868805594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295632723,"filename":"image_18032025_11_59_47_6062.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c25ff81d7d2e0a13d2ec9f75628e5724.jpg","text":"TemporaryFile(/tmp/multipartBody4916005088318245113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295632723,"filename":"image_18032025_11_59_35_6068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d520954bb63e377bbc71103641f57e04.jpg","text":"TemporaryFile(/tmp/multipartBody1508574638684900656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295632723,"filename":"image_18032025_11_59_18_6104.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a361f0556754e84ae690e65e57686a4c.jpg","text":"TemporaryFile(/tmp/multipartBody1902033816935181626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295632723,"filename":"image_18032025_11_59_53_5833.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345091571","file1":"1345091526","file0":"1345091497","file4":"1345091622","file5":"1345091654","file3":"1345091594"},"map_files_photo_id_array":[{"photo_id":"1345091654","filename":"file5"},{"photo_id":"1345091571","filename":"file2"},{"photo_id":"1345091622","filename":"file4"},{"photo_id":"1345091526","filename":"file1"},{"photo_id":"1345091497","filename":"file0"},{"photo_id":"1345091594","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345091571":["hashtag1","hashtag2"]},{"1345091622":["hashtag1","hashtag2"]},{"1345091526":["hashtag1","hashtag2"]},{"1345091594":["hashtag1","hashtag2"]},{"1345091654":["hashtag1","hashtag2"]},{"1345091497":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345091571, 1345091622, 1345091526, 1345091594, 1345091654, 1345091497)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.31241297721863 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:00:32.424135
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_53_6073.jpg', 2), ('/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_47_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_41_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_35_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_29_6100.jpg', 2), ('/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_23_5820.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_53_6073.jpg', '/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_47_6079.jpg', '/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_41_6081.jpg', '/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_35_6081.jpg', '/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_29_6100.jpg', '/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_23_5820.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_53_6073.jpg
/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_47_6079.jpg
/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_41_6081.jpg
/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_35_6081.jpg
/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_29_6100.jpg
/home/nano/Desktop/images/18032025/12/00/image_18032025_12_00_23_5820.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345091764","1345091772","1345091775","1345091760","1345091756","1345091768"],"photo_ids_order":["1345091756","1345091760","1345091764","1345091768","1345091772","1345091775"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d64be1388c35604f45270dfa83ef6d94.jpg","text":"TemporaryFile(/tmp/multipartBody3674843401338601439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295692872,"filename":"image_18032025_12_00_41_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/50cae16259e13aca6d09bf4cc34cb8db.jpg","text":"TemporaryFile(/tmp/multipartBody734289985811085015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295692872,"filename":"image_18032025_12_00_29_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/51eb94e413468c81c275162057378e96.jpg","text":"TemporaryFile(/tmp/multipartBody2678036746360276918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295692872,"filename":"image_18032025_12_00_23_5820.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/201f9c6eee2e17713b5cec46bc4503be.jpg","text":"TemporaryFile(/tmp/multipartBody3887076918531540020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295692872,"filename":"image_18032025_12_00_47_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f567c1ed062ecd0d28be2e22958f0201.jpg","text":"TemporaryFile(/tmp/multipartBody8433696648690751481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295692872,"filename":"image_18032025_12_00_53_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6047a22cb67d694ade7e6585bfc83e2e.jpg","text":"TemporaryFile(/tmp/multipartBody5636687301725794783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295692872,"filename":"image_18032025_12_00_35_6081.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345091764","file1":"1345091760","file0":"1345091756","file4":"1345091772","file5":"1345091775","file3":"1345091768"},"map_files_photo_id_array":[{"photo_id":"1345091775","filename":"file5"},{"photo_id":"1345091764","filename":"file2"},{"photo_id":"1345091772","filename":"file4"},{"photo_id":"1345091760","filename":"file1"},{"photo_id":"1345091756","filename":"file0"},{"photo_id":"1345091768","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345091764":["hashtag1","hashtag2"]},{"1345091772":["hashtag1","hashtag2"]},{"1345091775":["hashtag1","hashtag2"]},{"1345091760":["hashtag1","hashtag2"]},{"1345091756":["hashtag1","hashtag2"]},{"1345091768":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345091764, 1345091772, 1345091775, 1345091760, 1345091756, 1345091768)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.29304218292236 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:01:32.558330
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_53_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_47_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_41_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_35_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_29_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_23_5059.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_53_6069.jpg', '/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_47_6077.jpg', '/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_41_6071.jpg', '/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_35_6079.jpg', '/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_29_6107.jpg', '/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_23_5059.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_53_6069.jpg
/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_47_6077.jpg
/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_41_6071.jpg
/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_35_6079.jpg
/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_29_6107.jpg
/home/nano/Desktop/images/18032025/12/01/image_18032025_12_01_23_5059.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345091796","1345091800","1345091793","1345091811","1345091808","1345091804"],"photo_ids_order":["1345091793","1345091796","1345091800","1345091804","1345091808","1345091811"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/315689660bacf3eced449fef25c5bed8.jpg","text":"TemporaryFile(/tmp/multipartBody8442772336869874384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295753005,"filename":"image_18032025_12_01_47_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e89437358077505d6d09981d8b9d2380.jpg","text":"TemporaryFile(/tmp/multipartBody5516436679939435781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295753005,"filename":"image_18032025_12_01_41_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a65b46dbfbf13645b2f20a6946efdcb.jpg","text":"TemporaryFile(/tmp/multipartBody4683706848112513856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295753005,"filename":"image_18032025_12_01_53_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/02424a3ce25b2f107a2fc23c91e235e2.jpg","text":"TemporaryFile(/tmp/multipartBody5011935912687603678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295753005,"filename":"image_18032025_12_01_23_5059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f0d906ce4715da7a318b0ade89369699.jpg","text":"TemporaryFile(/tmp/multipartBody7440343162119728740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295753005,"filename":"image_18032025_12_01_29_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49e38035a3823d36b5e1216d57af7f8b.jpg","text":"TemporaryFile(/tmp/multipartBody6227695968747799916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295753005,"filename":"image_18032025_12_01_35_6079.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345091800","file1":"1345091796","file0":"1345091793","file4":"1345091808","file5":"1345091811","file3":"1345091804"},"map_files_photo_id_array":[{"photo_id":"1345091811","filename":"file5"},{"photo_id":"1345091800","filename":"file2"},{"photo_id":"1345091808","filename":"file4"},{"photo_id":"1345091796","filename":"file1"},{"photo_id":"1345091793","filename":"file0"},{"photo_id":"1345091804","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345091796":["hashtag1","hashtag2"]},{"1345091800":["hashtag1","hashtag2"]},{"1345091793":["hashtag1","hashtag2"]},{"1345091811":["hashtag1","hashtag2"]},{"1345091808":["hashtag1","hashtag2"]},{"1345091804":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345091796, 1345091800, 1345091793, 1345091811, 1345091808, 1345091804)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.46162438392639 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:02:32.637802
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_35_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_29_5085.jpg', 2), ('/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_24_6097.jpg', 2), ('/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_18_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_12_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_05_6100.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_35_6099.jpg', '/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_29_5085.jpg', '/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_24_6097.jpg', '/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_18_6080.jpg', '/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_12_6106.jpg', '/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_05_6100.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_35_6099.jpg
/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_29_5085.jpg
/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_24_6097.jpg
/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_18_6080.jpg
/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_12_6106.jpg
/home/nano/Desktop/images/18032025/12/02/image_18032025_12_02_05_6100.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345091851","1345091833","1345091847","1345091838","1345091843","1345091828"],"photo_ids_order":["1345091828","1345091833","1345091838","1345091843","1345091847","1345091851"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3fcd5b262497cb27adcefbf3f6f418e4.jpg","text":"TemporaryFile(/tmp/multipartBody5426272662830106412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295813057,"filename":"image_18032025_12_02_05_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec50cc05dcabcd648e988043fd82fc9a.jpg","text":"TemporaryFile(/tmp/multipartBody4084455105655370260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295813057,"filename":"image_18032025_12_02_29_5085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ba9df6a146df4592122ba13ccae1855.jpg","text":"TemporaryFile(/tmp/multipartBody316512192729697490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295813057,"filename":"image_18032025_12_02_12_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/572420159ef74ac781ec03ba6f5d984a.jpg","text":"TemporaryFile(/tmp/multipartBody1268659818932176125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295813057,"filename":"image_18032025_12_02_24_6097.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/08672293be48bfc22e8ae0ebf1e27f27.jpg","text":"TemporaryFile(/tmp/multipartBody4358394972249571645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295813057,"filename":"image_18032025_12_02_18_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/425b30afc802d083194ef8c1d7feab6d.jpg","text":"TemporaryFile(/tmp/multipartBody778368446111802959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295813057,"filename":"image_18032025_12_02_35_6099.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345091838","file1":"1345091833","file0":"1345091828","file4":"1345091847","file5":"1345091851","file3":"1345091843"},"map_files_photo_id_array":[{"photo_id":"1345091851","filename":"file5"},{"photo_id":"1345091838","filename":"file2"},{"photo_id":"1345091847","filename":"file4"},{"photo_id":"1345091833","filename":"file1"},{"photo_id":"1345091828","filename":"file0"},{"photo_id":"1345091843","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345091851":["hashtag1","hashtag2"]},{"1345091833":["hashtag1","hashtag2"]},{"1345091847":["hashtag1","hashtag2"]},{"1345091838":["hashtag1","hashtag2"]},{"1345091843":["hashtag1","hashtag2"]},{"1345091828":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345091851, 1345091833, 1345091847, 1345091838, 1345091843, 1345091828)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.532803058624268 secondes ---
[Errno 13] Permission denied: '/home/pi'
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:03:32.729141
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_53_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_47_5094.jpg', 2), ('/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_42_6062.jpg', 2), ('/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_36_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_30_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_24_6071.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_53_6106.jpg', '/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_47_5094.jpg', '/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_42_6062.jpg', '/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_36_6074.jpg', '/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_30_6069.jpg', '/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_24_6071.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_53_6106.jpg
/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_47_5094.jpg
/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_42_6062.jpg
/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_36_6074.jpg
/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_30_6069.jpg
/home/nano/Desktop/images/18032025/12/03/image_18032025_12_03_24_6071.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345091878","1345091883","1345091865","1345091873","1345091887","1345091869"],"photo_ids_order":["1345091865","1345091869","1345091873","1345091878","1345091883","1345091887"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c302b7d3d56946740ea414225c6f7a6a.jpg","text":"TemporaryFile(/tmp/multipartBody4638261443737970298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295873187,"filename":"image_18032025_12_03_36_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6f650a7330b473f01bffb3da4a61891b.jpg","text":"TemporaryFile(/tmp/multipartBody4045716966806908513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295873187,"filename":"image_18032025_12_03_30_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c814a8d6f62ed79759641b57a7a6e662.jpg","text":"TemporaryFile(/tmp/multipartBody7176280039047306519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295873187,"filename":"image_18032025_12_03_53_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/06baf3b39a3ebe2877a6e0f2f2ca60dd.jpg","text":"TemporaryFile(/tmp/multipartBody8302325037430507684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295873187,"filename":"image_18032025_12_03_42_6062.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/37507773007679604194c2ce6794fae5.jpg","text":"TemporaryFile(/tmp/multipartBody4660399022587341681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295873187,"filename":"image_18032025_12_03_24_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1f86def0f8005046030ba25b84d21c8e.jpg","text":"TemporaryFile(/tmp/multipartBody4074721681897314112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295873187,"filename":"image_18032025_12_03_47_5094.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345091873","file1":"1345091869","file0":"1345091865","file4":"1345091883","file5":"1345091887","file3":"1345091878"},"map_files_photo_id_array":[{"photo_id":"1345091887","filename":"file5"},{"photo_id":"1345091873","filename":"file2"},{"photo_id":"1345091883","filename":"file4"},{"photo_id":"1345091869","filename":"file1"},{"photo_id":"1345091865","filename":"file0"},{"photo_id":"1345091878","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345091878":["hashtag1","hashtag2"]},{"1345091883":["hashtag1","hashtag2"]},{"1345091865":["hashtag1","hashtag2"]},{"1345091873":["hashtag1","hashtag2"]},{"1345091887":["hashtag1","hashtag2"]},{"1345091869":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345091878, 1345091883, 1345091865, 1345091873, 1345091887, 1345091869)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.439873695373535 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:04:31.852288
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_54_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_48_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_42_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_35_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_29_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_23_6069.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_54_6077.jpg', '/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_48_6081.jpg', '/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_42_6070.jpg', '/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_35_6078.jpg', '/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_29_6072.jpg', '/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_23_6069.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_54_6077.jpg
/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_48_6081.jpg
/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_42_6070.jpg
/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_35_6078.jpg
/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_29_6072.jpg
/home/nano/Desktop/images/18032025/12/04/image_18032025_12_04_23_6069.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345091920","1345091911","1345091901","1345091924","1345091906","1345091915"],"photo_ids_order":["1345091901","1345091906","1345091911","1345091915","1345091920","1345091924"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28f18333c17df17c64877f568844d621.jpg","text":"TemporaryFile(/tmp/multipartBody6522362796134605632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295932303,"filename":"image_18032025_12_04_29_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3d3b046b4bb155ee9103d5d10653c9f2.jpg","text":"TemporaryFile(/tmp/multipartBody4834376228334840213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295932303,"filename":"image_18032025_12_04_42_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3656f8cec6521cf40c14d5716b5f665.jpg","text":"TemporaryFile(/tmp/multipartBody7076652359213538424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295932303,"filename":"image_18032025_12_04_54_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/06f0b0f4f07ade8da97b7a87c56cebbd.jpg","text":"TemporaryFile(/tmp/multipartBody3829250616681030508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295932303,"filename":"image_18032025_12_04_23_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10e07fff49316e24c0c21c5a510ced20.jpg","text":"TemporaryFile(/tmp/multipartBody7135464433220507242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295932303,"filename":"image_18032025_12_04_48_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e12827917a66226c5c9b0aaa4a0fad10.jpg","text":"TemporaryFile(/tmp/multipartBody1635804567931547980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295932303,"filename":"image_18032025_12_04_35_6078.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345091911","file1":"1345091906","file0":"1345091901","file4":"1345091920","file5":"1345091924","file3":"1345091915"},"map_files_photo_id_array":[{"photo_id":"1345091924","filename":"file5"},{"photo_id":"1345091911","filename":"file2"},{"photo_id":"1345091920","filename":"file4"},{"photo_id":"1345091906","filename":"file1"},{"photo_id":"1345091901","filename":"file0"},{"photo_id":"1345091915","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345091920":["hashtag1","hashtag2"]},{"1345091911":["hashtag1","hashtag2"]},{"1345091901":["hashtag1","hashtag2"]},{"1345091924":["hashtag1","hashtag2"]},{"1345091906":["hashtag1","hashtag2"]},{"1345091915":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345091920, 1345091911, 1345091901, 1345091924, 1345091906, 1345091915)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.046050548553467 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:05:31.955467
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_54_6075.jpg', 2), ('/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_48_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_41_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_35_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_29_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_23_6081.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_54_6075.jpg', '/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_48_6077.jpg', '/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_41_6079.jpg', '/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_35_6070.jpg', '/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_29_6107.jpg', '/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_23_6081.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_54_6075.jpg
/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_48_6077.jpg
/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_41_6079.jpg
/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_35_6070.jpg
/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_29_6107.jpg
/home/nano/Desktop/images/18032025/12/05/image_18032025_12_05_23_6081.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345091958","1345091967","1345091963","1345091942","1345091953","1345091947"],"photo_ids_order":["1345091942","1345091947","1345091953","1345091958","1345091963","1345091967"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69baf5df07556c36cd9afa3210479cb1.jpg","text":"TemporaryFile(/tmp/multipartBody8490609487433031352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295992525,"filename":"image_18032025_12_05_35_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/44dc39776ca9433b3af8f0c4e385dd8f.jpg","text":"TemporaryFile(/tmp/multipartBody4361296030856236178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295992525,"filename":"image_18032025_12_05_23_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f0bda54747e316f7c221aef7fc0869ab.jpg","text":"TemporaryFile(/tmp/multipartBody899417542954770157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295992525,"filename":"image_18032025_12_05_29_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c56525edef82344e2a1ebac3694796c.jpg","text":"TemporaryFile(/tmp/multipartBody1808034049746907771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295992525,"filename":"image_18032025_12_05_54_6075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ef6c2a9bcaa6a6300c8a11aefd687e9.jpg","text":"TemporaryFile(/tmp/multipartBody5413735906834067193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295992525,"filename":"image_18032025_12_05_41_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ae58637231993aa90a84c733b7e1c60.jpg","text":"TemporaryFile(/tmp/multipartBody9002836146909497731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742295992525,"filename":"image_18032025_12_05_48_6077.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345091953","file1":"1345091947","file0":"1345091942","file4":"1345091963","file5":"1345091967","file3":"1345091958"},"map_files_photo_id_array":[{"photo_id":"1345091967","filename":"file5"},{"photo_id":"1345091953","filename":"file2"},{"photo_id":"1345091963","filename":"file4"},{"photo_id":"1345091947","filename":"file1"},{"photo_id":"1345091942","filename":"file0"},{"photo_id":"1345091958","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345091958":["hashtag1","hashtag2"]},{"1345091967":["hashtag1","hashtag2"]},{"1345091963":["hashtag1","hashtag2"]},{"1345091942":["hashtag1","hashtag2"]},{"1345091953":["hashtag1","hashtag2"]},{"1345091947":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345091958, 1345091967, 1345091963, 1345091942, 1345091953, 1345091947)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.442424774169922 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:06:32.078586
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_53_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_47_6064.jpg', 2), ('/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_41_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_35_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_29_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_17_6076.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_53_6043.jpg', '/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_47_6064.jpg', '/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_41_6081.jpg', '/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_35_6084.jpg', '/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_29_6078.jpg', '/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_17_6076.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_53_6043.jpg
/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_47_6064.jpg
/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_41_6081.jpg
/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_35_6084.jpg
/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_29_6078.jpg
/home/nano/Desktop/images/18032025/12/06/image_18032025_12_06_17_6076.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345091985","1345091999","1345091996","1345091981","1345092002","1345091992"],"photo_ids_order":["1345091981","1345091985","1345091992","1345091996","1345091999","1345092002"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ed8755506571575801af6543e0fd2dc.jpg","text":"TemporaryFile(/tmp/multipartBody6971547355144249925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296052662,"filename":"image_18032025_12_06_47_6064.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca872509c811c2eb6d7798ea0949533a.jpg","text":"TemporaryFile(/tmp/multipartBody1530851387178108150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296052662,"filename":"image_18032025_12_06_29_6078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e393750a2bd6e91dea66f9446c4c2f95.jpg","text":"TemporaryFile(/tmp/multipartBody8057037920420750552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296052662,"filename":"image_18032025_12_06_35_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9621b7e1a59d337ae67c7f4d6b10c859.jpg","text":"TemporaryFile(/tmp/multipartBody7443405752375673663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296052662,"filename":"image_18032025_12_06_53_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/549a7f7376f294f27c78d353d816cdcc.jpg","text":"TemporaryFile(/tmp/multipartBody4807032422116542286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296052662,"filename":"image_18032025_12_06_17_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e9baa5915a638171c05b13d408446e6.jpg","text":"TemporaryFile(/tmp/multipartBody602379144487556113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296052662,"filename":"image_18032025_12_06_41_6081.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345091992","file1":"1345091985","file0":"1345091981","file4":"1345091999","file5":"1345092002","file3":"1345091996"},"map_files_photo_id_array":[{"photo_id":"1345092002","filename":"file5"},{"photo_id":"1345091992","filename":"file2"},{"photo_id":"1345091999","filename":"file4"},{"photo_id":"1345091985","filename":"file1"},{"photo_id":"1345091981","filename":"file0"},{"photo_id":"1345091996","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345091985":["hashtag1","hashtag2"]},{"1345091999":["hashtag1","hashtag2"]},{"1345091996":["hashtag1","hashtag2"]},{"1345091981":["hashtag1","hashtag2"]},{"1345092002":["hashtag1","hashtag2"]},{"1345091992":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345091985, 1345091999, 1345091996, 1345091981, 1345092002, 1345091992)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.89908218383789 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:07:32.193552
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_47_5065.jpg', 2), ('/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_42_6073.jpg', 2), ('/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_36_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_30_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_24_6103.jpg', 2), ('/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_17_6074.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_47_5065.jpg', '/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_42_6073.jpg', '/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_36_6077.jpg', '/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_30_6076.jpg', '/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_24_6103.jpg', '/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_17_6074.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_47_5065.jpg
/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_42_6073.jpg
/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_36_6077.jpg
/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_30_6076.jpg
/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_24_6103.jpg
/home/nano/Desktop/images/18032025/12/07/image_18032025_12_07_17_6074.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345092177","1345092321","1345092207","1345092236","1345092292","1345092265"],"photo_ids_order":["1345092177","1345092207","1345092236","1345092265","1345092292","1345092321"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f85ba6785cc54b41d684c81ea72aa5f.jpg","text":"TemporaryFile(/tmp/multipartBody3009976561404635717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296112718,"filename":"image_18032025_12_07_47_5065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/094a2e08b538a537b4d40ef3639d5f9e.jpg","text":"TemporaryFile(/tmp/multipartBody4508914233700637887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296112718,"filename":"image_18032025_12_07_17_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85d4f303b92de71627c52027f0799c67.jpg","text":"TemporaryFile(/tmp/multipartBody8420453349740527832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296112718,"filename":"image_18032025_12_07_42_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/07d003b1ded46eb92b44cbb0662f227f.jpg","text":"TemporaryFile(/tmp/multipartBody5882678442799922774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296112718,"filename":"image_18032025_12_07_36_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c8ef2c027ba1b4118245347127ef9a2.jpg","text":"TemporaryFile(/tmp/multipartBody8852711471170988034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296112718,"filename":"image_18032025_12_07_24_6103.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fa822d1766f1a1068aeffa7012cc144f.jpg","text":"TemporaryFile(/tmp/multipartBody7276035908058060302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296112718,"filename":"image_18032025_12_07_30_6076.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345092236","file1":"1345092207","file0":"1345092177","file4":"1345092292","file5":"1345092321","file3":"1345092265"},"map_files_photo_id_array":[{"photo_id":"1345092321","filename":"file5"},{"photo_id":"1345092236","filename":"file2"},{"photo_id":"1345092292","filename":"file4"},{"photo_id":"1345092207","filename":"file1"},{"photo_id":"1345092177","filename":"file0"},{"photo_id":"1345092265","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345092177":["hashtag1","hashtag2"]},{"1345092321":["hashtag1","hashtag2"]},{"1345092207":["hashtag1","hashtag2"]},{"1345092236":["hashtag1","hashtag2"]},{"1345092292":["hashtag1","hashtag2"]},{"1345092265":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345092177, 1345092321, 1345092207, 1345092236, 1345092292, 1345092265)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.711639881134033 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:08:32.300123
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_54_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_48_6085.jpg', 2), ('/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_42_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_36_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_29_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_23_6089.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_54_6082.jpg', '/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_48_6085.jpg', '/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_42_6081.jpg', '/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_36_6079.jpg', '/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_29_6078.jpg', '/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_23_6089.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_54_6082.jpg
/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_48_6085.jpg
/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_42_6081.jpg
/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_36_6079.jpg
/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_29_6078.jpg
/home/nano/Desktop/images/18032025/12/08/image_18032025_12_08_23_6089.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345092628","1345092683","1345092598","1345092691","1345092679","1345092688"],"photo_ids_order":["1345092598","1345092628","1345092679","1345092683","1345092688","1345092691"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e32da8b7083d29f4f8e81db8f69ffe5.jpg","text":"TemporaryFile(/tmp/multipartBody7680427604931392220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296172740,"filename":"image_18032025_12_08_48_6085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52391cdeec93fcc354c06f78d626a3df.jpg","text":"TemporaryFile(/tmp/multipartBody5922570042314464089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296172740,"filename":"image_18032025_12_08_36_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0039715d20d30141daeac8d14f1332d5.jpg","text":"TemporaryFile(/tmp/multipartBody5719702069823956829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296172740,"filename":"image_18032025_12_08_54_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cea62f21d17e4a61a4604ff28a44fa4c.jpg","text":"TemporaryFile(/tmp/multipartBody2852044504664993859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296172740,"filename":"image_18032025_12_08_23_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7ca280c8e11bcaf693e9cb910766693d.jpg","text":"TemporaryFile(/tmp/multipartBody4908298789345077182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296172740,"filename":"image_18032025_12_08_42_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f36936d0246872416e74f7ef78aa531e.jpg","text":"TemporaryFile(/tmp/multipartBody3105293450540716949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296172740,"filename":"image_18032025_12_08_29_6078.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345092679","file1":"1345092628","file0":"1345092598","file4":"1345092688","file5":"1345092691","file3":"1345092683"},"map_files_photo_id_array":[{"photo_id":"1345092691","filename":"file5"},{"photo_id":"1345092679","filename":"file2"},{"photo_id":"1345092688","filename":"file4"},{"photo_id":"1345092628","filename":"file1"},{"photo_id":"1345092598","filename":"file0"},{"photo_id":"1345092683","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345092628":["hashtag1","hashtag2"]},{"1345092683":["hashtag1","hashtag2"]},{"1345092598":["hashtag1","hashtag2"]},{"1345092691":["hashtag1","hashtag2"]},{"1345092679":["hashtag1","hashtag2"]},{"1345092688":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345092628, 1345092683, 1345092598, 1345092691, 1345092679, 1345092688)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.14936828613281 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:09:32.392673
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_54_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_48_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_41_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_35_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_29_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_23_6079.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_54_6076.jpg', '/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_48_6079.jpg', '/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_41_6113.jpg', '/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_35_6107.jpg', '/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_29_6074.jpg', '/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_23_6079.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_54_6076.jpg
/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_48_6079.jpg
/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_41_6113.jpg
/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_35_6107.jpg
/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_29_6074.jpg
/home/nano/Desktop/images/18032025/12/09/image_18032025_12_09_23_6079.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345092756","1345092747","1345092845","1345092815","1345092859","1345092742"],"photo_ids_order":["1345092742","1345092747","1345092756","1345092815","1345092845","1345092859"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ee055799393b73961407e93abd7a56d9.jpg","text":"TemporaryFile(/tmp/multipartBody5013894231969663980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296232833,"filename":"image_18032025_12_09_41_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/460c4af4d346e7c1d6010812e3bbabe9.jpg","text":"TemporaryFile(/tmp/multipartBody3677057914931454678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296232833,"filename":"image_18032025_12_09_48_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/78097a29854c61f0a1228d9946abd3ee.jpg","text":"TemporaryFile(/tmp/multipartBody6480483588688604940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296232833,"filename":"image_18032025_12_09_29_6074.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b342567c44b3313a30274201d11d55cd.jpg","text":"TemporaryFile(/tmp/multipartBody3609135888758132578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296232833,"filename":"image_18032025_12_09_35_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/992765124dace0d7f470ece118508e2b.jpg","text":"TemporaryFile(/tmp/multipartBody726473236681621268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296232833,"filename":"image_18032025_12_09_23_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3148e0fce262c79129d87c41833dc0e6.jpg","text":"TemporaryFile(/tmp/multipartBody5160753294779961720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296232833,"filename":"image_18032025_12_09_54_6076.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345092756","file1":"1345092747","file0":"1345092742","file4":"1345092845","file5":"1345092859","file3":"1345092815"},"map_files_photo_id_array":[{"photo_id":"1345092859","filename":"file5"},{"photo_id":"1345092756","filename":"file2"},{"photo_id":"1345092845","filename":"file4"},{"photo_id":"1345092747","filename":"file1"},{"photo_id":"1345092742","filename":"file0"},{"photo_id":"1345092815","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345092756":["hashtag1","hashtag2"]},{"1345092747":["hashtag1","hashtag2"]},{"1345092845":["hashtag1","hashtag2"]},{"1345092815":["hashtag1","hashtag2"]},{"1345092859":["hashtag1","hashtag2"]},{"1345092742":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345092756, 1345092747, 1345092845, 1345092815, 1345092859, 1345092742)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.346107959747314 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:10:32.516172
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_53_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_47_6075.jpg', 2), ('/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_41_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_35_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_29_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_23_6076.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_53_6081.jpg', '/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_47_6075.jpg', '/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_41_6077.jpg', '/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_35_6080.jpg', '/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_29_6077.jpg', '/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_23_6076.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_53_6081.jpg
/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_47_6075.jpg
/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_41_6077.jpg
/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_35_6080.jpg
/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_29_6077.jpg
/home/nano/Desktop/images/18032025/12/10/image_18032025_12_10_23_6076.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345092910","1345092918","1345092927","1345092906","1345092923","1345092916"],"photo_ids_order":["1345092906","1345092910","1345092916","1345092918","1345092923","1345092927"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b977fc4b20a999b627404378c83c786f.jpg","text":"TemporaryFile(/tmp/multipartBody6568809977346340831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296292949,"filename":"image_18032025_12_10_47_6075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f04547907b66444e73c5dc07d04ce871.jpg","text":"TemporaryFile(/tmp/multipartBody3183688514447745496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296292949,"filename":"image_18032025_12_10_35_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a6a7f589ddc47b88e2f48cf0700bb1c.jpg","text":"TemporaryFile(/tmp/multipartBody5847172648031884375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296292949,"filename":"image_18032025_12_10_23_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d54a847358d908c76634b5b3e7bbca59.jpg","text":"TemporaryFile(/tmp/multipartBody683646887835873516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296292949,"filename":"image_18032025_12_10_53_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a6b2a6ee55b28316de3a7e6a418f908a.jpg","text":"TemporaryFile(/tmp/multipartBody7415386336103280560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296292949,"filename":"image_18032025_12_10_29_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/499e4e58e7140897eda2577b9ed6084f.jpg","text":"TemporaryFile(/tmp/multipartBody6585599551910001050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296292949,"filename":"image_18032025_12_10_41_6077.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345092916","file1":"1345092910","file0":"1345092906","file4":"1345092923","file5":"1345092927","file3":"1345092918"},"map_files_photo_id_array":[{"photo_id":"1345092927","filename":"file5"},{"photo_id":"1345092916","filename":"file2"},{"photo_id":"1345092923","filename":"file4"},{"photo_id":"1345092910","filename":"file1"},{"photo_id":"1345092906","filename":"file0"},{"photo_id":"1345092918","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345092910":["hashtag1","hashtag2"]},{"1345092918":["hashtag1","hashtag2"]},{"1345092927":["hashtag1","hashtag2"]},{"1345092906":["hashtag1","hashtag2"]},{"1345092923":["hashtag1","hashtag2"]},{"1345092916":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345092910, 1345092918, 1345092927, 1345092906, 1345092923, 1345092916)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.63913321495056 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:11:32.614158
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_53_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_47_6068.jpg', 2), ('/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_41_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_35_6062.jpg', 2), ('/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_29_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_23_6076.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_53_6067.jpg', '/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_47_6068.jpg', '/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_41_6077.jpg', '/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_35_6062.jpg', '/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_29_6050.jpg', '/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_23_6076.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_53_6067.jpg
/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_47_6068.jpg
/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_41_6077.jpg
/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_35_6062.jpg
/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_29_6050.jpg
/home/nano/Desktop/images/18032025/12/11/image_18032025_12_11_23_6076.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345092960","1345092963","1345092951","1345092945","1345092947","1345092956"],"photo_ids_order":["1345092945","1345092947","1345092951","1345092956","1345092960","1345092963"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/05005ae430ab51448db5411be34727f1.jpg","text":"TemporaryFile(/tmp/multipartBody5571620002604340242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296353034,"filename":"image_18032025_12_11_29_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f8dfe0ce4c2267bcced0535df5c7938.jpg","text":"TemporaryFile(/tmp/multipartBody5823600842488111318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296353034,"filename":"image_18032025_12_11_23_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3cbb1ebd2282a7e856977ce34c91ec1c.jpg","text":"TemporaryFile(/tmp/multipartBody1620689394952354390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296353034,"filename":"image_18032025_12_11_41_6077.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0edf61a24935091e6934199fe12ff1e6.jpg","text":"TemporaryFile(/tmp/multipartBody9044910763140112134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296353034,"filename":"image_18032025_12_11_53_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d4056bf739888d3f93f68c1c281d50ce.jpg","text":"TemporaryFile(/tmp/multipartBody5944093061401701490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296353034,"filename":"image_18032025_12_11_47_6068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ece5fa8bcc247d63f046e60a95a62af9.jpg","text":"TemporaryFile(/tmp/multipartBody1421201333673345172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296353034,"filename":"image_18032025_12_11_35_6062.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345092951","file1":"1345092947","file0":"1345092945","file4":"1345092960","file5":"1345092963","file3":"1345092956"},"map_files_photo_id_array":[{"photo_id":"1345092963","filename":"file5"},{"photo_id":"1345092951","filename":"file2"},{"photo_id":"1345092960","filename":"file4"},{"photo_id":"1345092947","filename":"file1"},{"photo_id":"1345092945","filename":"file0"},{"photo_id":"1345092956","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345092960":["hashtag1","hashtag2"]},{"1345092963":["hashtag1","hashtag2"]},{"1345092951":["hashtag1","hashtag2"]},{"1345092945":["hashtag1","hashtag2"]},{"1345092947":["hashtag1","hashtag2"]},{"1345092956":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345092960, 1345092963, 1345092951, 1345092945, 1345092947, 1345092956)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.23300004005432 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:12:32.745437
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_53_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_47_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_41_5069.jpg', 2), ('/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_36_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_30_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_24_6075.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_53_6076.jpg', '/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_47_6111.jpg', '/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_41_5069.jpg', '/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_36_6078.jpg', '/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_30_6105.jpg', '/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_24_6075.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_53_6076.jpg
/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_47_6111.jpg
/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_41_5069.jpg
/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_36_6078.jpg
/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_30_6105.jpg
/home/nano/Desktop/images/18032025/12/12/image_18032025_12_12_24_6075.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345092996","1345092984","1345092977","1345093009","1345093003","1345092990"],"photo_ids_order":["1345092977","1345092984","1345092990","1345092996","1345093003","1345093009"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e313089d222d5a01536a47551023a6d5.jpg","text":"TemporaryFile(/tmp/multipartBody4924145081075595934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296413198,"filename":"image_18032025_12_12_36_6078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/738bda643d139238084bfa05e3c5ecac.jpg","text":"TemporaryFile(/tmp/multipartBody4378477941903914831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296413198,"filename":"image_18032025_12_12_47_6111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ae8063f87ec15f5b9b363d45e30c2854.jpg","text":"TemporaryFile(/tmp/multipartBody748974249653190863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296413198,"filename":"image_18032025_12_12_53_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c713abf47a616c1a37966b46591963ef.jpg","text":"TemporaryFile(/tmp/multipartBody5307435230549866546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296413198,"filename":"image_18032025_12_12_24_6075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c32ba561dc696fdec1dfe41d9e71e3ff.jpg","text":"TemporaryFile(/tmp/multipartBody4927356156653799953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296413198,"filename":"image_18032025_12_12_30_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/45b91bf758aa5a571b6cdb4fc98d20ff.jpg","text":"TemporaryFile(/tmp/multipartBody8246380623209629294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296413198,"filename":"image_18032025_12_12_41_5069.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345092990","file1":"1345092984","file0":"1345092977","file4":"1345093003","file5":"1345093009","file3":"1345092996"},"map_files_photo_id_array":[{"photo_id":"1345093009","filename":"file5"},{"photo_id":"1345092990","filename":"file2"},{"photo_id":"1345093003","filename":"file4"},{"photo_id":"1345092984","filename":"file1"},{"photo_id":"1345092977","filename":"file0"},{"photo_id":"1345092996","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345092996":["hashtag1","hashtag2"]},{"1345092984":["hashtag1","hashtag2"]},{"1345092977":["hashtag1","hashtag2"]},{"1345093009":["hashtag1","hashtag2"]},{"1345093003":["hashtag1","hashtag2"]},{"1345092990":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345092996, 1345092984, 1345092977, 1345093009, 1345093003, 1345092990)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.092281103134155 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:13:31.842011
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_53_6104.jpg', 2), ('/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_47_5068.jpg', 2), ('/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_42_6075.jpg', 2), ('/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_36_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_30_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_23_6072.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_53_6104.jpg', '/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_47_5068.jpg', '/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_42_6075.jpg', '/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_36_6108.jpg', '/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_30_6072.jpg', '/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_23_6072.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_53_6104.jpg
/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_47_5068.jpg
/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_42_6075.jpg
/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_36_6108.jpg
/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_30_6072.jpg
/home/nano/Desktop/images/18032025/12/13/image_18032025_12_13_23_6072.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093041","1345093035","1345093046","1345093031","1345093019","1345093027"],"photo_ids_order":["1345093019","1345093027","1345093031","1345093035","1345093041","1345093046"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9639794fd2bbc907644a0c83a5d3e933.jpg","text":"TemporaryFile(/tmp/multipartBody1212496887526277364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296472276,"filename":"image_18032025_12_13_30_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/231576b1a0465fcc2d90f8af7db3c7b7.jpg","text":"TemporaryFile(/tmp/multipartBody6586885467794593793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296472276,"filename":"image_18032025_12_13_36_6108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/873739f4068ecc45552ab4b779b9d8bb.jpg","text":"TemporaryFile(/tmp/multipartBody7865244288528454575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296472276,"filename":"image_18032025_12_13_23_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/42a381a4bc1f4420362c68b3f73189a7.jpg","text":"TemporaryFile(/tmp/multipartBody2495615943615940235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296472276,"filename":"image_18032025_12_13_42_6075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e2249592a6538b31d1bf41e4309c9d0.jpg","text":"TemporaryFile(/tmp/multipartBody2776473386243116301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296472276,"filename":"image_18032025_12_13_53_6104.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63c663ef0409f7bd65266c0f12b87a7f.jpg","text":"TemporaryFile(/tmp/multipartBody5341703315243586248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296472276,"filename":"image_18032025_12_13_47_5068.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093031","file1":"1345093027","file0":"1345093019","file4":"1345093041","file5":"1345093046","file3":"1345093035"},"map_files_photo_id_array":[{"photo_id":"1345093046","filename":"file5"},{"photo_id":"1345093031","filename":"file2"},{"photo_id":"1345093041","filename":"file4"},{"photo_id":"1345093027","filename":"file1"},{"photo_id":"1345093019","filename":"file0"},{"photo_id":"1345093035","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093041":["hashtag1","hashtag2"]},{"1345093035":["hashtag1","hashtag2"]},{"1345093046":["hashtag1","hashtag2"]},{"1345093031":["hashtag1","hashtag2"]},{"1345093019":["hashtag1","hashtag2"]},{"1345093027":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093041, 1345093035, 1345093046, 1345093031, 1345093019, 1345093027)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.456660509109497 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:14:31.960439
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_54_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_47_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_41_6085.jpg', 2), ('/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_35_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_29_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_23_6082.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_54_6087.jpg', '/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_47_6080.jpg', '/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_41_6085.jpg', '/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_35_6116.jpg', '/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_29_6087.jpg', '/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_23_6082.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_54_6087.jpg
/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_47_6080.jpg
/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_41_6085.jpg
/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_35_6116.jpg
/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_29_6087.jpg
/home/nano/Desktop/images/18032025/12/14/image_18032025_12_14_23_6082.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093065","1345093091","1345093085","1345093079","1345093057","1345093072"],"photo_ids_order":["1345093057","1345093065","1345093072","1345093079","1345093085","1345093091"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f26f9ab7266b77f46029e5c81f3dfa2f.jpg","text":"TemporaryFile(/tmp/multipartBody2343826319459961227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296532390,"filename":"image_18032025_12_14_47_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/50063a5f236de83f684a21c267a409be.jpg","text":"TemporaryFile(/tmp/multipartBody223168142515081220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296532390,"filename":"image_18032025_12_14_23_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e777a44baafdea2912d767e09bc4e9b1.jpg","text":"TemporaryFile(/tmp/multipartBody3700718327752522459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296532390,"filename":"image_18032025_12_14_29_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/89cba394ccb0921be65d547065d9a445.jpg","text":"TemporaryFile(/tmp/multipartBody872040263631157410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296532390,"filename":"image_18032025_12_14_35_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/617acb26f62f665e752fe303ea9d2613.jpg","text":"TemporaryFile(/tmp/multipartBody2695642700606130037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296532390,"filename":"image_18032025_12_14_54_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb3559b48cb502f38cd1e75625432789.jpg","text":"TemporaryFile(/tmp/multipartBody6405793600308101701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296532390,"filename":"image_18032025_12_14_41_6085.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093072","file1":"1345093065","file0":"1345093057","file4":"1345093085","file5":"1345093091","file3":"1345093079"},"map_files_photo_id_array":[{"photo_id":"1345093091","filename":"file5"},{"photo_id":"1345093072","filename":"file2"},{"photo_id":"1345093085","filename":"file4"},{"photo_id":"1345093065","filename":"file1"},{"photo_id":"1345093057","filename":"file0"},{"photo_id":"1345093079","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093065":["hashtag1","hashtag2"]},{"1345093091":["hashtag1","hashtag2"]},{"1345093085":["hashtag1","hashtag2"]},{"1345093079":["hashtag1","hashtag2"]},{"1345093057":["hashtag1","hashtag2"]},{"1345093072":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093065, 1345093091, 1345093085, 1345093079, 1345093057, 1345093072)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.86609697341919 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:15:32.084020
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_54_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_47_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_41_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_35_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_29_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_23_6088.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_54_6117.jpg', '/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_47_6089.jpg', '/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_41_6087.jpg', '/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_35_6089.jpg', '/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_29_6086.jpg', '/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_23_6088.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_54_6117.jpg
/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_47_6089.jpg
/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_41_6087.jpg
/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_35_6089.jpg
/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_29_6086.jpg
/home/nano/Desktop/images/18032025/12/15/image_18032025_12_15_23_6088.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093110","1345093121","1345093115","1345093100","1345093106","1345093126"],"photo_ids_order":["1345093100","1345093106","1345093110","1345093115","1345093121","1345093126"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d1cc7d66a48ce32173fad48c88244d95.jpg","text":"TemporaryFile(/tmp/multipartBody1029166229442683608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296592579,"filename":"image_18032025_12_15_41_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0cf8e0619dd2b39f948ca45aa8d9b016.jpg","text":"TemporaryFile(/tmp/multipartBody7480762354047224351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296592579,"filename":"image_18032025_12_15_29_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/99522ca46f837b941a6b47c8f2959a62.jpg","text":"TemporaryFile(/tmp/multipartBody3092654626364161962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296592579,"filename":"image_18032025_12_15_35_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/66e29e40f3fea1800642a03b70e494b7.jpg","text":"TemporaryFile(/tmp/multipartBody1797481956158408050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296592579,"filename":"image_18032025_12_15_54_6117.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49fad91e8e82e0c6188c6fbac0eb0f92.jpg","text":"TemporaryFile(/tmp/multipartBody5898768426976282958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296592579,"filename":"image_18032025_12_15_47_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84db445c973c03f8aab454e897816373.jpg","text":"TemporaryFile(/tmp/multipartBody4333594269791726906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296592579,"filename":"image_18032025_12_15_23_6088.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093110","file1":"1345093106","file0":"1345093100","file4":"1345093121","file5":"1345093126","file3":"1345093115"},"map_files_photo_id_array":[{"photo_id":"1345093126","filename":"file5"},{"photo_id":"1345093110","filename":"file2"},{"photo_id":"1345093121","filename":"file4"},{"photo_id":"1345093106","filename":"file1"},{"photo_id":"1345093100","filename":"file0"},{"photo_id":"1345093115","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093110":["hashtag1","hashtag2"]},{"1345093121":["hashtag1","hashtag2"]},{"1345093115":["hashtag1","hashtag2"]},{"1345093100":["hashtag1","hashtag2"]},{"1345093106":["hashtag1","hashtag2"]},{"1345093126":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093110, 1345093121, 1345093115, 1345093100, 1345093106, 1345093126)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.471824645996094 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:16:32.213462
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_53_6114.jpg', 2), ('/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_47_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_41_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_35_6085.jpg', 2), ('/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_29_5082.jpg', 2), ('/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_24_6087.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_53_6114.jpg', '/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_47_6082.jpg', '/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_41_6088.jpg', '/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_35_6085.jpg', '/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_29_5082.jpg', '/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_24_6087.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_53_6114.jpg
/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_47_6082.jpg
/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_41_6088.jpg
/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_35_6085.jpg
/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_29_5082.jpg
/home/nano/Desktop/images/18032025/12/16/image_18032025_12_16_24_6087.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093157","1345093151","1345093145","1345093162","1345093141","1345093135"],"photo_ids_order":["1345093135","1345093141","1345093145","1345093151","1345093157","1345093162"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd9ea765313d6731f40c06f04078cced.jpg","text":"TemporaryFile(/tmp/multipartBody7333821436036540396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296652701,"filename":"image_18032025_12_16_29_5082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18e981e3d343f18be1c5cfa1d44c1c78.jpg","text":"TemporaryFile(/tmp/multipartBody7331633416702252501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296652701,"filename":"image_18032025_12_16_35_6085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/930795a23a1e62bc04eafcbfdc93ccb5.jpg","text":"TemporaryFile(/tmp/multipartBody6123406076990119393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296652701,"filename":"image_18032025_12_16_41_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5bffb369ed02006ba0c4bd654640fc56.jpg","text":"TemporaryFile(/tmp/multipartBody6123036595075470084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296652701,"filename":"image_18032025_12_16_24_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bdc77d64c56b79c6317ce651449ad4cb.jpg","text":"TemporaryFile(/tmp/multipartBody3644964689137054384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296652701,"filename":"image_18032025_12_16_47_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/75e887aeca1c7b32a15a27a01015df0e.jpg","text":"TemporaryFile(/tmp/multipartBody7290866834666762191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296652701,"filename":"image_18032025_12_16_53_6114.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093145","file1":"1345093141","file0":"1345093135","file4":"1345093157","file5":"1345093162","file3":"1345093151"},"map_files_photo_id_array":[{"photo_id":"1345093162","filename":"file5"},{"photo_id":"1345093145","filename":"file2"},{"photo_id":"1345093157","filename":"file4"},{"photo_id":"1345093141","filename":"file1"},{"photo_id":"1345093135","filename":"file0"},{"photo_id":"1345093151","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093157":["hashtag1","hashtag2"]},{"1345093151":["hashtag1","hashtag2"]},{"1345093145":["hashtag1","hashtag2"]},{"1345093162":["hashtag1","hashtag2"]},{"1345093141":["hashtag1","hashtag2"]},{"1345093135":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093157, 1345093151, 1345093145, 1345093162, 1345093141, 1345093135)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.044225692749023 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:17:32.323179
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_53_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_47_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_41_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_35_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_29_5076.jpg', 2), ('/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_24_6090.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_53_6088.jpg', '/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_47_6090.jpg', '/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_41_6120.jpg', '/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_35_6093.jpg', '/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_29_5076.jpg', '/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_24_6090.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_53_6088.jpg
/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_47_6090.jpg
/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_41_6120.jpg
/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_35_6093.jpg
/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_29_5076.jpg
/home/nano/Desktop/images/18032025/12/17/image_18032025_12_17_24_6090.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093182","1345093196","1345093187","1345093192","1345093177","1345093171"],"photo_ids_order":["1345093171","1345093177","1345093182","1345093187","1345093192","1345093196"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/076b6ea94ed05c9b442fb6092b96c10d.jpg","text":"TemporaryFile(/tmp/multipartBody2796785816730462430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296712875,"filename":"image_18032025_12_17_41_6120.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d529719588b32792c9627d80e3ef2d6.jpg","text":"TemporaryFile(/tmp/multipartBody4539806582606058489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296712875,"filename":"image_18032025_12_17_24_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f536631c9d5b513d8120a18fdb3bdce0.jpg","text":"TemporaryFile(/tmp/multipartBody1510713147272523729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296712875,"filename":"image_18032025_12_17_35_6093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e781ffeb24168092901f15af827fb655.jpg","text":"TemporaryFile(/tmp/multipartBody6609566519776156757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296712875,"filename":"image_18032025_12_17_29_5076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b786a2a0e324eb0aee96f1de57dcd39d.jpg","text":"TemporaryFile(/tmp/multipartBody5335275868357719153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296712875,"filename":"image_18032025_12_17_47_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e39b4cb14137f4ff5c8456b84f05a0c7.jpg","text":"TemporaryFile(/tmp/multipartBody5520092185393887864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296712875,"filename":"image_18032025_12_17_53_6088.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093182","file1":"1345093177","file0":"1345093171","file4":"1345093192","file5":"1345093196","file3":"1345093187"},"map_files_photo_id_array":[{"photo_id":"1345093196","filename":"file5"},{"photo_id":"1345093182","filename":"file2"},{"photo_id":"1345093192","filename":"file4"},{"photo_id":"1345093177","filename":"file1"},{"photo_id":"1345093171","filename":"file0"},{"photo_id":"1345093187","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093182":["hashtag1","hashtag2"]},{"1345093196":["hashtag1","hashtag2"]},{"1345093187":["hashtag1","hashtag2"]},{"1345093192":["hashtag1","hashtag2"]},{"1345093177":["hashtag1","hashtag2"]},{"1345093171":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093182, 1345093196, 1345093187, 1345093192, 1345093177, 1345093171)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.495923280715942 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:18:32.434651
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_53_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_47_6038.jpg', 2), ('/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_41_5076.jpg', 2), ('/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_36_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_30_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_18_6087.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_53_6078.jpg', '/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_47_6038.jpg', '/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_41_5076.jpg', '/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_36_5967.jpg', '/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_30_6084.jpg', '/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_18_6087.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_53_6078.jpg
/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_47_6038.jpg
/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_41_5076.jpg
/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_36_5967.jpg
/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_30_6084.jpg
/home/nano/Desktop/images/18032025/12/18/image_18032025_12_18_18_6087.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093236","1345093220","1345093214","1345093231","1345093225","1345093210"],"photo_ids_order":["1345093210","1345093214","1345093220","1345093225","1345093231","1345093236"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/80ae08f584967f9164a7625224864697.jpg","text":"TemporaryFile(/tmp/multipartBody6620145100030179533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296773048,"filename":"image_18032025_12_18_18_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd01cf18570f22c60431b13d293e40bf.jpg","text":"TemporaryFile(/tmp/multipartBody7454307547919812058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296773048,"filename":"image_18032025_12_18_41_5076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3de1c19c1f2268b839b92d582a1fc234.jpg","text":"TemporaryFile(/tmp/multipartBody5013391946953931995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296773048,"filename":"image_18032025_12_18_47_6038.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c4251f168ba704880e424488a0352c13.jpg","text":"TemporaryFile(/tmp/multipartBody2452196101134375136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296773048,"filename":"image_18032025_12_18_30_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b0a9c9e426dd2fe7cdaa838de88ed2b3.jpg","text":"TemporaryFile(/tmp/multipartBody2994532012936112636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296773048,"filename":"image_18032025_12_18_36_5967.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/92b668f4b5a860c66bb5e6f9520e28f7.jpg","text":"TemporaryFile(/tmp/multipartBody7115066162755877019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296773048,"filename":"image_18032025_12_18_53_6078.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093220","file1":"1345093214","file0":"1345093210","file4":"1345093231","file5":"1345093236","file3":"1345093225"},"map_files_photo_id_array":[{"photo_id":"1345093236","filename":"file5"},{"photo_id":"1345093220","filename":"file2"},{"photo_id":"1345093231","filename":"file4"},{"photo_id":"1345093214","filename":"file1"},{"photo_id":"1345093210","filename":"file0"},{"photo_id":"1345093225","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093236":["hashtag1","hashtag2"]},{"1345093220":["hashtag1","hashtag2"]},{"1345093214":["hashtag1","hashtag2"]},{"1345093231":["hashtag1","hashtag2"]},{"1345093225":["hashtag1","hashtag2"]},{"1345093210":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093236, 1345093220, 1345093214, 1345093231, 1345093225, 1345093210)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.210952758789062 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:19:32.560983
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_53_6096.jpg', 2), ('/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_47_5075.jpg', 2), ('/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_42_6114.jpg', 2), ('/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_36_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_30_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_23_6081.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_53_6096.jpg', '/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_47_5075.jpg', '/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_42_6114.jpg', '/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_36_6090.jpg', '/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_30_6082.jpg', '/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_23_6081.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_53_6096.jpg
/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_47_5075.jpg
/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_42_6114.jpg
/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_36_6090.jpg
/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_30_6082.jpg
/home/nano/Desktop/images/18032025/12/19/image_18032025_12_19_23_6081.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093269","1345093280","1345093298","1345093253","1345093246","1345093293"],"photo_ids_order":["1345093246","1345093253","1345093269","1345093280","1345093293","1345093298"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f9e3f31b1e50727bd54bc8405150b98d.jpg","text":"TemporaryFile(/tmp/multipartBody4719917711016559486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296833162,"filename":"image_18032025_12_19_42_6114.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6e39b042fe31c618e80203152d4ce631.jpg","text":"TemporaryFile(/tmp/multipartBody2553927640320189387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296833162,"filename":"image_18032025_12_19_36_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d5244e913c5509c6212ab50135153d20.jpg","text":"TemporaryFile(/tmp/multipartBody1156897893912816073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296833162,"filename":"image_18032025_12_19_23_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/193ca1e9127b8b61a9a26cc24ea2154b.jpg","text":"TemporaryFile(/tmp/multipartBody5210829083681043765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296833162,"filename":"image_18032025_12_19_47_5075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a432056c45f38928c96734255ebc1dbf.jpg","text":"TemporaryFile(/tmp/multipartBody4178065299358199295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296833162,"filename":"image_18032025_12_19_53_6096.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4d7d2a77204bf2e3c1442c516c17e113.jpg","text":"TemporaryFile(/tmp/multipartBody4924655444032313330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296833162,"filename":"image_18032025_12_19_30_6082.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093269","file1":"1345093253","file0":"1345093246","file4":"1345093293","file5":"1345093298","file3":"1345093280"},"map_files_photo_id_array":[{"photo_id":"1345093298","filename":"file5"},{"photo_id":"1345093269","filename":"file2"},{"photo_id":"1345093293","filename":"file4"},{"photo_id":"1345093253","filename":"file1"},{"photo_id":"1345093246","filename":"file0"},{"photo_id":"1345093280","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093269":["hashtag1","hashtag2"]},{"1345093280":["hashtag1","hashtag2"]},{"1345093298":["hashtag1","hashtag2"]},{"1345093253":["hashtag1","hashtag2"]},{"1345093246":["hashtag1","hashtag2"]},{"1345093293":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093269, 1345093280, 1345093298, 1345093253, 1345093246, 1345093293)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.46564316749573 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:20:32.676581
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_48_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_41_6126.jpg', 2), ('/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_35_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_30_6025.jpg', 2), ('/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_23_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_11_6115.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_48_6128.jpg', '/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_41_6126.jpg', '/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_35_5790.jpg', '/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_30_6025.jpg', '/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_23_6084.jpg', '/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_11_6115.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_48_6128.jpg
/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_41_6126.jpg
/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_35_5790.jpg
/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_30_6025.jpg
/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_23_6084.jpg
/home/nano/Desktop/images/18032025/12/20/image_18032025_12_20_11_6115.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093332","1345093337","1345093322","1345093318","1345093327","1345093312"],"photo_ids_order":["1345093312","1345093318","1345093322","1345093327","1345093332","1345093337"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/da6bb4f52d97bcaedacb789ce5e461c1.jpg","text":"TemporaryFile(/tmp/multipartBody7486563352808259404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296893248,"filename":"image_18032025_12_20_23_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9606554d7b196d7986508872e12f1112.jpg","text":"TemporaryFile(/tmp/multipartBody266871201082997647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296893248,"filename":"image_18032025_12_20_11_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1652929561bd318cca743b651115fb20.jpg","text":"TemporaryFile(/tmp/multipartBody2668681081977473148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296893248,"filename":"image_18032025_12_20_35_5790.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9e4fad0ba6c8dff8ecccd7261b69bc2.jpg","text":"TemporaryFile(/tmp/multipartBody2435129797814542737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296893248,"filename":"image_18032025_12_20_41_6126.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0d364cd17a95f1bb6590ba1ac8a83054.jpg","text":"TemporaryFile(/tmp/multipartBody5559900739671447335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296893248,"filename":"image_18032025_12_20_30_6025.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f332b851162f27e38c5626abca4b771.jpg","text":"TemporaryFile(/tmp/multipartBody7022746483561706778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296893248,"filename":"image_18032025_12_20_48_6128.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093322","file1":"1345093318","file0":"1345093312","file4":"1345093332","file5":"1345093337","file3":"1345093327"},"map_files_photo_id_array":[{"photo_id":"1345093337","filename":"file5"},{"photo_id":"1345093322","filename":"file2"},{"photo_id":"1345093332","filename":"file4"},{"photo_id":"1345093318","filename":"file1"},{"photo_id":"1345093312","filename":"file0"},{"photo_id":"1345093327","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093332":["hashtag1","hashtag2"]},{"1345093337":["hashtag1","hashtag2"]},{"1345093322":["hashtag1","hashtag2"]},{"1345093318":["hashtag1","hashtag2"]},{"1345093327":["hashtag1","hashtag2"]},{"1345093312":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093332, 1345093337, 1345093322, 1345093318, 1345093327, 1345093312)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.83428168296814 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:21:31.798776
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_41_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_35_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_29_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_23_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_17_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_11_6167.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_41_6092.jpg', '/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_35_6083.jpg', '/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_29_6084.jpg', '/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_23_6086.jpg', '/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_17_6084.jpg', '/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_11_6167.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_41_6092.jpg
/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_35_6083.jpg
/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_29_6084.jpg
/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_23_6086.jpg
/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_17_6084.jpg
/home/nano/Desktop/images/18032025/12/21/image_18032025_12_21_11_6167.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093368","1345093353","1345093358","1345093349","1345093372","1345093363"],"photo_ids_order":["1345093349","1345093353","1345093358","1345093363","1345093368","1345093372"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19d6d2628ab595a8e5255ec6b5e5aa18.jpg","text":"TemporaryFile(/tmp/multipartBody6342393509952228701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296952245,"filename":"image_18032025_12_21_17_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/622b98947286a60361528a974ebc2927.jpg","text":"TemporaryFile(/tmp/multipartBody8894598013178054689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296952245,"filename":"image_18032025_12_21_35_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c12807ae2a10b6c65b5c4815a941692b.jpg","text":"TemporaryFile(/tmp/multipartBody8419294828758463979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296952245,"filename":"image_18032025_12_21_29_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3ec8144c7a5be6c87b5109b514bdaa62.jpg","text":"TemporaryFile(/tmp/multipartBody5810918757666226319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296952245,"filename":"image_18032025_12_21_41_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4a61aaa216e8ace82d4379946ff6d89.jpg","text":"TemporaryFile(/tmp/multipartBody4053545739700334574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296952245,"filename":"image_18032025_12_21_11_6167.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47a50011f70dd1f8e01155e5386cd11e.jpg","text":"TemporaryFile(/tmp/multipartBody894801850877723002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742296952245,"filename":"image_18032025_12_21_23_6086.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093358","file1":"1345093353","file0":"1345093349","file4":"1345093368","file5":"1345093372","file3":"1345093363"},"map_files_photo_id_array":[{"photo_id":"1345093372","filename":"file5"},{"photo_id":"1345093358","filename":"file2"},{"photo_id":"1345093368","filename":"file4"},{"photo_id":"1345093353","filename":"file1"},{"photo_id":"1345093349","filename":"file0"},{"photo_id":"1345093363","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093368":["hashtag1","hashtag2"]},{"1345093353":["hashtag1","hashtag2"]},{"1345093358":["hashtag1","hashtag2"]},{"1345093349":["hashtag1","hashtag2"]},{"1345093372":["hashtag1","hashtag2"]},{"1345093363":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093368, 1345093353, 1345093358, 1345093349, 1345093372, 1345093363)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.499154090881348 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:22:31.883491
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_54_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_48_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_41_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_35_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_29_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_23_6087.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_54_6079.jpg', '/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_48_6089.jpg', '/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_41_6083.jpg', '/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_35_6090.jpg', '/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_29_6084.jpg', '/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_23_6087.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_54_6079.jpg
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_48_6089.jpg
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_41_6083.jpg
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_35_6090.jpg
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_29_6084.jpg
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_23_6087.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3627448081970215 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:23:02.618138
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_54_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_48_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_41_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_35_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_29_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_23_6087.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_54_6079.jpg', '/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_48_6089.jpg', '/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_41_6083.jpg', '/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_35_6090.jpg', '/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_29_6084.jpg', '/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_23_6087.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_54_6079.jpg
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_48_6089.jpg
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_41_6083.jpg
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_35_6090.jpg
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_29_6084.jpg
/home/nano/Desktop/images/18032025/12/22/image_18032025_12_22_23_6087.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093413","1345093410","1345093412","1345093417","1345093411","1345093414"],"photo_ids_order":["1345093410","1345093411","1345093412","1345093413","1345093414","1345093417"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3b5c988396095f7126717b6fda74bec1.jpg","text":"TemporaryFile(/tmp/multipartBody3708178508127487712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297043062,"filename":"image_18032025_12_22_35_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f57ddca4b3645404a4f652902de61893.jpg","text":"TemporaryFile(/tmp/multipartBody3984666628446669642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297043062,"filename":"image_18032025_12_22_54_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/24512ba1288c110c46af6e1cde236086.jpg","text":"TemporaryFile(/tmp/multipartBody6684218260472016428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297043062,"filename":"image_18032025_12_22_41_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5aebb6e1fbd2b919ae2cfddd4f7ebf44.jpg","text":"TemporaryFile(/tmp/multipartBody8905650480825869298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297043062,"filename":"image_18032025_12_22_23_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c367a7a69b2b093d7debc4cde315c133.jpg","text":"TemporaryFile(/tmp/multipartBody66260923188012192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297043062,"filename":"image_18032025_12_22_48_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/789a2cc1ca60b91c467ed370f1093cdb.jpg","text":"TemporaryFile(/tmp/multipartBody4363264178221294922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297043062,"filename":"image_18032025_12_22_29_6084.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093412","file1":"1345093411","file0":"1345093410","file4":"1345093414","file5":"1345093417","file3":"1345093413"},"map_files_photo_id_array":[{"photo_id":"1345093417","filename":"file5"},{"photo_id":"1345093412","filename":"file2"},{"photo_id":"1345093414","filename":"file4"},{"photo_id":"1345093411","filename":"file1"},{"photo_id":"1345093410","filename":"file0"},{"photo_id":"1345093413","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093413":["hashtag1","hashtag2"]},{"1345093410":["hashtag1","hashtag2"]},{"1345093412":["hashtag1","hashtag2"]},{"1345093417":["hashtag1","hashtag2"]},{"1345093411":["hashtag1","hashtag2"]},{"1345093414":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093413, 1345093410, 1345093412, 1345093417, 1345093411, 1345093414)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.99661684036255 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:24:02.907495
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_54_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_48_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_41_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_35_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_29_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_23_6075.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_54_6119.jpg', '/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_48_6087.jpg', '/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_41_6086.jpg', '/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_35_6088.jpg', '/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_29_6087.jpg', '/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_23_6075.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_54_6119.jpg
/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_48_6087.jpg
/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_41_6086.jpg
/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_35_6088.jpg
/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_29_6087.jpg
/home/nano/Desktop/images/18032025/12/23/image_18032025_12_23_23_6075.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093452","1345093446","1345093454","1345093457","1345093448","1345093450"],"photo_ids_order":["1345093446","1345093448","1345093450","1345093452","1345093454","1345093457"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5071dfc30fd7135e7cd9dc7aa14af87.jpg","text":"TemporaryFile(/tmp/multipartBody4801130011768925017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297103434,"filename":"image_18032025_12_23_35_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a30c5b5dca202afe8cd4641cb6c90257.jpg","text":"TemporaryFile(/tmp/multipartBody3733068861707579393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297103434,"filename":"image_18032025_12_23_54_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7607ff2672246f66c8bd8cea7323a529.jpg","text":"TemporaryFile(/tmp/multipartBody2103433122426766907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297103434,"filename":"image_18032025_12_23_29_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f6a0730ad421e17bb610150305d46d3.jpg","text":"TemporaryFile(/tmp/multipartBody5120631172528160860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297103434,"filename":"image_18032025_12_23_23_6075.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ddb5bb66e19c53658da0081624fe5439.jpg","text":"TemporaryFile(/tmp/multipartBody4129588857029515139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297103434,"filename":"image_18032025_12_23_48_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d08b6ffd4949adf2e2df6f74e389c327.jpg","text":"TemporaryFile(/tmp/multipartBody6320324012537984701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297103434,"filename":"image_18032025_12_23_41_6086.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093450","file1":"1345093448","file0":"1345093446","file4":"1345093454","file5":"1345093457","file3":"1345093452"},"map_files_photo_id_array":[{"photo_id":"1345093457","filename":"file5"},{"photo_id":"1345093450","filename":"file2"},{"photo_id":"1345093454","filename":"file4"},{"photo_id":"1345093448","filename":"file1"},{"photo_id":"1345093446","filename":"file0"},{"photo_id":"1345093452","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093452":["hashtag1","hashtag2"]},{"1345093446":["hashtag1","hashtag2"]},{"1345093454":["hashtag1","hashtag2"]},{"1345093457":["hashtag1","hashtag2"]},{"1345093448":["hashtag1","hashtag2"]},{"1345093450":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093452, 1345093446, 1345093454, 1345093457, 1345093448, 1345093450)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.06687903404236 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:25:02.808851
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_54_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_47_6072.jpg', 2), ('/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_41_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_35_6001.jpg', 2), ('/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_29_6049.jpg', 2), ('/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_23_6088.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_54_6082.jpg', '/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_47_6072.jpg', '/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_41_6080.jpg', '/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_35_6001.jpg', '/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_29_6049.jpg', '/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_23_6088.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_54_6082.jpg
/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_47_6072.jpg
/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_41_6080.jpg
/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_35_6001.jpg
/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_29_6049.jpg
/home/nano/Desktop/images/18032025/12/24/image_18032025_12_24_23_6088.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093481","1345093484","1345093495","1345093498","1345093488","1345093491"],"photo_ids_order":["1345093481","1345093484","1345093488","1345093491","1345093495","1345093498"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/974f3fbecba0560b9ed2b3ed950c9431.jpg","text":"TemporaryFile(/tmp/multipartBody1234573255449215575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297163277,"filename":"image_18032025_12_24_54_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7220c0cc77cafaca1f293a12fd1aab34.jpg","text":"TemporaryFile(/tmp/multipartBody7756482255719309042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297163277,"filename":"image_18032025_12_24_47_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f60980c0e8ef68fa23a6677557b64a01.jpg","text":"TemporaryFile(/tmp/multipartBody35507415371985569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297163277,"filename":"image_18032025_12_24_29_6049.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3bd36a398b20398d8f98a4e15d500795.jpg","text":"TemporaryFile(/tmp/multipartBody4487142579323972354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297163277,"filename":"image_18032025_12_24_23_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0caadd68159be81f21daad45d633a6b7.jpg","text":"TemporaryFile(/tmp/multipartBody3765867558196457467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297163277,"filename":"image_18032025_12_24_41_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fef038af3fffa28ab44b92e1481ae3fd.jpg","text":"TemporaryFile(/tmp/multipartBody873884778385988837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297163277,"filename":"image_18032025_12_24_35_6001.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093488","file1":"1345093484","file0":"1345093481","file4":"1345093495","file5":"1345093498","file3":"1345093491"},"map_files_photo_id_array":[{"photo_id":"1345093498","filename":"file5"},{"photo_id":"1345093488","filename":"file2"},{"photo_id":"1345093495","filename":"file4"},{"photo_id":"1345093484","filename":"file1"},{"photo_id":"1345093481","filename":"file0"},{"photo_id":"1345093491","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093481":["hashtag1","hashtag2"]},{"1345093484":["hashtag1","hashtag2"]},{"1345093495":["hashtag1","hashtag2"]},{"1345093498":["hashtag1","hashtag2"]},{"1345093488":["hashtag1","hashtag2"]},{"1345093491":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093481, 1345093484, 1345093495, 1345093498, 1345093488, 1345093491)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.42951250076294 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:26:02.932535
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_41_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_35_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_23_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_11_5127.jpg', 2), ('/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_06_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/12/24/image_18032025_12_25_00_6110.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_41_6087.jpg', '/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_35_6090.jpg', '/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_23_6083.jpg', '/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_11_5127.jpg', '/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_06_6144.jpg', '/home/nano/Desktop/images/18032025/12/24/image_18032025_12_25_00_6110.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_41_6087.jpg
/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_35_6090.jpg
/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_23_6083.jpg
/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_11_5127.jpg
/home/nano/Desktop/images/18032025/12/25/image_18032025_12_25_06_6144.jpg
/home/nano/Desktop/images/18032025/12/24/image_18032025_12_25_00_6110.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3571014404296875 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:26:32.347569
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_53_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_47_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_41_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_35_6081.jpg', 2), ('/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_29_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_23_6006.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_53_6117.jpg', '/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_47_6067.jpg', '/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_41_6041.jpg', '/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_35_6081.jpg', '/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_29_6078.jpg', '/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_23_6006.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_53_6117.jpg
/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_47_6067.jpg
/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_41_6041.jpg
/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_35_6081.jpg
/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_29_6078.jpg
/home/nano/Desktop/images/18032025/12/26/image_18032025_12_26_23_6006.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093551","1345093535","1345093559","1345093547","1345093555","1345093540"],"photo_ids_order":["1345093535","1345093540","1345093547","1345093551","1345093555","1345093559"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d85cce6037f42723446a773f7e434be1.jpg","text":"TemporaryFile(/tmp/multipartBody3564507065940151499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297252793,"filename":"image_18032025_12_26_35_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/80f87bbd2786564e38a5227d7b8535ee.jpg","text":"TemporaryFile(/tmp/multipartBody3023083354552201483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297252793,"filename":"image_18032025_12_26_53_6117.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2b6a7278d9d1e4557df059fd99ea3f34.jpg","text":"TemporaryFile(/tmp/multipartBody2303971500746862261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297252793,"filename":"image_18032025_12_26_23_6006.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fcc6770c01efcd48d0704b98b7fde457.jpg","text":"TemporaryFile(/tmp/multipartBody8701816921504960026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297252793,"filename":"image_18032025_12_26_41_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28fa67532ec44b6d27478cfe0cbe8a19.jpg","text":"TemporaryFile(/tmp/multipartBody7863996787309670620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297252793,"filename":"image_18032025_12_26_29_6078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/55341de211dcc26186029ee40aeaf9cf.jpg","text":"TemporaryFile(/tmp/multipartBody4404552361615296797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297252793,"filename":"image_18032025_12_26_47_6067.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093547","file1":"1345093540","file0":"1345093535","file4":"1345093555","file5":"1345093559","file3":"1345093551"},"map_files_photo_id_array":[{"photo_id":"1345093559","filename":"file5"},{"photo_id":"1345093547","filename":"file2"},{"photo_id":"1345093555","filename":"file4"},{"photo_id":"1345093540","filename":"file1"},{"photo_id":"1345093535","filename":"file0"},{"photo_id":"1345093551","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093551":["hashtag1","hashtag2"]},{"1345093535":["hashtag1","hashtag2"]},{"1345093559":["hashtag1","hashtag2"]},{"1345093547":["hashtag1","hashtag2"]},{"1345093555":["hashtag1","hashtag2"]},{"1345093540":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093551, 1345093535, 1345093559, 1345093547, 1345093555, 1345093540)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.19711351394653 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:27:32.472808
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_53_6096.jpg', 2), ('/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_47_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_41_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_35_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_29_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_17_5115.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_53_6096.jpg', '/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_47_6093.jpg', '/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_41_6092.jpg', '/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_35_6089.jpg', '/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_29_6089.jpg', '/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_17_5115.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_53_6096.jpg
/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_47_6093.jpg
/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_41_6092.jpg
/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_35_6089.jpg
/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_29_6089.jpg
/home/nano/Desktop/images/18032025/12/27/image_18032025_12_27_17_5115.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093598","1345093583","1345093601","1345093588","1345093593","1345093578"],"photo_ids_order":["1345093578","1345093583","1345093588","1345093593","1345093598","1345093601"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ccc5d4253a555490bc48edea422ebe1b.jpg","text":"TemporaryFile(/tmp/multipartBody8302005957177705221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297312931,"filename":"image_18032025_12_27_29_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90f7f39aaaffaa760b1fbc50e4f60e12.jpg","text":"TemporaryFile(/tmp/multipartBody3150796142300204045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297312931,"filename":"image_18032025_12_27_47_6093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bdce6cb7ae61667bc9dd78698b747e25.jpg","text":"TemporaryFile(/tmp/multipartBody9207087503128369233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297312931,"filename":"image_18032025_12_27_17_5115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c24a8b734b934cb8fd95d26320312816.jpg","text":"TemporaryFile(/tmp/multipartBody5003657655175259697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297312931,"filename":"image_18032025_12_27_41_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3d315533acfec69aabbdc4c08cd8977.jpg","text":"TemporaryFile(/tmp/multipartBody2543049980194007691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297312931,"filename":"image_18032025_12_27_35_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a07cd46e36b8f250f8405e1dde06b66.jpg","text":"TemporaryFile(/tmp/multipartBody3676059120767365058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297312931,"filename":"image_18032025_12_27_53_6096.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093588","file1":"1345093583","file0":"1345093578","file4":"1345093598","file5":"1345093601","file3":"1345093593"},"map_files_photo_id_array":[{"photo_id":"1345093601","filename":"file5"},{"photo_id":"1345093588","filename":"file2"},{"photo_id":"1345093598","filename":"file4"},{"photo_id":"1345093583","filename":"file1"},{"photo_id":"1345093578","filename":"file0"},{"photo_id":"1345093593","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093598":["hashtag1","hashtag2"]},{"1345093583":["hashtag1","hashtag2"]},{"1345093601":["hashtag1","hashtag2"]},{"1345093588":["hashtag1","hashtag2"]},{"1345093593":["hashtag1","hashtag2"]},{"1345093578":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093598, 1345093583, 1345093601, 1345093588, 1345093593, 1345093578)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.821547746658325 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:28:32.581290
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_53_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_47_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_41_6130.jpg', 2), ('/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_35_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_29_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_23_6092.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_53_6098.jpg', '/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_47_6098.jpg', '/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_41_6130.jpg', '/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_35_6089.jpg', '/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_29_6086.jpg', '/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_23_6092.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_53_6098.jpg
/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_47_6098.jpg
/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_41_6130.jpg
/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_35_6089.jpg
/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_29_6086.jpg
/home/nano/Desktop/images/18032025/12/28/image_18032025_12_28_23_6092.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093886","1345093907","1345093894","1345093876","1345093912","1345093903"],"photo_ids_order":["1345093876","1345093886","1345093894","1345093903","1345093907","1345093912"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6601f1587d24066c3b225497afdf95d4.jpg","text":"TemporaryFile(/tmp/multipartBody2929695201890527096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297373077,"filename":"image_18032025_12_28_47_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9bde8c2ac5ded0719989cf8e96fbb353.jpg","text":"TemporaryFile(/tmp/multipartBody7749836122994492818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297373077,"filename":"image_18032025_12_28_29_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0a50518669f76148c830bdf5a3be3c45.jpg","text":"TemporaryFile(/tmp/multipartBody2813177543334224622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297373077,"filename":"image_18032025_12_28_41_6130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eabc5d09742f65e591846a4671e3d7d3.jpg","text":"TemporaryFile(/tmp/multipartBody3474716870442465738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297373077,"filename":"image_18032025_12_28_53_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/283932d837b54c4dee3152f3cfd95d65.jpg","text":"TemporaryFile(/tmp/multipartBody3657011894261316565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297373077,"filename":"image_18032025_12_28_23_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a69b761c083a3f5e947310f86ae77523.jpg","text":"TemporaryFile(/tmp/multipartBody7869200465881631541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297373077,"filename":"image_18032025_12_28_35_6089.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093894","file1":"1345093886","file0":"1345093876","file4":"1345093907","file5":"1345093912","file3":"1345093903"},"map_files_photo_id_array":[{"photo_id":"1345093912","filename":"file5"},{"photo_id":"1345093894","filename":"file2"},{"photo_id":"1345093907","filename":"file4"},{"photo_id":"1345093886","filename":"file1"},{"photo_id":"1345093876","filename":"file0"},{"photo_id":"1345093903","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093886":["hashtag1","hashtag2"]},{"1345093907":["hashtag1","hashtag2"]},{"1345093894":["hashtag1","hashtag2"]},{"1345093876":["hashtag1","hashtag2"]},{"1345093912":["hashtag1","hashtag2"]},{"1345093903":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093886, 1345093907, 1345093894, 1345093876, 1345093912, 1345093903)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.76292061805725 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:29:32.700638
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_53_6104.jpg', 2), ('/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_47_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_41_6096.jpg', 2), ('/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_35_6095.jpg', 2), ('/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_29_6122.jpg', 2), ('/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_23_6099.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_53_6104.jpg', '/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_47_6086.jpg', '/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_41_6096.jpg', '/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_35_6095.jpg', '/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_29_6122.jpg', '/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_23_6099.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_53_6104.jpg
/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_47_6086.jpg
/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_41_6096.jpg
/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_35_6095.jpg
/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_29_6122.jpg
/home/nano/Desktop/images/18032025/12/29/image_18032025_12_29_23_6099.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345093961","1345093964","1345094014","1345093992","1345093974","1345093968"],"photo_ids_order":["1345093961","1345093964","1345093968","1345093974","1345093992","1345094014"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a20048a37a3e9088a8abcdf226123a8d.jpg","text":"TemporaryFile(/tmp/multipartBody6600860382757139494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297433165,"filename":"image_18032025_12_29_53_6104.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/86f1ecc8b29819733135fb6a8c3d7221.jpg","text":"TemporaryFile(/tmp/multipartBody8831005295872287314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297433165,"filename":"image_18032025_12_29_47_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bbdade513b40170de6f79766fffab6af.jpg","text":"TemporaryFile(/tmp/multipartBody8798838668768261113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297433165,"filename":"image_18032025_12_29_23_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a7469605b219c81e2115a3bce796c175.jpg","text":"TemporaryFile(/tmp/multipartBody8223235780183822768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297433165,"filename":"image_18032025_12_29_29_6122.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/93d5147f3addc95fc719c4c1baa197ed.jpg","text":"TemporaryFile(/tmp/multipartBody2008189266864426961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297433165,"filename":"image_18032025_12_29_35_6095.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/050e4f03ee932ae4f3676e1d6722119d.jpg","text":"TemporaryFile(/tmp/multipartBody838016745549990733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297433165,"filename":"image_18032025_12_29_41_6096.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345093968","file1":"1345093964","file0":"1345093961","file4":"1345093992","file5":"1345094014","file3":"1345093974"},"map_files_photo_id_array":[{"photo_id":"1345094014","filename":"file5"},{"photo_id":"1345093968","filename":"file2"},{"photo_id":"1345093992","filename":"file4"},{"photo_id":"1345093964","filename":"file1"},{"photo_id":"1345093961","filename":"file0"},{"photo_id":"1345093974","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345093961":["hashtag1","hashtag2"]},{"1345093964":["hashtag1","hashtag2"]},{"1345094014":["hashtag1","hashtag2"]},{"1345093992":["hashtag1","hashtag2"]},{"1345093974":["hashtag1","hashtag2"]},{"1345093968":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345093961, 1345093964, 1345094014, 1345093992, 1345093974, 1345093968)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.549201488494873 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:30:31.821270
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_54_6753.jpg', 2), ('/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_47_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_41_5765.jpg', 2), ('/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_35_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_29_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_23_6104.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_54_6753.jpg', '/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_47_6041.jpg', '/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_41_5765.jpg', '/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_35_6054.jpg', '/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_29_6098.jpg', '/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_23_6104.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_54_6753.jpg
/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_47_6041.jpg
/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_41_5765.jpg
/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_35_6054.jpg
/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_29_6098.jpg
/home/nano/Desktop/images/18032025/12/30/image_18032025_12_30_23_6104.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345094051","1345094048","1345094036","1345094044","1345094032","1345094040"],"photo_ids_order":["1345094032","1345094036","1345094040","1345094044","1345094048","1345094051"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db331c3f395650577adf8874210851d0.jpg","text":"TemporaryFile(/tmp/multipartBody7298332754907813090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297492239,"filename":"image_18032025_12_30_23_6104.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad77ae0b75406021934823117863ad7b.jpg","text":"TemporaryFile(/tmp/multipartBody5739986547652961050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297492239,"filename":"image_18032025_12_30_29_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bb812dd753d6945109eed48bcb04964e.jpg","text":"TemporaryFile(/tmp/multipartBody1334089157774115639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297492239,"filename":"image_18032025_12_30_47_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d2c32571d5d7d3dd0bbfdc2322983aca.jpg","text":"TemporaryFile(/tmp/multipartBody762436019631491922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297492239,"filename":"image_18032025_12_30_35_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/524fa35ce21097b49aa1724d60e7e859.jpg","text":"TemporaryFile(/tmp/multipartBody3339015795365831727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297492239,"filename":"image_18032025_12_30_54_6753.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2e0693bca8aa2198f95ef8e238aa00f5.jpg","text":"TemporaryFile(/tmp/multipartBody4603844128840047857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297492239,"filename":"image_18032025_12_30_41_5765.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345094040","file1":"1345094036","file0":"1345094032","file4":"1345094048","file5":"1345094051","file3":"1345094044"},"map_files_photo_id_array":[{"photo_id":"1345094051","filename":"file5"},{"photo_id":"1345094040","filename":"file2"},{"photo_id":"1345094048","filename":"file4"},{"photo_id":"1345094036","filename":"file1"},{"photo_id":"1345094032","filename":"file0"},{"photo_id":"1345094044","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345094051":["hashtag1","hashtag2"]},{"1345094048":["hashtag1","hashtag2"]},{"1345094036":["hashtag1","hashtag2"]},{"1345094044":["hashtag1","hashtag2"]},{"1345094032":["hashtag1","hashtag2"]},{"1345094040":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345094051, 1345094048, 1345094036, 1345094044, 1345094032, 1345094040)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.722816705703735 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:31:31.929915
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_54_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_48_6101.jpg', 2), ('/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_42_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_35_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_29_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_23_6126.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_54_6106.jpg', '/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_48_6101.jpg', '/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_42_6092.jpg', '/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_35_6090.jpg', '/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_29_6090.jpg', '/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_23_6126.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_54_6106.jpg
/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_48_6101.jpg
/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_42_6092.jpg
/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_35_6090.jpg
/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_29_6090.jpg
/home/nano/Desktop/images/18032025/12/31/image_18032025_12_31_23_6126.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345094081","1345094072","1345094066","1345094076","1345094085","1345094088"],"photo_ids_order":["1345094066","1345094072","1345094076","1345094081","1345094085","1345094088"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dfe55940508467e05cb89cc33af0d49f.jpg","text":"TemporaryFile(/tmp/multipartBody6597896698553227527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297552390,"filename":"image_18032025_12_31_35_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/68dc734bf15843d1817e75b56c0ec3fe.jpg","text":"TemporaryFile(/tmp/multipartBody2251206059693521328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297552390,"filename":"image_18032025_12_31_48_6101.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c3f21f4397b46f763596e5e15b2d2f54.jpg","text":"TemporaryFile(/tmp/multipartBody7680364020491678116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297552390,"filename":"image_18032025_12_31_54_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a95de5b2bbeab935a1b19b4cca94d9d.jpg","text":"TemporaryFile(/tmp/multipartBody7571583336678023346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297552390,"filename":"image_18032025_12_31_42_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f98ecf0cb8aeb395e497127dd13d9fd9.jpg","text":"TemporaryFile(/tmp/multipartBody1279881425501345477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297552390,"filename":"image_18032025_12_31_29_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f78bca6eba3aae9b3fa7b26ffc603683.jpg","text":"TemporaryFile(/tmp/multipartBody7456691807642098639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297552390,"filename":"image_18032025_12_31_23_6126.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345094076","file1":"1345094072","file0":"1345094066","file4":"1345094085","file5":"1345094088","file3":"1345094081"},"map_files_photo_id_array":[{"photo_id":"1345094088","filename":"file5"},{"photo_id":"1345094076","filename":"file2"},{"photo_id":"1345094085","filename":"file4"},{"photo_id":"1345094072","filename":"file1"},{"photo_id":"1345094066","filename":"file0"},{"photo_id":"1345094081","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345094081":["hashtag1","hashtag2"]},{"1345094072":["hashtag1","hashtag2"]},{"1345094066":["hashtag1","hashtag2"]},{"1345094076":["hashtag1","hashtag2"]},{"1345094085":["hashtag1","hashtag2"]},{"1345094088":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345094081, 1345094072, 1345094066, 1345094076, 1345094085, 1345094088)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.48523759841919 secondes ---
[Errno 13] Permission denied: '/home/pi'
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:32:32.065723
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_53_5085.jpg', 2), ('/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_48_6103.jpg', 2), ('/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_42_6100.jpg', 2), ('/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_36_6100.jpg', 2), ('/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_29_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_23_6102.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_53_5085.jpg', '/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_48_6103.jpg', '/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_42_6100.jpg', '/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_36_6100.jpg', '/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_29_6102.jpg', '/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_23_6102.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_53_5085.jpg
/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_48_6103.jpg
/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_42_6100.jpg
/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_36_6100.jpg
/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_29_6102.jpg
/home/nano/Desktop/images/18032025/12/32/image_18032025_12_32_23_6102.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345094202","1345094103","1345094165","1345094263","1345094233","1345094133"],"photo_ids_order":["1345094103","1345094133","1345094165","1345094202","1345094233","1345094263"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90063b49e320c000f8d0697ae945d3f1.jpg","text":"TemporaryFile(/tmp/multipartBody8473355479321142037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297612637,"filename":"image_18032025_12_32_36_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d6f71e40ddd988bba6f08a537f16c357.jpg","text":"TemporaryFile(/tmp/multipartBody6316484023617612196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297612637,"filename":"image_18032025_12_32_53_5085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5cd588d2aca2bf44a5085d0fec09ecff.jpg","text":"TemporaryFile(/tmp/multipartBody7302256169761781505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297612637,"filename":"image_18032025_12_32_42_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d422cf12740e9b2988bfede49115d1e5.jpg","text":"TemporaryFile(/tmp/multipartBody4529455538081722099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297612637,"filename":"image_18032025_12_32_23_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e320d7dd1d4c57ce220557153aa6c1d.jpg","text":"TemporaryFile(/tmp/multipartBody807480064602082511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297612637,"filename":"image_18032025_12_32_29_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e467bb92bf215b5f6e526619b490604.jpg","text":"TemporaryFile(/tmp/multipartBody8303239445264242300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297612637,"filename":"image_18032025_12_32_48_6103.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345094165","file1":"1345094133","file0":"1345094103","file4":"1345094233","file5":"1345094263","file3":"1345094202"},"map_files_photo_id_array":[{"photo_id":"1345094263","filename":"file5"},{"photo_id":"1345094165","filename":"file2"},{"photo_id":"1345094233","filename":"file4"},{"photo_id":"1345094133","filename":"file1"},{"photo_id":"1345094103","filename":"file0"},{"photo_id":"1345094202","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345094202":["hashtag1","hashtag2"]},{"1345094103":["hashtag1","hashtag2"]},{"1345094165":["hashtag1","hashtag2"]},{"1345094263":["hashtag1","hashtag2"]},{"1345094233":["hashtag1","hashtag2"]},{"1345094133":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345094202, 1345094103, 1345094165, 1345094263, 1345094233, 1345094133)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.04912090301514 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:33:32.196912
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_48_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_42_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_36_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_29_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_23_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_17_6086.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_48_6094.jpg', '/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_42_6092.jpg', '/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_36_6090.jpg', '/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_29_6094.jpg', '/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_23_6092.jpg', '/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_17_6086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_48_6094.jpg
/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_42_6092.jpg
/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_36_6090.jpg
/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_29_6094.jpg
/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_23_6092.jpg
/home/nano/Desktop/images/18032025/12/33/image_18032025_12_33_17_6086.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345094384","1345094561","1345094380","1345094392","1345094386","1345094733"],"photo_ids_order":["1345094380","1345094384","1345094386","1345094392","1345094561","1345094733"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/60efe30c55f3262cf4800b7758cc1cdf.jpg","text":"TemporaryFile(/tmp/multipartBody1585376987734177203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297672864,"filename":"image_18032025_12_33_42_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0acdcc8b6b7d9292875b540ec6d7d17f.jpg","text":"TemporaryFile(/tmp/multipartBody1266517259775115979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297672864,"filename":"image_18032025_12_33_23_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a62500c60a667fa6686c7cc2c1f4ef4.jpg","text":"TemporaryFile(/tmp/multipartBody4507708374768678782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297672864,"filename":"image_18032025_12_33_48_6094.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2f66b7ed68e2d5105bba4d9f1605f445.jpg","text":"TemporaryFile(/tmp/multipartBody3718015886492922783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297672864,"filename":"image_18032025_12_33_29_6094.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e1b86b0fbe860d059faf4c75c4695792.jpg","text":"TemporaryFile(/tmp/multipartBody135460654897371795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297672864,"filename":"image_18032025_12_33_36_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2cb99761cc4b39d6ea53003b8992adc0.jpg","text":"TemporaryFile(/tmp/multipartBody7386313909317836184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297672864,"filename":"image_18032025_12_33_17_6086.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345094386","file1":"1345094384","file0":"1345094380","file4":"1345094561","file5":"1345094733","file3":"1345094392"},"map_files_photo_id_array":[{"photo_id":"1345094733","filename":"file5"},{"photo_id":"1345094386","filename":"file2"},{"photo_id":"1345094561","filename":"file4"},{"photo_id":"1345094384","filename":"file1"},{"photo_id":"1345094380","filename":"file0"},{"photo_id":"1345094392","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345094384":["hashtag1","hashtag2"]},{"1345094561":["hashtag1","hashtag2"]},{"1345094380":["hashtag1","hashtag2"]},{"1345094392":["hashtag1","hashtag2"]},{"1345094386":["hashtag1","hashtag2"]},{"1345094733":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345094384, 1345094561, 1345094380, 1345094392, 1345094386, 1345094733)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.75739097595215 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:34:32.328168
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_53_5085.jpg', 2), ('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_48_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_42_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_36_6101.jpg', 2), ('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_29_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_23_6103.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_53_5085.jpg', '/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_48_6082.jpg', '/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_42_6121.jpg', '/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_36_6101.jpg', '/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_29_6090.jpg', '/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_23_6103.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_53_5085.jpg
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_48_6082.jpg
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_42_6121.jpg
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_36_6101.jpg
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_29_6090.jpg
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_23_6103.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.5056726932525635 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:35:03.055393
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_53_5085.jpg', 2), ('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_48_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_42_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_36_6101.jpg', 2), ('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_29_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_23_6103.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_53_5085.jpg', '/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_48_6082.jpg', '/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_42_6121.jpg', '/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_36_6101.jpg', '/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_29_6090.jpg', '/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_23_6103.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_53_5085.jpg
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_48_6082.jpg
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_42_6121.jpg
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_36_6101.jpg
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_29_6090.jpg
/home/nano/Desktop/images/18032025/12/34/image_18032025_12_34_23_6103.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345095366","1345095369","1345095363","1345095345","1345095339","1345095392"],"photo_ids_order":["1345095339","1345095345","1345095363","1345095366","1345095369","1345095392"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c6b6c81b7a319f67a0528a0931c9db2.jpg","text":"TemporaryFile(/tmp/multipartBody2488152167095883971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297763529,"filename":"image_18032025_12_34_36_6101.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0dbe559fc7f293a71cddf65221bc3bb.jpg","text":"TemporaryFile(/tmp/multipartBody7114313753494953694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297763529,"filename":"image_18032025_12_34_29_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac08f37f6c2b89f8ffe6a923c647ee21.jpg","text":"TemporaryFile(/tmp/multipartBody5726120621569653978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297763529,"filename":"image_18032025_12_34_42_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cadfd86a037ceebcd28bd86747cf3dd5.jpg","text":"TemporaryFile(/tmp/multipartBody5681532789527447718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297763529,"filename":"image_18032025_12_34_48_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d0ff86e116b6e310e4107a89d28acb90.jpg","text":"TemporaryFile(/tmp/multipartBody8657122421610026876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297763529,"filename":"image_18032025_12_34_53_5085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/71af2931422c8b1d4819b4e871959cc2.jpg","text":"TemporaryFile(/tmp/multipartBody8413425987383650716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297763529,"filename":"image_18032025_12_34_23_6103.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345095363","file1":"1345095345","file0":"1345095339","file4":"1345095369","file5":"1345095392","file3":"1345095366"},"map_files_photo_id_array":[{"photo_id":"1345095392","filename":"file5"},{"photo_id":"1345095363","filename":"file2"},{"photo_id":"1345095369","filename":"file4"},{"photo_id":"1345095345","filename":"file1"},{"photo_id":"1345095339","filename":"file0"},{"photo_id":"1345095366","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345095366":["hashtag1","hashtag2"]},{"1345095369":["hashtag1","hashtag2"]},{"1345095363":["hashtag1","hashtag2"]},{"1345095345":["hashtag1","hashtag2"]},{"1345095339":["hashtag1","hashtag2"]},{"1345095392":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345095366, 1345095369, 1345095363, 1345095345, 1345095339, 1345095392)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.772789478302002 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:36:03.090356
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_53_5715.jpg', 2), ('/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_48_5859.jpg', 2), ('/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_42_6023.jpg', 2), ('/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_36_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_30_6097.jpg', 2), ('/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_23_6119.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_53_5715.jpg', '/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_48_5859.jpg', '/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_42_6023.jpg', '/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_36_6086.jpg', '/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_30_6097.jpg', '/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_23_6119.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_53_5715.jpg
/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_48_5859.jpg
/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_42_6023.jpg
/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_36_6086.jpg
/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_30_6097.jpg
/home/nano/Desktop/images/18032025/12/35/image_18032025_12_35_23_6119.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345095455","1345095449","1345095457","1345095451","1345095453","1345095447"],"photo_ids_order":["1345095447","1345095449","1345095451","1345095453","1345095455","1345095457"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ceb5629ae1276028dc48b024bc179ed9.jpg","text":"TemporaryFile(/tmp/multipartBody2283158975107343166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297823537,"filename":"image_18032025_12_35_30_6097.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1af3156f1875b3f80b9bc81734c54e1b.jpg","text":"TemporaryFile(/tmp/multipartBody892357613717083300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297823537,"filename":"image_18032025_12_35_48_5859.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c81f0a22565a42e2271c7279dc5b3bb1.jpg","text":"TemporaryFile(/tmp/multipartBody2671290297740533050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297823537,"filename":"image_18032025_12_35_23_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9de80f3f2307d854b68341109cfeff01.jpg","text":"TemporaryFile(/tmp/multipartBody335700579739368498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297823537,"filename":"image_18032025_12_35_42_6023.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4fcb3372482eddb86ab6540cd155aa58.jpg","text":"TemporaryFile(/tmp/multipartBody7036834307387975599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297823537,"filename":"image_18032025_12_35_36_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6efb37190ef9b3749c888e639024e1e5.jpg","text":"TemporaryFile(/tmp/multipartBody5268825400973542425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297823537,"filename":"image_18032025_12_35_53_5715.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345095451","file1":"1345095449","file0":"1345095447","file4":"1345095455","file5":"1345095457","file3":"1345095453"},"map_files_photo_id_array":[{"photo_id":"1345095457","filename":"file5"},{"photo_id":"1345095451","filename":"file2"},{"photo_id":"1345095455","filename":"file4"},{"photo_id":"1345095449","filename":"file1"},{"photo_id":"1345095447","filename":"file0"},{"photo_id":"1345095453","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345095455":["hashtag1","hashtag2"]},{"1345095449":["hashtag1","hashtag2"]},{"1345095457":["hashtag1","hashtag2"]},{"1345095451":["hashtag1","hashtag2"]},{"1345095453":["hashtag1","hashtag2"]},{"1345095447":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345095455, 1345095449, 1345095457, 1345095451, 1345095453, 1345095447)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.218509197235107 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:37:03.076797
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_48_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_41_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_35_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_29_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_23_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_17_6083.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_48_6089.jpg', '/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_41_6088.jpg', '/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_35_6091.jpg', '/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_29_6078.jpg', '/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_23_6084.jpg', '/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_17_6083.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_48_6089.jpg
/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_41_6088.jpg
/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_35_6091.jpg
/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_29_6078.jpg
/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_23_6084.jpg
/home/nano/Desktop/images/18032025/12/36/image_18032025_12_36_17_6083.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345095913","1345095835","1345095969","1345095861","1345095777","1345095810"],"photo_ids_order":["1345095777","1345095810","1345095835","1345095861","1345095913","1345095969"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/26d63ef2fb9f8df2df3cee55f85e9f6b.jpg","text":"TemporaryFile(/tmp/multipartBody5278577928341972136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297883541,"filename":"image_18032025_12_36_23_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b5770a608516e1e97914f6efaa621208.jpg","text":"TemporaryFile(/tmp/multipartBody3994800378896114797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297883541,"filename":"image_18032025_12_36_35_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/72fc0185337a69509cfd79bd18e40072.jpg","text":"TemporaryFile(/tmp/multipartBody4349157665090455103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297883541,"filename":"image_18032025_12_36_17_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/70f50c1ea3064a89c452cb17603ebc3f.jpg","text":"TemporaryFile(/tmp/multipartBody377163707434746446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297883541,"filename":"image_18032025_12_36_29_6078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aca1871a11918836239fd418bc1908fd.jpg","text":"TemporaryFile(/tmp/multipartBody2254702068665068355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297883541,"filename":"image_18032025_12_36_48_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d82803b986a9749902cd02ddb89dfce7.jpg","text":"TemporaryFile(/tmp/multipartBody5694275366678258836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297883541,"filename":"image_18032025_12_36_41_6088.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345095835","file1":"1345095810","file0":"1345095777","file4":"1345095913","file5":"1345095969","file3":"1345095861"},"map_files_photo_id_array":[{"photo_id":"1345095969","filename":"file5"},{"photo_id":"1345095835","filename":"file2"},{"photo_id":"1345095913","filename":"file4"},{"photo_id":"1345095810","filename":"file1"},{"photo_id":"1345095777","filename":"file0"},{"photo_id":"1345095861","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345095913":["hashtag1","hashtag2"]},{"1345095835":["hashtag1","hashtag2"]},{"1345095969":["hashtag1","hashtag2"]},{"1345095861":["hashtag1","hashtag2"]},{"1345095777":["hashtag1","hashtag2"]},{"1345095810":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345095913, 1345095835, 1345095969, 1345095861, 1345095777, 1345095810)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.703532218933105 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:38:02.117809
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_47_6011.jpg', 2), ('/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_41_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_35_6077.jpg', 2), ('/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_29_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_23_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_17_6086.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_47_6011.jpg', '/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_41_6084.jpg', '/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_35_6077.jpg', '/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_29_6093.jpg', '/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_23_6094.jpg', '/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_17_6086.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_47_6011.jpg
/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_41_6084.jpg
/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_35_6077.jpg
/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_29_6093.jpg
/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_23_6094.jpg
/home/nano/Desktop/images/18032025/12/37/image_18032025_12_37_17_6086.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.35727620124816895 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:38:31.772744
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_53_5079.jpg', 2), ('/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_48_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_42_5956.jpg', 2), ('/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_36_5993.jpg', 2), ('/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_30_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_24_6091.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_53_5079.jpg', '/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_48_6007.jpg', '/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_42_5956.jpg', '/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_36_5993.jpg', '/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_30_6123.jpg', '/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_24_6091.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_53_5079.jpg
/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_48_6007.jpg
/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_42_5956.jpg
/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_36_5993.jpg
/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_30_6123.jpg
/home/nano/Desktop/images/18032025/12/38/image_18032025_12_38_24_6091.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345096669","1345096759","1345096852","1345096705","1345096816","1345096908"],"photo_ids_order":["1345096669","1345096705","1345096759","1345096816","1345096852","1345096908"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/02b22e4b9622917d8fd23ad4849b5444.jpg","text":"TemporaryFile(/tmp/multipartBody1377205197732071898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297972228,"filename":"image_18032025_12_38_53_5079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/053e8652848d44428da9e86fddb055c1.jpg","text":"TemporaryFile(/tmp/multipartBody8177869554494908777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297972228,"filename":"image_18032025_12_38_42_5956.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e7d70e035fc113abc89a621271a73454.jpg","text":"TemporaryFile(/tmp/multipartBody2260514429792929144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297972228,"filename":"image_18032025_12_38_30_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f4f42886163d4285367aab5b918bb8c.jpg","text":"TemporaryFile(/tmp/multipartBody6914525260992735571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297972228,"filename":"image_18032025_12_38_48_6007.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5252ca04d6dfd0799fcbe9fc4868e5f9.jpg","text":"TemporaryFile(/tmp/multipartBody2493724018576428497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297972228,"filename":"image_18032025_12_38_36_5993.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a0f5cc64dc860d2f7187e3b29c1d8da.jpg","text":"TemporaryFile(/tmp/multipartBody1785921965040885279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742297972228,"filename":"image_18032025_12_38_24_6091.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345096759","file1":"1345096705","file0":"1345096669","file4":"1345096852","file5":"1345096908","file3":"1345096816"},"map_files_photo_id_array":[{"photo_id":"1345096908","filename":"file5"},{"photo_id":"1345096759","filename":"file2"},{"photo_id":"1345096852","filename":"file4"},{"photo_id":"1345096705","filename":"file1"},{"photo_id":"1345096669","filename":"file0"},{"photo_id":"1345096816","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345096669":["hashtag1","hashtag2"]},{"1345096759":["hashtag1","hashtag2"]},{"1345096852":["hashtag1","hashtag2"]},{"1345096705":["hashtag1","hashtag2"]},{"1345096816":["hashtag1","hashtag2"]},{"1345096908":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345096669, 1345096759, 1345096852, 1345096705, 1345096816, 1345096908)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.476983785629272 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:39:31.895670
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_53_6085.jpg', 2), ('/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_42_6114.jpg', 2), ('/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_36_6174.jpg', 2), ('/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_29_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_23_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_17_6117.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_53_6085.jpg', '/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_42_6114.jpg', '/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_36_6174.jpg', '/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_29_6090.jpg', '/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_23_6091.jpg', '/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_17_6117.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_53_6085.jpg
/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_42_6114.jpg
/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_36_6174.jpg
/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_29_6090.jpg
/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_23_6091.jpg
/home/nano/Desktop/images/18032025/12/39/image_18032025_12_39_17_6117.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345097605","1345097527","1345097936","1345097462","1345097689","1345097833"],"photo_ids_order":["1345097462","1345097527","1345097605","1345097689","1345097833","1345097936"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8612bbfed448a51cd9a649c4a7f2adfc.jpg","text":"TemporaryFile(/tmp/multipartBody631348962625252658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298032370,"filename":"image_18032025_12_39_36_6174.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d6586191ecd1cb1c5dc43639d3fbcba.jpg","text":"TemporaryFile(/tmp/multipartBody6927018182108674981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298032370,"filename":"image_18032025_12_39_42_6114.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f4a848bcd1d76958504c3c00bce48a1b.jpg","text":"TemporaryFile(/tmp/multipartBody389286099493406493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298032370,"filename":"image_18032025_12_39_17_6117.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/940c8e883019ea8c1288f47034c06726.jpg","text":"TemporaryFile(/tmp/multipartBody1637931694009294077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298032370,"filename":"image_18032025_12_39_53_6085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ff2ae5d6431a2e7dec53c81f68cb1de.jpg","text":"TemporaryFile(/tmp/multipartBody1160909513440125684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298032370,"filename":"image_18032025_12_39_29_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d55dced93a9b91870ea0e699086f37a8.jpg","text":"TemporaryFile(/tmp/multipartBody3057498080579876746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298032370,"filename":"image_18032025_12_39_23_6091.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345097605","file1":"1345097527","file0":"1345097462","file4":"1345097833","file5":"1345097936","file3":"1345097689"},"map_files_photo_id_array":[{"photo_id":"1345097936","filename":"file5"},{"photo_id":"1345097605","filename":"file2"},{"photo_id":"1345097833","filename":"file4"},{"photo_id":"1345097527","filename":"file1"},{"photo_id":"1345097462","filename":"file0"},{"photo_id":"1345097689","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345097605":["hashtag1","hashtag2"]},{"1345097527":["hashtag1","hashtag2"]},{"1345097936":["hashtag1","hashtag2"]},{"1345097462":["hashtag1","hashtag2"]},{"1345097689":["hashtag1","hashtag2"]},{"1345097833":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345097605, 1345097527, 1345097936, 1345097462, 1345097689, 1345097833)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.25005316734314 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:40:32.004793
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_54_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_48_5973.jpg', 2), ('/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_42_6012.jpg', 2), ('/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_36_6034.jpg', 2), ('/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_30_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_24_6118.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_54_6083.jpg', '/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_48_5973.jpg', '/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_42_6012.jpg', '/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_36_6034.jpg', '/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_30_6088.jpg', '/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_24_6118.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_54_6083.jpg
/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_48_5973.jpg
/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_42_6012.jpg
/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_36_6034.jpg
/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_30_6088.jpg
/home/nano/Desktop/images/18032025/12/40/image_18032025_12_40_24_6118.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345099320","1345098941","1345099174","1345098719","1345099066","1345098856"],"photo_ids_order":["1345098719","1345098856","1345098941","1345099066","1345099174","1345099320"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/16c62d9cf0213f22cf92e1c2bad32e8f.jpg","text":"TemporaryFile(/tmp/multipartBody1300550065083723345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298092464,"filename":"image_18032025_12_40_24_6118.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d4579848e49700f4edf1368c5670ee49.jpg","text":"TemporaryFile(/tmp/multipartBody2278200082806867622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298092464,"filename":"image_18032025_12_40_42_6012.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/563ac176285417b0f3d31dc8d7da109f.jpg","text":"TemporaryFile(/tmp/multipartBody4628207607906335392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298092464,"filename":"image_18032025_12_40_30_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/58ce8cc0a6b0a2f62ecea2afabaef689.jpg","text":"TemporaryFile(/tmp/multipartBody2299606122714177736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298092464,"filename":"image_18032025_12_40_54_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/97286432c60a51d300c0ed9e3b7da305.jpg","text":"TemporaryFile(/tmp/multipartBody5664225526683770684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298092464,"filename":"image_18032025_12_40_36_6034.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f0904955503375a2cc809adadf7e4e34.jpg","text":"TemporaryFile(/tmp/multipartBody6800232110416226377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298092464,"filename":"image_18032025_12_40_48_5973.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345098941","file1":"1345098856","file0":"1345098719","file4":"1345099174","file5":"1345099320","file3":"1345099066"},"map_files_photo_id_array":[{"photo_id":"1345099320","filename":"file5"},{"photo_id":"1345098941","filename":"file2"},{"photo_id":"1345099174","filename":"file4"},{"photo_id":"1345098856","filename":"file1"},{"photo_id":"1345098719","filename":"file0"},{"photo_id":"1345099066","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345099320":["hashtag1","hashtag2"]},{"1345098941":["hashtag1","hashtag2"]},{"1345099174":["hashtag1","hashtag2"]},{"1345098719":["hashtag1","hashtag2"]},{"1345099066":["hashtag1","hashtag2"]},{"1345098856":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345099320, 1345098941, 1345099174, 1345098719, 1345099066, 1345098856)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.15098690986633 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:41:32.108069
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_54_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_48_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_42_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_35_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_29_6074.jpg', 2), ('/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_23_6081.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_54_6108.jpg', '/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_48_6079.jpg', '/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_42_6108.jpg', '/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_35_6086.jpg', '/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_29_6074.jpg', '/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_23_6081.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_54_6108.jpg
/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_48_6079.jpg
/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_42_6108.jpg
/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_35_6086.jpg
/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_29_6074.jpg
/home/nano/Desktop/images/18032025/12/41/image_18032025_12_41_23_6081.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345100432","1345100176","1345100098","1345100251","1345100020","1345100334"],"photo_ids_order":["1345100020","1345100098","1345100176","1345100251","1345100334","1345100432"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f9255efe0eb848e691966b3db2467f1.jpg","text":"TemporaryFile(/tmp/multipartBody236794190050502979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298152548,"filename":"image_18032025_12_41_23_6081.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8b225b00ae7409a72d951e53cdaf5145.jpg","text":"TemporaryFile(/tmp/multipartBody2739222363467001220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298152548,"filename":"image_18032025_12_41_42_6108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/96d8e9f7ebb1e84881d872ead388acb9.jpg","text":"TemporaryFile(/tmp/multipartBody6665191379558588715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298152548,"filename":"image_18032025_12_41_48_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63426a9c6567154c0b87b13be02356ef.jpg","text":"TemporaryFile(/tmp/multipartBody8416936900811336589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298152548,"filename":"image_18032025_12_41_35_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/44b488478859b84521b9761cc07856cd.jpg","text":"TemporaryFile(/tmp/multipartBody7801327280804127175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298152548,"filename":"image_18032025_12_41_54_6108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f95c05d4978b4578b24826a7782a0a6a.jpg","text":"TemporaryFile(/tmp/multipartBody3935244171258589983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298152548,"filename":"image_18032025_12_41_29_6074.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345100176","file1":"1345100098","file0":"1345100020","file4":"1345100334","file5":"1345100432","file3":"1345100251"},"map_files_photo_id_array":[{"photo_id":"1345100432","filename":"file5"},{"photo_id":"1345100176","filename":"file2"},{"photo_id":"1345100334","filename":"file4"},{"photo_id":"1345100098","filename":"file1"},{"photo_id":"1345100020","filename":"file0"},{"photo_id":"1345100251","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345100432":["hashtag1","hashtag2"]},{"1345100176":["hashtag1","hashtag2"]},{"1345100098":["hashtag1","hashtag2"]},{"1345100251":["hashtag1","hashtag2"]},{"1345100020":["hashtag1","hashtag2"]},{"1345100334":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345100432, 1345100176, 1345100098, 1345100251, 1345100020, 1345100334)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.603389978408813 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:42:32.245317
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_54_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_48_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_41_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_35_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_29_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_23_6083.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_54_6088.jpg', '/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_48_6086.jpg', '/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_41_6088.jpg', '/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_35_6091.jpg', '/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_29_6082.jpg', '/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_23_6083.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_54_6088.jpg
/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_48_6086.jpg
/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_41_6088.jpg
/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_35_6091.jpg
/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_29_6082.jpg
/home/nano/Desktop/images/18032025/12/42/image_18032025_12_42_23_6083.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345102018","1345101565","1345101454","1345101319","1345101677","1345101824"],"photo_ids_order":["1345101319","1345101454","1345101565","1345101677","1345101824","1345102018"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90ae41aec62d877ad398471c62bb4830.jpg","text":"TemporaryFile(/tmp/multipartBody8781971343623050733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298212699,"filename":"image_18032025_12_42_23_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7d7eea72b3581f6f3a92cd740ff19627.jpg","text":"TemporaryFile(/tmp/multipartBody3261465539557528819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298212699,"filename":"image_18032025_12_42_41_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3c341b45ed2ec20100c86f25b11507ba.jpg","text":"TemporaryFile(/tmp/multipartBody9185878895557873452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298212699,"filename":"image_18032025_12_42_48_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c22e4790627a0bcd2f498d42071e27c9.jpg","text":"TemporaryFile(/tmp/multipartBody3176277601041704517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298212699,"filename":"image_18032025_12_42_54_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cbc1a1354547276c94062f3408a05e70.jpg","text":"TemporaryFile(/tmp/multipartBody5556406119784218278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298212699,"filename":"image_18032025_12_42_35_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4f5c4fe7dde62e2dfa07baec4de527b.jpg","text":"TemporaryFile(/tmp/multipartBody595893236632684643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298212699,"filename":"image_18032025_12_42_29_6082.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345101565","file1":"1345101454","file0":"1345101319","file4":"1345101824","file5":"1345102018","file3":"1345101677"},"map_files_photo_id_array":[{"photo_id":"1345102018","filename":"file5"},{"photo_id":"1345101565","filename":"file2"},{"photo_id":"1345101824","filename":"file4"},{"photo_id":"1345101454","filename":"file1"},{"photo_id":"1345101319","filename":"file0"},{"photo_id":"1345101677","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345102018":["hashtag1","hashtag2"]},{"1345101565":["hashtag1","hashtag2"]},{"1345101454":["hashtag1","hashtag2"]},{"1345101319":["hashtag1","hashtag2"]},{"1345101677":["hashtag1","hashtag2"]},{"1345101824":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345102018, 1345101565, 1345101454, 1345101319, 1345101677, 1345101824)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.356276035308838 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:43:32.341402
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_54_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_48_6095.jpg', 2), ('/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_41_6101.jpg', 2), ('/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_35_6100.jpg', 2), ('/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_29_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_23_6097.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_54_6090.jpg', '/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_48_6095.jpg', '/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_41_6101.jpg', '/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_35_6100.jpg', '/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_29_6094.jpg', '/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_23_6097.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_54_6090.jpg
/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_48_6095.jpg
/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_41_6101.jpg
/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_35_6100.jpg
/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_29_6094.jpg
/home/nano/Desktop/images/18032025/12/43/image_18032025_12_43_23_6097.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345103043","1345103139","1345102758","1345102883","1345102964","1345102798"],"photo_ids_order":["1345102758","1345102798","1345102883","1345102964","1345103043","1345103139"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ba4fcdfa3df08ad7e0afd68d4a50c62.jpg","text":"TemporaryFile(/tmp/multipartBody8991035556148176328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298272793,"filename":"image_18032025_12_43_29_6094.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a7dda7dca8ca9b2d97680c6bb56b08a.jpg","text":"TemporaryFile(/tmp/multipartBody5633508954272728358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298272793,"filename":"image_18032025_12_43_23_6097.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8705b9f205b5449a7f8d43263cc3a449.jpg","text":"TemporaryFile(/tmp/multipartBody8612387589555038811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298272793,"filename":"image_18032025_12_43_54_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4470b1b861f3b8c66c5a58aa9213121d.jpg","text":"TemporaryFile(/tmp/multipartBody4536410932330195067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298272793,"filename":"image_18032025_12_43_41_6101.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90c13eee11a5d5cbd7d5ebbb10b4e41d.jpg","text":"TemporaryFile(/tmp/multipartBody4910148804695524856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298272793,"filename":"image_18032025_12_43_35_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2474596c4725e2fcedcda5ed76616b1d.jpg","text":"TemporaryFile(/tmp/multipartBody5927676680566763938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298272793,"filename":"image_18032025_12_43_48_6095.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345102883","file1":"1345102798","file0":"1345102758","file4":"1345103043","file5":"1345103139","file3":"1345102964"},"map_files_photo_id_array":[{"photo_id":"1345103139","filename":"file5"},{"photo_id":"1345102883","filename":"file2"},{"photo_id":"1345103043","filename":"file4"},{"photo_id":"1345102798","filename":"file1"},{"photo_id":"1345102758","filename":"file0"},{"photo_id":"1345102964","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345103043":["hashtag1","hashtag2"]},{"1345103139":["hashtag1","hashtag2"]},{"1345102758":["hashtag1","hashtag2"]},{"1345102883":["hashtag1","hashtag2"]},{"1345102964":["hashtag1","hashtag2"]},{"1345102798":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345103043, 1345103139, 1345102758, 1345102883, 1345102964, 1345102798)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.933063983917236 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:44:32.479019
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_54_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_48_6096.jpg', 2), ('/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_42_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_35_6100.jpg', 2), ('/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_29_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_23_6118.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_54_6102.jpg', '/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_48_6096.jpg', '/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_42_6099.jpg', '/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_35_6100.jpg', '/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_29_6094.jpg', '/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_23_6118.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_54_6102.jpg
/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_48_6096.jpg
/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_42_6099.jpg
/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_35_6100.jpg
/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_29_6094.jpg
/home/nano/Desktop/images/18032025/12/44/image_18032025_12_44_23_6118.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345104303","1345104440","1345104245","1345104190","1345104346","1345104121"],"photo_ids_order":["1345104121","1345104190","1345104245","1345104303","1345104346","1345104440"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/687d05885b6069eef3733477d6bd46f7.jpg","text":"TemporaryFile(/tmp/multipartBody4723885124481418165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298333054,"filename":"image_18032025_12_44_35_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d2f9b1c96d3b69d817ddf1a7b20478b6.jpg","text":"TemporaryFile(/tmp/multipartBody6764065799334727309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298333054,"filename":"image_18032025_12_44_23_6118.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/93530f976fa3482a9a1edaf3ebb3c2ba.jpg","text":"TemporaryFile(/tmp/multipartBody210243847141786431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298333054,"filename":"image_18032025_12_44_42_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/57c626f68434aa8ee85b44fa1e487513.jpg","text":"TemporaryFile(/tmp/multipartBody8699090673952771907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298333054,"filename":"image_18032025_12_44_48_6096.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47246b9364d93249418ec0e2edac66d5.jpg","text":"TemporaryFile(/tmp/multipartBody8463875259174577235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298333054,"filename":"image_18032025_12_44_29_6094.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/26a9a32034b37d979415186edcac497d.jpg","text":"TemporaryFile(/tmp/multipartBody6713270632604276361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298333054,"filename":"image_18032025_12_44_54_6102.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345104245","file1":"1345104190","file0":"1345104121","file4":"1345104346","file5":"1345104440","file3":"1345104303"},"map_files_photo_id_array":[{"photo_id":"1345104440","filename":"file5"},{"photo_id":"1345104245","filename":"file2"},{"photo_id":"1345104346","filename":"file4"},{"photo_id":"1345104190","filename":"file1"},{"photo_id":"1345104121","filename":"file0"},{"photo_id":"1345104303","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345104303":["hashtag1","hashtag2"]},{"1345104440":["hashtag1","hashtag2"]},{"1345104245":["hashtag1","hashtag2"]},{"1345104190":["hashtag1","hashtag2"]},{"1345104346":["hashtag1","hashtag2"]},{"1345104121":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345104303, 1345104440, 1345104245, 1345104190, 1345104346, 1345104121)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.91273736953735 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:45:32.612165
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_53_5087.jpg', 2), ('/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_42_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_36_6136.jpg', 2), ('/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_29_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_23_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_17_6104.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_53_5087.jpg', '/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_42_6128.jpg', '/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_36_6136.jpg', '/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_29_6099.jpg', '/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_23_6099.jpg', '/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_17_6104.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_53_5087.jpg
/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_42_6128.jpg
/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_36_6136.jpg
/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_29_6099.jpg
/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_23_6099.jpg
/home/nano/Desktop/images/18032025/12/45/image_18032025_12_45_17_6104.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345105187","1345105073","1345104950","1345105432","1345105312","1345104897"],"photo_ids_order":["1345104897","1345104950","1345105073","1345105187","1345105312","1345105432"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e8e85b1b4023a8f1e16669f30270a124.jpg","text":"TemporaryFile(/tmp/multipartBody5441150777214367290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298393245,"filename":"image_18032025_12_45_29_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0d8c61e9c4fb245c0e4982e523c8dbdd.jpg","text":"TemporaryFile(/tmp/multipartBody7274810906579304995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298393245,"filename":"image_18032025_12_45_36_6136.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e75a54f9e90e6487ec1df3202d46e6e6.jpg","text":"TemporaryFile(/tmp/multipartBody2001310043252593178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298393245,"filename":"image_18032025_12_45_42_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6cca3b95656c580e83501170fb347f2.jpg","text":"TemporaryFile(/tmp/multipartBody2151729697519020338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298393245,"filename":"image_18032025_12_45_17_6104.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3157d75fce9719b057337bf640e9f20d.jpg","text":"TemporaryFile(/tmp/multipartBody8524247359562128696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298393245,"filename":"image_18032025_12_45_23_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/41c5f93a681baf3425f987c07e64f9f8.jpg","text":"TemporaryFile(/tmp/multipartBody4217741699271431624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298393245,"filename":"image_18032025_12_45_53_5087.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345105073","file1":"1345104950","file0":"1345104897","file4":"1345105312","file5":"1345105432","file3":"1345105187"},"map_files_photo_id_array":[{"photo_id":"1345105432","filename":"file5"},{"photo_id":"1345105073","filename":"file2"},{"photo_id":"1345105312","filename":"file4"},{"photo_id":"1345104950","filename":"file1"},{"photo_id":"1345104897","filename":"file0"},{"photo_id":"1345105187","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345105187":["hashtag1","hashtag2"]},{"1345105073":["hashtag1","hashtag2"]},{"1345104950":["hashtag1","hashtag2"]},{"1345105432":["hashtag1","hashtag2"]},{"1345105312":["hashtag1","hashtag2"]},{"1345104897":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345105187, 1345105073, 1345104950, 1345105432, 1345105312, 1345104897)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.747194051742554 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:46:32.780224
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_47_6137.jpg', 2), ('/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_41_5145.jpg', 2), ('/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_36_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_30_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_23_6100.jpg', 2), ('/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_17_6100.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_47_6137.jpg', '/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_41_5145.jpg', '/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_36_6102.jpg', '/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_30_6153.jpg', '/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_23_6100.jpg', '/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_17_6100.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_47_6137.jpg
/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_41_5145.jpg
/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_36_6102.jpg
/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_30_6153.jpg
/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_23_6100.jpg
/home/nano/Desktop/images/18032025/12/46/image_18032025_12_46_17_6100.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345105889","1345105858","1345105680","1345105776","1345105812","1345105920"],"photo_ids_order":["1345105680","1345105776","1345105812","1345105858","1345105889","1345105920"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aeed71cafe208efcb5f521a45e173228.jpg","text":"TemporaryFile(/tmp/multipartBody8826636404750020215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298453398,"filename":"image_18032025_12_46_23_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/445cbc62c3e6a5e1fcb79cee2f11fd65.jpg","text":"TemporaryFile(/tmp/multipartBody3383554818143556349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298453398,"filename":"image_18032025_12_46_30_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c58589be620b9b0b083598904b9c704e.jpg","text":"TemporaryFile(/tmp/multipartBody5405458033267648242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298453398,"filename":"image_18032025_12_46_47_6137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ef6e9047d213530d70220f1b1adf1ab2.jpg","text":"TemporaryFile(/tmp/multipartBody8956096712084494664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298453398,"filename":"image_18032025_12_46_41_5145.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ce7f0b11a448d1de46a1cbbc0b0b7de.jpg","text":"TemporaryFile(/tmp/multipartBody6468467802405173762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298453398,"filename":"image_18032025_12_46_36_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb06837ec7ee209e6873273e20268301.jpg","text":"TemporaryFile(/tmp/multipartBody5821300187339001357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298453398,"filename":"image_18032025_12_46_17_6100.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345105812","file1":"1345105776","file0":"1345105680","file4":"1345105889","file5":"1345105920","file3":"1345105858"},"map_files_photo_id_array":[{"photo_id":"1345105920","filename":"file5"},{"photo_id":"1345105812","filename":"file2"},{"photo_id":"1345105889","filename":"file4"},{"photo_id":"1345105776","filename":"file1"},{"photo_id":"1345105680","filename":"file0"},{"photo_id":"1345105858","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345105889":["hashtag1","hashtag2"]},{"1345105858":["hashtag1","hashtag2"]},{"1345105680":["hashtag1","hashtag2"]},{"1345105776":["hashtag1","hashtag2"]},{"1345105812":["hashtag1","hashtag2"]},{"1345105920":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345105889, 1345105858, 1345105680, 1345105776, 1345105812, 1345105920)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.062928438186646 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:47:31.912018
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_53_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_47_6103.jpg', 2), ('/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_35_5089.jpg', 2), ('/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_30_6126.jpg', 2), ('/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_24_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_18_6115.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_53_6098.jpg', '/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_47_6103.jpg', '/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_35_5089.jpg', '/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_30_6126.jpg', '/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_24_6092.jpg', '/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_18_6115.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_53_6098.jpg
/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_47_6103.jpg
/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_35_5089.jpg
/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_30_6126.jpg
/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_24_6092.jpg
/home/nano/Desktop/images/18032025/12/47/image_18032025_12_47_18_6115.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345106370","1345106322","1345106418","1345106205","1345106270","1345106237"],"photo_ids_order":["1345106205","1345106237","1345106270","1345106322","1345106370","1345106418"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a32a1a26ac46068c613af8dc8802b9c9.jpg","text":"TemporaryFile(/tmp/multipartBody3377939793202161845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298512538,"filename":"image_18032025_12_47_24_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0346aec484b25482ec15d2fe5c61ff4e.jpg","text":"TemporaryFile(/tmp/multipartBody7524570274631383172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298512538,"filename":"image_18032025_12_47_30_6126.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/96a92fe058604c4800c56c6e828148d3.jpg","text":"TemporaryFile(/tmp/multipartBody4270264979760158520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298512538,"filename":"image_18032025_12_47_18_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b27d4b760ed941006d67b8c343839ccb.jpg","text":"TemporaryFile(/tmp/multipartBody7835548072878863307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298512538,"filename":"image_18032025_12_47_53_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e63927aa94476789384e0cfcbb6563f7.jpg","text":"TemporaryFile(/tmp/multipartBody5084004855158367338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298512538,"filename":"image_18032025_12_47_35_5089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2f87614b135df0bc9d8e68ed06ebbed.jpg","text":"TemporaryFile(/tmp/multipartBody4765752214062307724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298512538,"filename":"image_18032025_12_47_47_6103.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345106270","file1":"1345106237","file0":"1345106205","file4":"1345106370","file5":"1345106418","file3":"1345106322"},"map_files_photo_id_array":[{"photo_id":"1345106418","filename":"file5"},{"photo_id":"1345106270","filename":"file2"},{"photo_id":"1345106370","filename":"file4"},{"photo_id":"1345106237","filename":"file1"},{"photo_id":"1345106205","filename":"file0"},{"photo_id":"1345106322","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345106370":["hashtag1","hashtag2"]},{"1345106322":["hashtag1","hashtag2"]},{"1345106418":["hashtag1","hashtag2"]},{"1345106205":["hashtag1","hashtag2"]},{"1345106270":["hashtag1","hashtag2"]},{"1345106237":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345106370, 1345106322, 1345106418, 1345106205, 1345106270, 1345106237)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.290125370025635 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:48:31.992906
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_53_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_47_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_41_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_35_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_29_5080.jpg', 2), ('/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_24_6127.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_53_6102.jpg', '/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_47_6099.jpg', '/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_41_6098.jpg', '/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_35_6128.jpg', '/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_29_5080.jpg', '/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_24_6127.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_53_6102.jpg
/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_47_6099.jpg
/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_41_6098.jpg
/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_35_6128.jpg
/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_29_5080.jpg
/home/nano/Desktop/images/18032025/12/48/image_18032025_12_48_24_6127.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345106791","1345106773","1345106860","1345106884","1345106982","1345106940"],"photo_ids_order":["1345106773","1345106791","1345106860","1345106884","1345106940","1345106982"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a92b996721b6e29c0cb53dac8245d092.jpg","text":"TemporaryFile(/tmp/multipartBody80414191330426839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298572441,"filename":"image_18032025_12_48_47_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a578ffc4b2e8d2864f61f9d86cb297f.jpg","text":"TemporaryFile(/tmp/multipartBody2613207826962742590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298572441,"filename":"image_18032025_12_48_53_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac29fbc83e1a8fe0bafea14b3164a6b9.jpg","text":"TemporaryFile(/tmp/multipartBody7019073756787698522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298572441,"filename":"image_18032025_12_48_41_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/477a9bf257eea7c0db7ab1339d2114a5.jpg","text":"TemporaryFile(/tmp/multipartBody8415011825675835059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298572441,"filename":"image_18032025_12_48_35_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bea796c3654ca13dc6096a823e0e4992.jpg","text":"TemporaryFile(/tmp/multipartBody2882140068430921761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298572441,"filename":"image_18032025_12_48_24_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28a754dd972b9ad898a34eada8abd0cc.jpg","text":"TemporaryFile(/tmp/multipartBody1027227435521192750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298572441,"filename":"image_18032025_12_48_29_5080.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345106860","file1":"1345106791","file0":"1345106773","file4":"1345106940","file5":"1345106982","file3":"1345106884"},"map_files_photo_id_array":[{"photo_id":"1345106982","filename":"file5"},{"photo_id":"1345106860","filename":"file2"},{"photo_id":"1345106940","filename":"file4"},{"photo_id":"1345106791","filename":"file1"},{"photo_id":"1345106773","filename":"file0"},{"photo_id":"1345106884","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345106791":["hashtag1","hashtag2"]},{"1345106773":["hashtag1","hashtag2"]},{"1345106860":["hashtag1","hashtag2"]},{"1345106884":["hashtag1","hashtag2"]},{"1345106982":["hashtag1","hashtag2"]},{"1345106940":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345106791, 1345106773, 1345106860, 1345106884, 1345106982, 1345106940)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.28107738494873 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:49:32.097581
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_53_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_47_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_41_6124.jpg', 2), ('/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_35_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_29_6126.jpg', 2), ('/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_23_5084.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_53_6107.jpg', '/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_47_6102.jpg', '/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_41_6124.jpg', '/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_35_6102.jpg', '/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_29_6126.jpg', '/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_23_5084.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_53_6107.jpg
/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_47_6102.jpg
/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_41_6124.jpg
/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_35_6102.jpg
/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_29_6126.jpg
/home/nano/Desktop/images/18032025/12/49/image_18032025_12_49_23_5084.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345107391","1345107631","1345107540","1345107482","1345107293","1345107320"],"photo_ids_order":["1345107293","1345107320","1345107391","1345107482","1345107540","1345107631"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ee3d4465dc97e59dda8e23ab8179dcb.jpg","text":"TemporaryFile(/tmp/multipartBody8373018693789112616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298632545,"filename":"image_18032025_12_49_41_6124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e57fde312fb8812f92348ec3d5ae4913.jpg","text":"TemporaryFile(/tmp/multipartBody6684284040935607625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298632545,"filename":"image_18032025_12_49_23_5084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ecceda8d07d573de678124b5f31538dc.jpg","text":"TemporaryFile(/tmp/multipartBody5273095336039006437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298632545,"filename":"image_18032025_12_49_29_6126.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e8efc2b6327be2b7ee9f8d61b0ad401.jpg","text":"TemporaryFile(/tmp/multipartBody2480663829256544820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298632545,"filename":"image_18032025_12_49_35_6102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b970eaab828cafc4b479f6d34b7f1226.jpg","text":"TemporaryFile(/tmp/multipartBody9010058081899741783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298632545,"filename":"image_18032025_12_49_53_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ffedf60e4da3990ec81d406c20cc7c81.jpg","text":"TemporaryFile(/tmp/multipartBody4621744780686431064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298632545,"filename":"image_18032025_12_49_47_6102.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345107391","file1":"1345107320","file0":"1345107293","file4":"1345107540","file5":"1345107631","file3":"1345107482"},"map_files_photo_id_array":[{"photo_id":"1345107631","filename":"file5"},{"photo_id":"1345107391","filename":"file2"},{"photo_id":"1345107540","filename":"file4"},{"photo_id":"1345107320","filename":"file1"},{"photo_id":"1345107293","filename":"file0"},{"photo_id":"1345107482","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345107391":["hashtag1","hashtag2"]},{"1345107631":["hashtag1","hashtag2"]},{"1345107540":["hashtag1","hashtag2"]},{"1345107482":["hashtag1","hashtag2"]},{"1345107293":["hashtag1","hashtag2"]},{"1345107320":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345107391, 1345107631, 1345107540, 1345107482, 1345107293, 1345107320)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.297895669937134 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:50:32.210152
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_53_6068.jpg', 2), ('/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_47_6101.jpg', 2), ('/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_41_6096.jpg', 2), ('/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_35_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_29_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_23_5093.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_53_6068.jpg', '/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_47_6101.jpg', '/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_41_6096.jpg', '/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_35_6107.jpg', '/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_29_6098.jpg', '/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_23_5093.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_53_6068.jpg
/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_47_6101.jpg
/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_41_6096.jpg
/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_35_6107.jpg
/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_29_6098.jpg
/home/nano/Desktop/images/18032025/12/50/image_18032025_12_50_23_5093.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345108197","1345108606","1345108359","1345108451","1345108532","1345108273"],"photo_ids_order":["1345108197","1345108273","1345108359","1345108451","1345108532","1345108606"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/74a4da7cd19a3a78ebe068247f5b2148.jpg","text":"TemporaryFile(/tmp/multipartBody1139053398879017888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298692658,"filename":"image_18032025_12_50_53_6068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bb8c3d17820d6a4adf18c50bfa2a29a3.jpg","text":"TemporaryFile(/tmp/multipartBody7072572827438431436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298692658,"filename":"image_18032025_12_50_23_5093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/79dc3ed7ac80980fdff8b88edbf7691e.jpg","text":"TemporaryFile(/tmp/multipartBody2158315955875782847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298692658,"filename":"image_18032025_12_50_41_6096.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/73fbd6fe2810a92869f2de0d5b5d85ef.jpg","text":"TemporaryFile(/tmp/multipartBody1900371712558909390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298692658,"filename":"image_18032025_12_50_35_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/13800fd11b20d49b0351f27eaf6db0d0.jpg","text":"TemporaryFile(/tmp/multipartBody4096657808087916062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298692658,"filename":"image_18032025_12_50_29_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6540520736330dacc2a9d8c42bc77fda.jpg","text":"TemporaryFile(/tmp/multipartBody32579069193903418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298692658,"filename":"image_18032025_12_50_47_6101.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345108359","file1":"1345108273","file0":"1345108197","file4":"1345108532","file5":"1345108606","file3":"1345108451"},"map_files_photo_id_array":[{"photo_id":"1345108606","filename":"file5"},{"photo_id":"1345108359","filename":"file2"},{"photo_id":"1345108532","filename":"file4"},{"photo_id":"1345108273","filename":"file1"},{"photo_id":"1345108197","filename":"file0"},{"photo_id":"1345108451","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345108197":["hashtag1","hashtag2"]},{"1345108606":["hashtag1","hashtag2"]},{"1345108359":["hashtag1","hashtag2"]},{"1345108451":["hashtag1","hashtag2"]},{"1345108532":["hashtag1","hashtag2"]},{"1345108273":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345108197, 1345108606, 1345108359, 1345108451, 1345108532, 1345108273)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.97476291656494 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:51:32.326870
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_53_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_47_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_41_6090.jpg', 2), ('/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_35_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_29_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_23_5082.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_53_6091.jpg', '/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_47_6093.jpg', '/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_41_6090.jpg', '/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_35_6121.jpg', '/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_29_6127.jpg', '/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_23_5082.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_53_6091.jpg
/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_47_6093.jpg
/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_41_6090.jpg
/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_35_6121.jpg
/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_29_6127.jpg
/home/nano/Desktop/images/18032025/12/51/image_18032025_12_51_23_5082.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345109286","1345109349","1345109238","1345109555","1345109444","1345109509"],"photo_ids_order":["1345109238","1345109286","1345109349","1345109444","1345109509","1345109555"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec32e4350800ea64eac08770c1732c96.jpg","text":"TemporaryFile(/tmp/multipartBody7894122572255224524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298752753,"filename":"image_18032025_12_51_47_6093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1dd3bad9795b49c7bafe782ab3b78c86.jpg","text":"TemporaryFile(/tmp/multipartBody3845866018324165475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298752753,"filename":"image_18032025_12_51_41_6090.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f216f017adcff2920d8a944c1d7ec181.jpg","text":"TemporaryFile(/tmp/multipartBody63570272553465253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298752753,"filename":"image_18032025_12_51_53_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f0d4a2f519c1b28bd766eab1f9cb6484.jpg","text":"TemporaryFile(/tmp/multipartBody5103184510462146658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298752753,"filename":"image_18032025_12_51_23_5082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bed23c18d2bad1999cce478ccd7e5eb3.jpg","text":"TemporaryFile(/tmp/multipartBody571098707356508621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298752753,"filename":"image_18032025_12_51_35_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/476340b40071b598424d14c2e43570d0.jpg","text":"TemporaryFile(/tmp/multipartBody2091027899082015438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298752753,"filename":"image_18032025_12_51_29_6127.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345109349","file1":"1345109286","file0":"1345109238","file4":"1345109509","file5":"1345109555","file3":"1345109444"},"map_files_photo_id_array":[{"photo_id":"1345109555","filename":"file5"},{"photo_id":"1345109349","filename":"file2"},{"photo_id":"1345109509","filename":"file4"},{"photo_id":"1345109286","filename":"file1"},{"photo_id":"1345109238","filename":"file0"},{"photo_id":"1345109444","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345109286":["hashtag1","hashtag2"]},{"1345109349":["hashtag1","hashtag2"]},{"1345109238":["hashtag1","hashtag2"]},{"1345109555":["hashtag1","hashtag2"]},{"1345109444":["hashtag1","hashtag2"]},{"1345109509":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345109286, 1345109349, 1345109238, 1345109555, 1345109444, 1345109509)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.73945426940918 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:52:32.416681
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_54_6097.jpg', 2), ('/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_47_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_41_6096.jpg', 2), ('/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_35_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_29_6098.jpg', 2), ('/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_23_6100.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_54_6097.jpg', '/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_47_6107.jpg', '/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_41_6096.jpg', '/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_35_6098.jpg', '/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_29_6098.jpg', '/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_23_6100.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_54_6097.jpg
/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_47_6107.jpg
/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_41_6096.jpg
/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_35_6098.jpg
/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_29_6098.jpg
/home/nano/Desktop/images/18032025/12/52/image_18032025_12_52_23_6100.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345109880","1345109820","1345109870","1345109924","1345109846","1345109896"],"photo_ids_order":["1345109820","1345109846","1345109870","1345109880","1345109896","1345109924"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/71d8eeafdc265dea1d18b23bd364a696.jpg","text":"TemporaryFile(/tmp/multipartBody561884409410652549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298812858,"filename":"image_18032025_12_52_35_6098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2e87f74347060c358ddd8a07b17d23c0.jpg","text":"TemporaryFile(/tmp/multipartBody2690787644922720702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298812858,"filename":"image_18032025_12_52_54_6097.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/043370e58f01e2bc2590ac82c2e717d5.jpg","text":"TemporaryFile(/tmp/multipartBody3762410736616130239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298812858,"filename":"image_18032025_12_52_41_6096.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9db668e5e6a0034978296b068b0494a3.jpg","text":"TemporaryFile(/tmp/multipartBody935247792777890442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298812858,"filename":"image_18032025_12_52_23_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3892341b418a1ff9f46df22bed4faf0a.jpg","text":"TemporaryFile(/tmp/multipartBody5342525448845862053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298812858,"filename":"image_18032025_12_52_47_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d7f9e0be36b554f03b47de3e44fb9784.jpg","text":"TemporaryFile(/tmp/multipartBody8931047072698606210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298812858,"filename":"image_18032025_12_52_29_6098.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345109870","file1":"1345109846","file0":"1345109820","file4":"1345109896","file5":"1345109924","file3":"1345109880"},"map_files_photo_id_array":[{"photo_id":"1345109924","filename":"file5"},{"photo_id":"1345109870","filename":"file2"},{"photo_id":"1345109896","filename":"file4"},{"photo_id":"1345109846","filename":"file1"},{"photo_id":"1345109820","filename":"file0"},{"photo_id":"1345109880","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345109880":["hashtag1","hashtag2"]},{"1345109820":["hashtag1","hashtag2"]},{"1345109870":["hashtag1","hashtag2"]},{"1345109924":["hashtag1","hashtag2"]},{"1345109846":["hashtag1","hashtag2"]},{"1345109896":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345109880, 1345109820, 1345109870, 1345109924, 1345109846, 1345109896)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.61583971977234 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:53:32.523231
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_54_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_47_6097.jpg', 2), ('/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_41_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_35_6104.jpg', 2), ('/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_29_6103.jpg', 2), ('/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_23_6132.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_54_6135.jpg', '/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_47_6097.jpg', '/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_41_6106.jpg', '/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_35_6104.jpg', '/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_29_6103.jpg', '/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_23_6132.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_54_6135.jpg
/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_47_6097.jpg
/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_41_6106.jpg
/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_35_6104.jpg
/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_29_6103.jpg
/home/nano/Desktop/images/18032025/12/53/image_18032025_12_53_23_6132.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345110937","1345110516","1345110842","1345111060","1345110751","1345110640"],"photo_ids_order":["1345110516","1345110640","1345110751","1345110842","1345110937","1345111060"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/efc9fb06558c8adb11be2d73a753e331.jpg","text":"TemporaryFile(/tmp/multipartBody2784898493871579846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298872987,"filename":"image_18032025_12_53_29_6103.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/828059511d007ade063c480b88116f90.jpg","text":"TemporaryFile(/tmp/multipartBody8018835557602871498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298872987,"filename":"image_18032025_12_53_54_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd45e16e32a758d38dc9b2de17f62383.jpg","text":"TemporaryFile(/tmp/multipartBody471050302432052279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298872987,"filename":"image_18032025_12_53_35_6104.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18716355e049ed747bfe45d9f8554d0b.jpg","text":"TemporaryFile(/tmp/multipartBody2148441343135754474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298872987,"filename":"image_18032025_12_53_23_6132.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0161f0504e05b1d782d0d39a71510c64.jpg","text":"TemporaryFile(/tmp/multipartBody9056307712625208666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298872987,"filename":"image_18032025_12_53_41_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e653da1f8301c79ddec0a5dd75847f37.jpg","text":"TemporaryFile(/tmp/multipartBody6880190389501826387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298872987,"filename":"image_18032025_12_53_47_6097.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345110751","file1":"1345110640","file0":"1345110516","file4":"1345110937","file5":"1345111060","file3":"1345110842"},"map_files_photo_id_array":[{"photo_id":"1345111060","filename":"file5"},{"photo_id":"1345110751","filename":"file2"},{"photo_id":"1345110937","filename":"file4"},{"photo_id":"1345110640","filename":"file1"},{"photo_id":"1345110516","filename":"file0"},{"photo_id":"1345110842","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345110937":["hashtag1","hashtag2"]},{"1345110516":["hashtag1","hashtag2"]},{"1345110842":["hashtag1","hashtag2"]},{"1345111060":["hashtag1","hashtag2"]},{"1345110751":["hashtag1","hashtag2"]},{"1345110640":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345110937, 1345110516, 1345110842, 1345111060, 1345110751, 1345110640)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.357229709625244 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:54:32.635389
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_48_6129.jpg', 2), ('/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_41_6103.jpg', 2), ('/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_35_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_29_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_23_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_17_6107.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_48_6129.jpg', '/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_41_6103.jpg', '/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_35_6106.jpg', '/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_29_6109.jpg', '/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_23_6105.jpg', '/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_17_6107.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_48_6129.jpg
/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_41_6103.jpg
/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_35_6106.jpg
/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_29_6109.jpg
/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_23_6105.jpg
/home/nano/Desktop/images/18032025/12/54/image_18032025_12_54_17_6107.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345112229","1345112136","1345112318","1345112050","1345111957","1345112394"],"photo_ids_order":["1345111957","1345112050","1345112136","1345112229","1345112318","1345112394"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/987c9e812a6251a1c61b1c114765c3f4.jpg","text":"TemporaryFile(/tmp/multipartBody6417914997579649389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298933058,"filename":"image_18032025_12_54_29_6109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f52644f4b6f0d2d738bce8b13e2ebcbd.jpg","text":"TemporaryFile(/tmp/multipartBody2799937253427017960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298933058,"filename":"image_18032025_12_54_35_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b102eb79e2fa49ca561b66dc2cdc00fb.jpg","text":"TemporaryFile(/tmp/multipartBody7615389520928629225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298933058,"filename":"image_18032025_12_54_23_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/00f761e757f75fcc1b9886ab142e496c.jpg","text":"TemporaryFile(/tmp/multipartBody4730841964759493172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298933058,"filename":"image_18032025_12_54_41_6103.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c5801740034d4ca1f97a5e01fdcb635.jpg","text":"TemporaryFile(/tmp/multipartBody4086456574606686616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298933058,"filename":"image_18032025_12_54_48_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be3108f21ae467ae7f8de56f03b03369.jpg","text":"TemporaryFile(/tmp/multipartBody1138167206462003442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298933058,"filename":"image_18032025_12_54_17_6107.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345112136","file1":"1345112050","file0":"1345111957","file4":"1345112318","file5":"1345112394","file3":"1345112229"},"map_files_photo_id_array":[{"photo_id":"1345112394","filename":"file5"},{"photo_id":"1345112136","filename":"file2"},{"photo_id":"1345112318","filename":"file4"},{"photo_id":"1345112050","filename":"file1"},{"photo_id":"1345111957","filename":"file0"},{"photo_id":"1345112229","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345112229":["hashtag1","hashtag2"]},{"1345112136":["hashtag1","hashtag2"]},{"1345112318":["hashtag1","hashtag2"]},{"1345112050":["hashtag1","hashtag2"]},{"1345111957":["hashtag1","hashtag2"]},{"1345112394":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345112229, 1345112136, 1345112318, 1345112050, 1345111957, 1345112394)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.87019443511963 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:55:32.761735
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_53_5100.jpg', 2), ('/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_48_6138.jpg', 2), ('/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_42_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_29_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_23_6099.jpg', 2), ('/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_17_6099.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_53_5100.jpg', '/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_48_6138.jpg', '/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_42_6106.jpg', '/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_29_6105.jpg', '/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_23_6099.jpg', '/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_17_6099.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_53_5100.jpg
/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_48_6138.jpg
/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_42_6106.jpg
/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_29_6105.jpg
/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_23_6099.jpg
/home/nano/Desktop/images/18032025/12/55/image_18032025_12_55_17_6099.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345113260","1345113200","1345113109","1345112875","1345113025","1345112955"],"photo_ids_order":["1345112875","1345112955","1345113025","1345113109","1345113200","1345113260"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63f4d3659d0bb0bd7236ee24ddcfd99d.jpg","text":"TemporaryFile(/tmp/multipartBody307910136282204039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298993189,"filename":"image_18032025_12_55_17_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7712d9439f4693ef807a4920bcf0841a.jpg","text":"TemporaryFile(/tmp/multipartBody6544546780816150828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298993189,"filename":"image_18032025_12_55_23_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a8ef2e1a5e482b38fc6c6b26d1289ac4.jpg","text":"TemporaryFile(/tmp/multipartBody3688762251581662772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298993189,"filename":"image_18032025_12_55_29_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c15e30e376237ed96da531df2cd10da7.jpg","text":"TemporaryFile(/tmp/multipartBody2996436277541612116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298993189,"filename":"image_18032025_12_55_53_5100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/655ba4b56268f2f0a9380d0d9234c40b.jpg","text":"TemporaryFile(/tmp/multipartBody8131176774705469475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298993189,"filename":"image_18032025_12_55_42_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/930f4469e5218f3a26b749ec76b60e92.jpg","text":"TemporaryFile(/tmp/multipartBody5214313562049979046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742298993189,"filename":"image_18032025_12_55_48_6138.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345113025","file1":"1345112955","file0":"1345112875","file4":"1345113200","file5":"1345113260","file3":"1345113109"},"map_files_photo_id_array":[{"photo_id":"1345113260","filename":"file5"},{"photo_id":"1345113025","filename":"file2"},{"photo_id":"1345113200","filename":"file4"},{"photo_id":"1345112955","filename":"file1"},{"photo_id":"1345112875","filename":"file0"},{"photo_id":"1345113109","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345113260":["hashtag1","hashtag2"]},{"1345113200":["hashtag1","hashtag2"]},{"1345113109":["hashtag1","hashtag2"]},{"1345112875":["hashtag1","hashtag2"]},{"1345113025":["hashtag1","hashtag2"]},{"1345112955":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345113260, 1345113200, 1345113109, 1345112875, 1345113025, 1345112955)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.6796817779541 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:56:31.883357
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_53_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_47_6136.jpg', 2), ('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_41_5101.jpg', 2), ('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_36_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_30_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_23_6136.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_53_6141.jpg', '/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_47_6136.jpg', '/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_41_5101.jpg', '/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_36_6116.jpg', '/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_30_6107.jpg', '/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_23_6136.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_53_6141.jpg
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_47_6136.jpg
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_41_5101.jpg
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_36_6116.jpg
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_30_6107.jpg
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_23_6136.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3642580509185791 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:57:02.613034
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_53_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_47_6136.jpg', 2), ('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_41_5101.jpg', 2), ('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_36_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_30_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_23_6136.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_53_6141.jpg', '/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_47_6136.jpg', '/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_41_5101.jpg', '/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_36_6116.jpg', '/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_30_6107.jpg', '/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_23_6136.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_53_6141.jpg
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_47_6136.jpg
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_41_5101.jpg
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_36_6116.jpg
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_30_6107.jpg
/home/nano/Desktop/images/18032025/12/56/image_18032025_12_56_23_6136.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345114669","1345114402","1345114587","1345114827","1345114500","1345114928"],"photo_ids_order":["1345114402","1345114500","1345114587","1345114669","1345114827","1345114928"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cbd8612517ebe056e52bc0388defad12.jpg","text":"TemporaryFile(/tmp/multipartBody8229373479060581157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299083064,"filename":"image_18032025_12_56_36_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0acfb6a66ae0f2493b8309437f3d47dd.jpg","text":"TemporaryFile(/tmp/multipartBody1119364292040524045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299083064,"filename":"image_18032025_12_56_53_6141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8f9524e1b02e7c02d80a507868ca3fe7.jpg","text":"TemporaryFile(/tmp/multipartBody2693861196572759562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299083064,"filename":"image_18032025_12_56_41_5101.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6384f7541d3c9fb337fc2996296f070e.jpg","text":"TemporaryFile(/tmp/multipartBody5027228935679235026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299083064,"filename":"image_18032025_12_56_30_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/16e4dd78f0f65447a6ec30cdb3c67548.jpg","text":"TemporaryFile(/tmp/multipartBody8340373045271992269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299083064,"filename":"image_18032025_12_56_47_6136.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/67d823452a9ff60c49571351e414d572.jpg","text":"TemporaryFile(/tmp/multipartBody2676063816245783689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299083064,"filename":"image_18032025_12_56_23_6136.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345114587","file1":"1345114500","file0":"1345114402","file4":"1345114827","file5":"1345114928","file3":"1345114669"},"map_files_photo_id_array":[{"photo_id":"1345114928","filename":"file5"},{"photo_id":"1345114587","filename":"file2"},{"photo_id":"1345114827","filename":"file4"},{"photo_id":"1345114500","filename":"file1"},{"photo_id":"1345114402","filename":"file0"},{"photo_id":"1345114669","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345114669":["hashtag1","hashtag2"]},{"1345114402":["hashtag1","hashtag2"]},{"1345114587":["hashtag1","hashtag2"]},{"1345114827":["hashtag1","hashtag2"]},{"1345114500":["hashtag1","hashtag2"]},{"1345114928":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345114669, 1345114402, 1345114587, 1345114827, 1345114500, 1345114928)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.099981546401978 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 12:59:03.590203
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_06_6100.jpg', 2), ('/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_53_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_41_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_35_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_29_5100.jpg', 2), ('/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_24_6149.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_06_6100.jpg', '/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_53_6111.jpg', '/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_41_6106.jpg', '/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_35_6116.jpg', '/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_29_5100.jpg', '/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_24_6149.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_06_6100.jpg
/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_53_6111.jpg
/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_41_6106.jpg
/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_35_6116.jpg
/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_29_5100.jpg
/home/nano/Desktop/images/18032025/12/57/image_18032025_12_57_24_6149.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345117194","1345117308","1345117242","1345117379","1345117351","1345117098"],"photo_ids_order":["1345117098","1345117194","1345117242","1345117308","1345117351","1345117379"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a4030fd5e4f153f459ccae26ec201fd6.jpg","text":"TemporaryFile(/tmp/multipartBody8341469158356780512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299204239,"filename":"image_18032025_12_57_53_6111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd0d4510107e665a6e9cbe13b413eebf.jpg","text":"TemporaryFile(/tmp/multipartBody5227473240415327964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299204239,"filename":"image_18032025_12_57_35_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4330b7f7e1244fada373abdd37b6f929.jpg","text":"TemporaryFile(/tmp/multipartBody3614905122875355343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299204239,"filename":"image_18032025_12_57_41_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/527162899d022896898394680b97da9b.jpg","text":"TemporaryFile(/tmp/multipartBody7687475618006409464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299204239,"filename":"image_18032025_12_57_24_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7c448bf2c7c4de2c11f2995e8b516a2.jpg","text":"TemporaryFile(/tmp/multipartBody6138622633688030407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299204239,"filename":"image_18032025_12_57_29_5100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b40bc585a364ad77cf9e78b774581716.jpg","text":"TemporaryFile(/tmp/multipartBody4048604662297131955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299204239,"filename":"image_18032025_12_59_06_6100.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345117242","file1":"1345117194","file0":"1345117098","file4":"1345117351","file5":"1345117379","file3":"1345117308"},"map_files_photo_id_array":[{"photo_id":"1345117379","filename":"file5"},{"photo_id":"1345117242","filename":"file2"},{"photo_id":"1345117351","filename":"file4"},{"photo_id":"1345117194","filename":"file1"},{"photo_id":"1345117098","filename":"file0"},{"photo_id":"1345117308","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345117194":["hashtag1","hashtag2"]},{"1345117308":["hashtag1","hashtag2"]},{"1345117242":["hashtag1","hashtag2"]},{"1345117379":["hashtag1","hashtag2"]},{"1345117351":["hashtag1","hashtag2"]},{"1345117098":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345117194, 1345117308, 1345117242, 1345117379, 1345117351, 1345117098)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.97243523597717 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:00:02.420663
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_48_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_41_6118.jpg', 2), ('/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_35_6209.jpg', 2), ('/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_29_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_23_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_17_5102.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_48_6117.jpg', '/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_41_6118.jpg', '/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_35_6209.jpg', '/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_29_6113.jpg', '/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_23_6142.jpg', '/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_17_5102.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_48_6117.jpg
/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_41_6118.jpg
/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_35_6209.jpg
/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_29_6113.jpg
/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_23_6142.jpg
/home/nano/Desktop/images/18032025/12/59/image_18032025_12_59_17_5102.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345117755","1345117836","1345117937","1345117891","1345117660","1345117615"],"photo_ids_order":["1345117615","1345117660","1345117755","1345117836","1345117891","1345117937"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/226c0f74652cdc51256ec5fcffd68c98.jpg","text":"TemporaryFile(/tmp/multipartBody5255671717844158187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299262868,"filename":"image_18032025_12_59_35_6209.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ef12fd611e24b47121377d9b5a0bbb93.jpg","text":"TemporaryFile(/tmp/multipartBody2901415705530269327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299262868,"filename":"image_18032025_12_59_29_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2f25eb1889355f4a246860d216a706a.jpg","text":"TemporaryFile(/tmp/multipartBody2571286979837693443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299262868,"filename":"image_18032025_12_59_17_5102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2aecfa0a2423aa0ec596f406103157eb.jpg","text":"TemporaryFile(/tmp/multipartBody5878019248680256496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299262868,"filename":"image_18032025_12_59_23_6142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/39f229a5d3a8b03218ca63f9ef6664a1.jpg","text":"TemporaryFile(/tmp/multipartBody4200880273544363320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299262868,"filename":"image_18032025_12_59_41_6118.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a7425d76120050f18c93f0f699399a5.jpg","text":"TemporaryFile(/tmp/multipartBody7414808243222168017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299262868,"filename":"image_18032025_12_59_48_6117.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345117755","file1":"1345117660","file0":"1345117615","file4":"1345117891","file5":"1345117937","file3":"1345117836"},"map_files_photo_id_array":[{"photo_id":"1345117937","filename":"file5"},{"photo_id":"1345117755","filename":"file2"},{"photo_id":"1345117891","filename":"file4"},{"photo_id":"1345117660","filename":"file1"},{"photo_id":"1345117615","filename":"file0"},{"photo_id":"1345117836","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345117755":["hashtag1","hashtag2"]},{"1345117836":["hashtag1","hashtag2"]},{"1345117937":["hashtag1","hashtag2"]},{"1345117891":["hashtag1","hashtag2"]},{"1345117660":["hashtag1","hashtag2"]},{"1345117615":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345117755, 1345117836, 1345117937, 1345117891, 1345117660, 1345117615)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.40418791770935 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:01:02.498725
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_53_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_47_5111.jpg', 2), ('/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_42_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_36_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_29_6124.jpg', 2), ('/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_23_6128.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_53_6108.jpg', '/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_47_5111.jpg', '/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_42_6148.jpg', '/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_36_6121.jpg', '/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_29_6124.jpg', '/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_23_6128.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_53_6108.jpg
/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_47_5111.jpg
/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_42_6148.jpg
/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_36_6121.jpg
/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_29_6124.jpg
/home/nano/Desktop/images/18032025/13/00/image_18032025_13_00_23_6128.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345118235","1345118220","1345118192","1345118261","1345118164","1345118232"],"photo_ids_order":["1345118164","1345118192","1345118220","1345118232","1345118235","1345118261"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c86ad2dec5a361086f0fc6e676230727.jpg","text":"TemporaryFile(/tmp/multipartBody8557554811589141393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299322934,"filename":"image_18032025_13_00_29_6124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ed00e94b9124e8958717e00427e4da4d.jpg","text":"TemporaryFile(/tmp/multipartBody3762098128127818888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299322934,"filename":"image_18032025_13_00_42_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd3cf2e2cc43889459a1cb7674c7b8bb.jpg","text":"TemporaryFile(/tmp/multipartBody394301161058895276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299322934,"filename":"image_18032025_13_00_47_5111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43e06d162f481e16eaefcc58f65e25dd.jpg","text":"TemporaryFile(/tmp/multipartBody2121304014816271651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299322934,"filename":"image_18032025_13_00_23_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/96b69ede5bd6fdf6819234ea4c9e8735.jpg","text":"TemporaryFile(/tmp/multipartBody3982476470592367227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299322934,"filename":"image_18032025_13_00_53_6108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/81528fc864c657e61040fdbfea5a2d16.jpg","text":"TemporaryFile(/tmp/multipartBody7614075987338476959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299322934,"filename":"image_18032025_13_00_36_6121.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345118220","file1":"1345118192","file0":"1345118164","file4":"1345118235","file5":"1345118261","file3":"1345118232"},"map_files_photo_id_array":[{"photo_id":"1345118261","filename":"file5"},{"photo_id":"1345118220","filename":"file2"},{"photo_id":"1345118235","filename":"file4"},{"photo_id":"1345118192","filename":"file1"},{"photo_id":"1345118164","filename":"file0"},{"photo_id":"1345118232","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345118235":["hashtag1","hashtag2"]},{"1345118220":["hashtag1","hashtag2"]},{"1345118192":["hashtag1","hashtag2"]},{"1345118261":["hashtag1","hashtag2"]},{"1345118164":["hashtag1","hashtag2"]},{"1345118232":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345118235, 1345118220, 1345118192, 1345118261, 1345118164, 1345118232)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.372187852859497 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:02:02.506920
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_53_6114.jpg', 2), ('/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_47_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_41_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_35_5113.jpg', 2), ('/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_24_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_17_6120.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_53_6114.jpg', '/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_47_6145.jpg', '/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_41_6144.jpg', '/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_35_5113.jpg', '/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_24_6119.jpg', '/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_17_6120.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_53_6114.jpg
/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_47_6145.jpg
/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_41_6144.jpg
/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_35_5113.jpg
/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_24_6119.jpg
/home/nano/Desktop/images/18032025/13/01/image_18032025_13_01_17_6120.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345118546","1345118474","1345118435","1345118525","1345118490","1345118388"],"photo_ids_order":["1345118388","1345118435","1345118474","1345118490","1345118525","1345118546"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/64e2041f536a38a07042e3c4d4da4e59.jpg","text":"TemporaryFile(/tmp/multipartBody7328184240625731376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299382947,"filename":"image_18032025_13_01_17_6120.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fb9c56eb82019e5eb3a11f2308bd5479.jpg","text":"TemporaryFile(/tmp/multipartBody6217437874793575685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299382947,"filename":"image_18032025_13_01_41_6144.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd6f1907baf66ef69d57fce098c025de.jpg","text":"TemporaryFile(/tmp/multipartBody4438035385362523248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299382947,"filename":"image_18032025_13_01_47_6145.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8fd37026f6bb1c04fe4a236b80c6ce5f.jpg","text":"TemporaryFile(/tmp/multipartBody2060877946965186094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299382947,"filename":"image_18032025_13_01_24_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3911937b99fcb0be1c53b404a3d16727.jpg","text":"TemporaryFile(/tmp/multipartBody3879958893362324589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299382947,"filename":"image_18032025_13_01_35_5113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/194a343f7b421014a6e2643dd5fca129.jpg","text":"TemporaryFile(/tmp/multipartBody9116993179926818903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299382947,"filename":"image_18032025_13_01_53_6114.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345118474","file1":"1345118435","file0":"1345118388","file4":"1345118525","file5":"1345118546","file3":"1345118490"},"map_files_photo_id_array":[{"photo_id":"1345118546","filename":"file5"},{"photo_id":"1345118474","filename":"file2"},{"photo_id":"1345118525","filename":"file4"},{"photo_id":"1345118435","filename":"file1"},{"photo_id":"1345118388","filename":"file0"},{"photo_id":"1345118490","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345118546":["hashtag1","hashtag2"]},{"1345118474":["hashtag1","hashtag2"]},{"1345118435":["hashtag1","hashtag2"]},{"1345118525":["hashtag1","hashtag2"]},{"1345118490":["hashtag1","hashtag2"]},{"1345118388":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345118546, 1345118474, 1345118435, 1345118525, 1345118490, 1345118388)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.52991533279419 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:03:02.760827
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_53_6115.jpg', 2), ('/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_47_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_41_6118.jpg', 2), ('/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_35_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_29_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_23_5108.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_53_6115.jpg', '/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_47_6113.jpg', '/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_41_6118.jpg', '/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_35_6108.jpg', '/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_29_6109.jpg', '/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_23_5108.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_53_6115.jpg
/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_47_6113.jpg
/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_41_6118.jpg
/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_35_6108.jpg
/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_29_6109.jpg
/home/nano/Desktop/images/18032025/13/02/image_18032025_13_02_23_5108.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345119088","1345119090","1345119093","1345119051","1345119083","1345119086"],"photo_ids_order":["1345119051","1345119083","1345119086","1345119088","1345119090","1345119093"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/71f22d5bb3eec3bd51a1a4c7dd16a8cb.jpg","text":"TemporaryFile(/tmp/multipartBody5480472563463428124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299443207,"filename":"image_18032025_13_02_35_6108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/83236b732d0bd02780ad709daf13ee85.jpg","text":"TemporaryFile(/tmp/multipartBody1607379869046222712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299443207,"filename":"image_18032025_13_02_29_6109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3404ebeebac638af6ef98697ec4c161d.jpg","text":"TemporaryFile(/tmp/multipartBody7404399285521380689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299443207,"filename":"image_18032025_13_02_23_5108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/61f9ba5a2a3d2ba427fdd7c78e929fe4.jpg","text":"TemporaryFile(/tmp/multipartBody8919291504422964446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299443207,"filename":"image_18032025_13_02_53_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac9928d32c11efc2c0d3c9b7d767afc6.jpg","text":"TemporaryFile(/tmp/multipartBody6954111858651759170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299443207,"filename":"image_18032025_13_02_47_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e97b4eb5dd7079c1544fe7fe2145c681.jpg","text":"TemporaryFile(/tmp/multipartBody8043059353574209218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299443207,"filename":"image_18032025_13_02_41_6118.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345119086","file1":"1345119083","file0":"1345119051","file4":"1345119090","file5":"1345119093","file3":"1345119088"},"map_files_photo_id_array":[{"photo_id":"1345119093","filename":"file5"},{"photo_id":"1345119086","filename":"file2"},{"photo_id":"1345119090","filename":"file4"},{"photo_id":"1345119083","filename":"file1"},{"photo_id":"1345119051","filename":"file0"},{"photo_id":"1345119088","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345119088":["hashtag1","hashtag2"]},{"1345119090":["hashtag1","hashtag2"]},{"1345119093":["hashtag1","hashtag2"]},{"1345119051":["hashtag1","hashtag2"]},{"1345119083":["hashtag1","hashtag2"]},{"1345119086":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345119088, 1345119090, 1345119093, 1345119051, 1345119083, 1345119086)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.41839909553528 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:04:03.082591
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_54_6124.jpg', 2), ('/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_47_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_41_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_35_6110.jpg', 2), ('/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_29_6115.jpg', 2), ('/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_23_6116.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_54_6124.jpg', '/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_47_6123.jpg', '/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_41_6119.jpg', '/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_35_6110.jpg', '/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_29_6115.jpg', '/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_23_6116.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_54_6124.jpg
/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_47_6123.jpg
/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_41_6119.jpg
/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_35_6110.jpg
/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_29_6115.jpg
/home/nano/Desktop/images/18032025/13/03/image_18032025_13_03_23_6116.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345119854","1345119647","1345119781","1345119922","1345119696","1345119615"],"photo_ids_order":["1345119615","1345119647","1345119696","1345119781","1345119854","1345119922"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/786b9a75a63a6cacb3f7fec2bf588924.jpg","text":"TemporaryFile(/tmp/multipartBody9018067402662517047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299503590,"filename":"image_18032025_13_03_29_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a381ab8d9be368cc116b7667b7ce638.jpg","text":"TemporaryFile(/tmp/multipartBody575569584272548519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299503590,"filename":"image_18032025_13_03_47_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/621a3caf0a657769738953231f394206.jpg","text":"TemporaryFile(/tmp/multipartBody8780703612130493784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299503590,"filename":"image_18032025_13_03_35_6110.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bddba6a7e117a32e1c0d2423c31dab61.jpg","text":"TemporaryFile(/tmp/multipartBody5890080598614940052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299503590,"filename":"image_18032025_13_03_23_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ad4eb5854f50ea630c33d048e78b573.jpg","text":"TemporaryFile(/tmp/multipartBody5346675327864354476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299503590,"filename":"image_18032025_13_03_41_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd3db814be4b568f9245710e7abab01f.jpg","text":"TemporaryFile(/tmp/multipartBody583442107284601936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299503590,"filename":"image_18032025_13_03_54_6124.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345119696","file1":"1345119647","file0":"1345119615","file4":"1345119854","file5":"1345119922","file3":"1345119781"},"map_files_photo_id_array":[{"photo_id":"1345119922","filename":"file5"},{"photo_id":"1345119696","filename":"file2"},{"photo_id":"1345119854","filename":"file4"},{"photo_id":"1345119647","filename":"file1"},{"photo_id":"1345119615","filename":"file0"},{"photo_id":"1345119781","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345119854":["hashtag1","hashtag2"]},{"1345119647":["hashtag1","hashtag2"]},{"1345119781":["hashtag1","hashtag2"]},{"1345119922":["hashtag1","hashtag2"]},{"1345119696":["hashtag1","hashtag2"]},{"1345119615":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345119854, 1345119647, 1345119781, 1345119922, 1345119696, 1345119615)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.37767195701599 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:05:02.961889
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_05_6131.jpg', 2), ('/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_48_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_42_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_35_6118.jpg', 2), ('/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_29_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_23_6113.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_05_6131.jpg', '/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_48_6120.jpg', '/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_42_6123.jpg', '/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_35_6118.jpg', '/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_29_6119.jpg', '/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_23_6113.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_05_6131.jpg
/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_48_6120.jpg
/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_42_6123.jpg
/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_35_6118.jpg
/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_29_6119.jpg
/home/nano/Desktop/images/18032025/13/04/image_18032025_13_04_23_6113.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345120682","1345120809","1345120448","1345120607","1345120767","1345120365"],"photo_ids_order":["1345120365","1345120448","1345120607","1345120682","1345120767","1345120809"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18225d431417ea9524ca25f9453ab077.jpg","text":"TemporaryFile(/tmp/multipartBody5537797251273727679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299563413,"filename":"image_18032025_13_04_35_6118.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ff8a5d04c0cf945562d7d4aa84e4c35.jpg","text":"TemporaryFile(/tmp/multipartBody2571709693474565514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299563413,"filename":"image_18032025_13_04_23_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bb8fb702a71d945ab678bab3f32e5130.jpg","text":"TemporaryFile(/tmp/multipartBody2280868917065913482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299563413,"filename":"image_18032025_13_04_48_6120.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/243d3557cf9d1bfb13300262132fb813.jpg","text":"TemporaryFile(/tmp/multipartBody5324662098809196497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299563413,"filename":"image_18032025_13_04_42_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e2ed36dc20121f1a472e809f08bce6e.jpg","text":"TemporaryFile(/tmp/multipartBody4550432336321832691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299563413,"filename":"image_18032025_13_04_29_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14dfb4740932e53245a6cff216d07d9b.jpg","text":"TemporaryFile(/tmp/multipartBody5817443034120518925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299563413,"filename":"image_18032025_13_05_05_6131.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345120607","file1":"1345120448","file0":"1345120365","file4":"1345120767","file5":"1345120809","file3":"1345120682"},"map_files_photo_id_array":[{"photo_id":"1345120809","filename":"file5"},{"photo_id":"1345120607","filename":"file2"},{"photo_id":"1345120767","filename":"file4"},{"photo_id":"1345120448","filename":"file1"},{"photo_id":"1345120365","filename":"file0"},{"photo_id":"1345120682","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345120682":["hashtag1","hashtag2"]},{"1345120809":["hashtag1","hashtag2"]},{"1345120448":["hashtag1","hashtag2"]},{"1345120607":["hashtag1","hashtag2"]},{"1345120767":["hashtag1","hashtag2"]},{"1345120365":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345120682, 1345120809, 1345120448, 1345120607, 1345120767, 1345120365)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.42338800430298 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:06:03.150383
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_53_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_47_5103.jpg', 2), ('/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_42_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_36_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_30_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_23_6150.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_53_6151.jpg', '/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_47_5103.jpg', '/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_42_6121.jpg', '/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_36_6117.jpg', '/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_30_6123.jpg', '/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_23_6150.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_53_6151.jpg
/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_47_5103.jpg
/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_42_6121.jpg
/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_36_6117.jpg
/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_30_6123.jpg
/home/nano/Desktop/images/18032025/13/05/image_18032025_13_05_23_6150.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.357990026473999 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:06:32.557140
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_53_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_47_6110.jpg', 2), ('/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_41_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_35_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_29_5107.jpg', 2), ('/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_24_6119.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_53_6117.jpg', '/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_47_6110.jpg', '/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_41_6121.jpg', '/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_35_6123.jpg', '/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_29_5107.jpg', '/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_24_6119.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_53_6117.jpg
/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_47_6110.jpg
/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_41_6121.jpg
/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_35_6123.jpg
/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_29_5107.jpg
/home/nano/Desktop/images/18032025/13/06/image_18032025_13_06_24_6119.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345121822","1345121627","1345121572","1345121674","1345121736","1345121795"],"photo_ids_order":["1345121572","1345121627","1345121674","1345121736","1345121795","1345121822"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec01b7e62801850f992d0d288d0c2cef.jpg","text":"TemporaryFile(/tmp/multipartBody2178292576808761796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299652997,"filename":"image_18032025_13_06_24_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3b782f92e7bc2b7f638194c2b9516346.jpg","text":"TemporaryFile(/tmp/multipartBody3597740294725265401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299652997,"filename":"image_18032025_13_06_47_6110.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/448dcf492c9d4f54fea66e002b878a86.jpg","text":"TemporaryFile(/tmp/multipartBody569190096587230017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299652997,"filename":"image_18032025_13_06_53_6117.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bf54f9478d9659ebc7df854349020713.jpg","text":"TemporaryFile(/tmp/multipartBody8658271786296777894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299652997,"filename":"image_18032025_13_06_41_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f3144ad7331d9e1954e1ec548805f47f.jpg","text":"TemporaryFile(/tmp/multipartBody4514632909846182958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299652997,"filename":"image_18032025_13_06_35_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3f43e2c5f292b7451aa291c7cccb028.jpg","text":"TemporaryFile(/tmp/multipartBody625076628444555494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299652997,"filename":"image_18032025_13_06_29_5107.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345121674","file1":"1345121627","file0":"1345121572","file4":"1345121795","file5":"1345121822","file3":"1345121736"},"map_files_photo_id_array":[{"photo_id":"1345121822","filename":"file5"},{"photo_id":"1345121674","filename":"file2"},{"photo_id":"1345121795","filename":"file4"},{"photo_id":"1345121627","filename":"file1"},{"photo_id":"1345121572","filename":"file0"},{"photo_id":"1345121736","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345121822":["hashtag1","hashtag2"]},{"1345121627":["hashtag1","hashtag2"]},{"1345121572":["hashtag1","hashtag2"]},{"1345121674":["hashtag1","hashtag2"]},{"1345121736":["hashtag1","hashtag2"]},{"1345121795":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345121822, 1345121627, 1345121572, 1345121674, 1345121736, 1345121795)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.924059867858887 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:07:32.687372
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_54_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_47_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_41_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_35_6115.jpg', 2), ('/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_29_6154.jpg', 2), ('/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_23_5116.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_54_6113.jpg', '/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_47_6145.jpg', '/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_41_6121.jpg', '/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_35_6115.jpg', '/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_29_6154.jpg', '/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_23_5116.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_54_6113.jpg
/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_47_6145.jpg
/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_41_6121.jpg
/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_35_6115.jpg
/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_29_6154.jpg
/home/nano/Desktop/images/18032025/13/07/image_18032025_13_07_23_5116.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345121914","1345121905","1345122066","1345121979","1345121940","1345122017"],"photo_ids_order":["1345121905","1345121914","1345121940","1345121979","1345122017","1345122066"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e57d797c71baffd17521f1e4821e185a.jpg","text":"TemporaryFile(/tmp/multipartBody6462739703239876753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299713131,"filename":"image_18032025_13_07_47_6145.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/977f281d1fcb8371d85e4eb4d79bd783.jpg","text":"TemporaryFile(/tmp/multipartBody9105734602609831434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299713131,"filename":"image_18032025_13_07_54_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ea19922b50b75888008cda0db777391b.jpg","text":"TemporaryFile(/tmp/multipartBody7433405254630408074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299713131,"filename":"image_18032025_13_07_23_5116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0aae45b2a5d50966d75cf9c83e393614.jpg","text":"TemporaryFile(/tmp/multipartBody7503925409176551686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299713131,"filename":"image_18032025_13_07_35_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4fe1aa99643142363a91348af4d6bc07.jpg","text":"TemporaryFile(/tmp/multipartBody3127275111587691439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299713131,"filename":"image_18032025_13_07_41_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/153b5a0532e25ca97c5d0ff35b0da819.jpg","text":"TemporaryFile(/tmp/multipartBody7828600763590808223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299713131,"filename":"image_18032025_13_07_29_6154.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345121940","file1":"1345121914","file0":"1345121905","file4":"1345122017","file5":"1345122066","file3":"1345121979"},"map_files_photo_id_array":[{"photo_id":"1345122066","filename":"file5"},{"photo_id":"1345121940","filename":"file2"},{"photo_id":"1345122017","filename":"file4"},{"photo_id":"1345121914","filename":"file1"},{"photo_id":"1345121905","filename":"file0"},{"photo_id":"1345121979","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345121914":["hashtag1","hashtag2"]},{"1345121905":["hashtag1","hashtag2"]},{"1345122066":["hashtag1","hashtag2"]},{"1345121979":["hashtag1","hashtag2"]},{"1345121940":["hashtag1","hashtag2"]},{"1345122017":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345121914, 1345121905, 1345122066, 1345121979, 1345121940, 1345122017)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.6259605884552 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:08:31.775287
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_53_5114.jpg', 2), ('/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_48_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_42_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_36_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_29_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_23_6123.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_53_5114.jpg', '/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_48_6121.jpg', '/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_42_6123.jpg', '/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_36_6119.jpg', '/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_29_6150.jpg', '/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_23_6123.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_53_5114.jpg
/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_48_6121.jpg
/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_42_6123.jpg
/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_36_6119.jpg
/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_29_6150.jpg
/home/nano/Desktop/images/18032025/13/08/image_18032025_13_08_23_6123.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345122382","1345122376","1345122387","1345122366","1345122375","1345122371"],"photo_ids_order":["1345122366","1345122371","1345122375","1345122376","1345122382","1345122387"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fdef6617e9240683180b800be7286cbd.jpg","text":"TemporaryFile(/tmp/multipartBody3179121514628917746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299772240,"filename":"image_18032025_13_08_29_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d7c332cd934d713d7210ebe3ffad8a27.jpg","text":"TemporaryFile(/tmp/multipartBody4135977959230709632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299772240,"filename":"image_18032025_13_08_36_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6053d3b0850d421e0df5052fa6f75107.jpg","text":"TemporaryFile(/tmp/multipartBody8086922189500069172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299772240,"filename":"image_18032025_13_08_23_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d33a5d977c1d61cbd685fa62d103e67f.jpg","text":"TemporaryFile(/tmp/multipartBody8761958155454598336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299772240,"filename":"image_18032025_13_08_53_5114.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/50e247e05ea3363e6de1c6906960af69.jpg","text":"TemporaryFile(/tmp/multipartBody3704585524337852313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299772240,"filename":"image_18032025_13_08_42_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ee907a453c2ecf12ffe78f9d7a2897e.jpg","text":"TemporaryFile(/tmp/multipartBody6955157081645695349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299772240,"filename":"image_18032025_13_08_48_6121.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345122375","file1":"1345122371","file0":"1345122366","file4":"1345122382","file5":"1345122387","file3":"1345122376"},"map_files_photo_id_array":[{"photo_id":"1345122387","filename":"file5"},{"photo_id":"1345122375","filename":"file2"},{"photo_id":"1345122382","filename":"file4"},{"photo_id":"1345122371","filename":"file1"},{"photo_id":"1345122366","filename":"file0"},{"photo_id":"1345122376","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345122382":["hashtag1","hashtag2"]},{"1345122376":["hashtag1","hashtag2"]},{"1345122387":["hashtag1","hashtag2"]},{"1345122366":["hashtag1","hashtag2"]},{"1345122375":["hashtag1","hashtag2"]},{"1345122371":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345122382, 1345122376, 1345122387, 1345122366, 1345122375, 1345122371)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.172699451446533 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:09:31.922736
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_53_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_47_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_41_5115.jpg', 2), ('/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_36_6130.jpg', 2), ('/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_30_6115.jpg', 2), ('/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_24_6113.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_53_6045.jpg', '/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_47_6165.jpg', '/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_41_5115.jpg', '/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_36_6130.jpg', '/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_30_6115.jpg', '/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_24_6113.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_53_6045.jpg
/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_47_6165.jpg
/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_41_5115.jpg
/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_36_6130.jpg
/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_30_6115.jpg
/home/nano/Desktop/images/18032025/13/09/image_18032025_13_09_24_6113.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345122410","1345122433","1345122406","1345122465","1345122458","1345122419"],"photo_ids_order":["1345122406","1345122410","1345122419","1345122433","1345122458","1345122465"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bf4039319aadfbdbb1c6ab3d506189c5.jpg","text":"TemporaryFile(/tmp/multipartBody4138177984434605687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299832366,"filename":"image_18032025_13_09_47_6165.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a089be7255cf28d13fb5ca3b0a783627.jpg","text":"TemporaryFile(/tmp/multipartBody4727335133920712200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299832366,"filename":"image_18032025_13_09_36_6130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b880c624e949d091cdce6c62b941cc0a.jpg","text":"TemporaryFile(/tmp/multipartBody2696960371078658134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299832366,"filename":"image_18032025_13_09_53_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd8f1809d9d08563f5b3b0bdf9262ad1.jpg","text":"TemporaryFile(/tmp/multipartBody8093729744033557055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299832366,"filename":"image_18032025_13_09_24_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/584db9e00327e06e0e454fe1bca9e9d2.jpg","text":"TemporaryFile(/tmp/multipartBody8458141524292359193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299832366,"filename":"image_18032025_13_09_30_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3d710a53ad419f7a5f71cbd22e23b531.jpg","text":"TemporaryFile(/tmp/multipartBody7163734308020799885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299832366,"filename":"image_18032025_13_09_41_5115.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345122419","file1":"1345122410","file0":"1345122406","file4":"1345122458","file5":"1345122465","file3":"1345122433"},"map_files_photo_id_array":[{"photo_id":"1345122465","filename":"file5"},{"photo_id":"1345122419","filename":"file2"},{"photo_id":"1345122458","filename":"file4"},{"photo_id":"1345122410","filename":"file1"},{"photo_id":"1345122406","filename":"file0"},{"photo_id":"1345122433","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345122410":["hashtag1","hashtag2"]},{"1345122433":["hashtag1","hashtag2"]},{"1345122406":["hashtag1","hashtag2"]},{"1345122465":["hashtag1","hashtag2"]},{"1345122458":["hashtag1","hashtag2"]},{"1345122419":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345122410, 1345122433, 1345122406, 1345122465, 1345122458, 1345122419)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.78046441078186 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:10:32.051901
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_53_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_47_6132.jpg', 2), ('/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_41_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_35_6138.jpg', 2), ('/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_29_5117.jpg', 2), ('/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_24_6121.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_53_6128.jpg', '/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_47_6132.jpg', '/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_41_6127.jpg', '/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_35_6138.jpg', '/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_29_5117.jpg', '/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_24_6121.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_53_6128.jpg
/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_47_6132.jpg
/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_41_6127.jpg
/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_35_6138.jpg
/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_29_5117.jpg
/home/nano/Desktop/images/18032025/13/10/image_18032025_13_10_24_6121.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345122490","1345122544","1345122486","1345122516","1345122494","1345122482"],"photo_ids_order":["1345122482","1345122486","1345122490","1345122494","1345122516","1345122544"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f5371e67e799e257ba559fdfffc26474.jpg","text":"TemporaryFile(/tmp/multipartBody5552831779903856829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299892481,"filename":"image_18032025_13_10_41_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd82c88295318146a78827f17f9b12b1.jpg","text":"TemporaryFile(/tmp/multipartBody1044389506918137940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299892481,"filename":"image_18032025_13_10_24_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f4c244c8a440cd3bd0f9987683e375bf.jpg","text":"TemporaryFile(/tmp/multipartBody1789793894299129931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299892481,"filename":"image_18032025_13_10_47_6132.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ae4ae97db488021ef042a040d883601.jpg","text":"TemporaryFile(/tmp/multipartBody826119556144382465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299892481,"filename":"image_18032025_13_10_29_5117.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/642f27a7c11dddf336145ee78fe6d90f.jpg","text":"TemporaryFile(/tmp/multipartBody7279887461371568974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299892481,"filename":"image_18032025_13_10_35_6138.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/94b838130e4c5ada91a1bd317f46dab4.jpg","text":"TemporaryFile(/tmp/multipartBody5667471071385064427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299892481,"filename":"image_18032025_13_10_53_6128.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345122490","file1":"1345122486","file0":"1345122482","file4":"1345122516","file5":"1345122544","file3":"1345122494"},"map_files_photo_id_array":[{"photo_id":"1345122544","filename":"file5"},{"photo_id":"1345122490","filename":"file2"},{"photo_id":"1345122516","filename":"file4"},{"photo_id":"1345122486","filename":"file1"},{"photo_id":"1345122482","filename":"file0"},{"photo_id":"1345122494","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345122490":["hashtag1","hashtag2"]},{"1345122544":["hashtag1","hashtag2"]},{"1345122486":["hashtag1","hashtag2"]},{"1345122516":["hashtag1","hashtag2"]},{"1345122494":["hashtag1","hashtag2"]},{"1345122482":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345122490, 1345122544, 1345122486, 1345122516, 1345122494, 1345122482)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.695051431655884 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:11:32.127256
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_54_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_48_6122.jpg', 2), ('/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_42_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_35_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_29_6132.jpg', 2), ('/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_23_6138.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_54_6121.jpg', '/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_48_6122.jpg', '/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_42_6128.jpg', '/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_35_6128.jpg', '/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_29_6132.jpg', '/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_23_6138.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_54_6121.jpg
/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_48_6122.jpg
/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_42_6128.jpg
/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_35_6128.jpg
/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_29_6132.jpg
/home/nano/Desktop/images/18032025/13/11/image_18032025_13_11_23_6138.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345122728","1345122847","1345122733","1345122814","1345122724","1345122788"],"photo_ids_order":["1345122724","1345122728","1345122733","1345122788","1345122814","1345122847"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f377ce6ca4c8edd921d3ab1123944d69.jpg","text":"TemporaryFile(/tmp/multipartBody5524854989627154492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299952570,"filename":"image_18032025_13_11_48_6122.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9d70bd251eadd13617c779c3ccb73d1a.jpg","text":"TemporaryFile(/tmp/multipartBody7022835827327073876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299952570,"filename":"image_18032025_13_11_23_6138.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0672c4a7700c898d0055497d6e16ec37.jpg","text":"TemporaryFile(/tmp/multipartBody8086332587230643245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299952570,"filename":"image_18032025_13_11_42_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9625aa0dbc4f58b72a07e60c314aa6f.jpg","text":"TemporaryFile(/tmp/multipartBody7609244017914741740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299952570,"filename":"image_18032025_13_11_29_6132.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/709c9fd8f6bba4a912262e39dee62fb5.jpg","text":"TemporaryFile(/tmp/multipartBody1769601226473493496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299952570,"filename":"image_18032025_13_11_54_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3bcb10edb25133fd38f94bc31bf8d962.jpg","text":"TemporaryFile(/tmp/multipartBody2930655794305254994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742299952570,"filename":"image_18032025_13_11_35_6128.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345122733","file1":"1345122728","file0":"1345122724","file4":"1345122814","file5":"1345122847","file3":"1345122788"},"map_files_photo_id_array":[{"photo_id":"1345122847","filename":"file5"},{"photo_id":"1345122733","filename":"file2"},{"photo_id":"1345122814","filename":"file4"},{"photo_id":"1345122728","filename":"file1"},{"photo_id":"1345122724","filename":"file0"},{"photo_id":"1345122788","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345122728":["hashtag1","hashtag2"]},{"1345122847":["hashtag1","hashtag2"]},{"1345122733":["hashtag1","hashtag2"]},{"1345122814":["hashtag1","hashtag2"]},{"1345122724":["hashtag1","hashtag2"]},{"1345122788":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345122728, 1345122847, 1345122733, 1345122814, 1345122724, 1345122788)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.95611596107483 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:12:32.234142
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_47_6118.jpg', 2), ('/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_41_5111.jpg', 2), ('/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_36_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_30_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_23_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_17_6122.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_47_6118.jpg', '/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_41_5111.jpg', '/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_36_6121.jpg', '/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_30_6152.jpg', '/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_23_6117.jpg', '/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_17_6122.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_47_6118.jpg
/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_41_5111.jpg
/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_36_6121.jpg
/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_30_6152.jpg
/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_23_6117.jpg
/home/nano/Desktop/images/18032025/13/12/image_18032025_13_12_17_6122.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345122964","1345122952","1345122948","1345122959","1345122974","1345122968"],"photo_ids_order":["1345122948","1345122952","1345122959","1345122964","1345122968","1345122974"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2e70d0d35807ffd735e7194e493677a.jpg","text":"TemporaryFile(/tmp/multipartBody1378623521418935101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300012673,"filename":"image_18032025_13_12_30_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dadb9565ca8ad29601ccc8ef25cbfd4f.jpg","text":"TemporaryFile(/tmp/multipartBody6141380051724796895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300012673,"filename":"image_18032025_13_12_41_5111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd066f5aea4d2e569adc1200cb81b8a8.jpg","text":"TemporaryFile(/tmp/multipartBody8550823475572708731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300012673,"filename":"image_18032025_13_12_47_6118.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3aa107a30a707df53a0a41c84d8a05fb.jpg","text":"TemporaryFile(/tmp/multipartBody715684413776653560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300012673,"filename":"image_18032025_13_12_36_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bc8b4b94bbdb05664766c74ed4ba9cfa.jpg","text":"TemporaryFile(/tmp/multipartBody4690527577229521786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300012673,"filename":"image_18032025_13_12_17_6122.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3b9f61a158c530889032e8fe4b5bcc1d.jpg","text":"TemporaryFile(/tmp/multipartBody54654281044582464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300012673,"filename":"image_18032025_13_12_23_6117.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345122959","file1":"1345122952","file0":"1345122948","file4":"1345122968","file5":"1345122974","file3":"1345122964"},"map_files_photo_id_array":[{"photo_id":"1345122974","filename":"file5"},{"photo_id":"1345122959","filename":"file2"},{"photo_id":"1345122968","filename":"file4"},{"photo_id":"1345122952","filename":"file1"},{"photo_id":"1345122948","filename":"file0"},{"photo_id":"1345122964","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345122964":["hashtag1","hashtag2"]},{"1345122952":["hashtag1","hashtag2"]},{"1345122948":["hashtag1","hashtag2"]},{"1345122959":["hashtag1","hashtag2"]},{"1345122974":["hashtag1","hashtag2"]},{"1345122968":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345122964, 1345122952, 1345122948, 1345122959, 1345122974, 1345122968)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.736403465270996 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:13:32.356531
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_53_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_47_6020.jpg', 2), ('/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_41_6064.jpg', 2), ('/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_35_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_29_5119.jpg', 2), ('/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_24_6157.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_53_6113.jpg', '/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_47_6020.jpg', '/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_41_6064.jpg', '/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_35_6119.jpg', '/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_29_5119.jpg', '/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_24_6157.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_53_6113.jpg
/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_47_6020.jpg
/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_41_6064.jpg
/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_35_6119.jpg
/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_29_5119.jpg
/home/nano/Desktop/images/18032025/13/13/image_18032025_13_13_24_6157.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345123321","1345123347","1345123295","1345123220","1345123267","1345123180"],"photo_ids_order":["1345123180","1345123220","1345123267","1345123295","1345123321","1345123347"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0a15d731abb6ec7016d79cc2c7135b53.jpg","text":"TemporaryFile(/tmp/multipartBody395403843041220582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300072795,"filename":"image_18032025_13_13_29_5119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d6d9f4c62db409f27f62528875a286b6.jpg","text":"TemporaryFile(/tmp/multipartBody2879204961311004387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300072795,"filename":"image_18032025_13_13_24_6157.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f1f777997770b493808ed9109f5724a2.jpg","text":"TemporaryFile(/tmp/multipartBody4104081748483868444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300072795,"filename":"image_18032025_13_13_35_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e358e54c7c1cdef9f43c0a4e7d67048e.jpg","text":"TemporaryFile(/tmp/multipartBody2241353477710115046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300072795,"filename":"image_18032025_13_13_47_6020.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bfed7e898de8837843c992cb3bea27bd.jpg","text":"TemporaryFile(/tmp/multipartBody126925547331111698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300072795,"filename":"image_18032025_13_13_41_6064.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c834f92543c630be7080bb938873018a.jpg","text":"TemporaryFile(/tmp/multipartBody1140776082740880413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300072795,"filename":"image_18032025_13_13_53_6113.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345123267","file1":"1345123220","file0":"1345123180","file4":"1345123321","file5":"1345123347","file3":"1345123295"},"map_files_photo_id_array":[{"photo_id":"1345123347","filename":"file5"},{"photo_id":"1345123267","filename":"file2"},{"photo_id":"1345123321","filename":"file4"},{"photo_id":"1345123220","filename":"file1"},{"photo_id":"1345123180","filename":"file0"},{"photo_id":"1345123295","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345123321":["hashtag1","hashtag2"]},{"1345123347":["hashtag1","hashtag2"]},{"1345123295":["hashtag1","hashtag2"]},{"1345123220":["hashtag1","hashtag2"]},{"1345123267":["hashtag1","hashtag2"]},{"1345123180":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345123321, 1345123347, 1345123295, 1345123220, 1345123267, 1345123180)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.93770742416382 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:14:32.470929
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_54_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_47_6102.jpg', 2), ('/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_41_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_35_6114.jpg', 2), ('/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_29_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_23_5143.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_54_6127.jpg', '/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_47_6102.jpg', '/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_41_6125.jpg', '/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_35_6114.jpg', '/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_29_6151.jpg', '/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_23_5143.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_54_6127.jpg
/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_47_6102.jpg
/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_41_6125.jpg
/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_35_6114.jpg
/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_29_6151.jpg
/home/nano/Desktop/images/18032025/13/14/image_18032025_13_14_23_5143.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345123612","1345123673","1345123556","1345123643","1345123703","1345123585"],"photo_ids_order":["1345123556","1345123585","1345123612","1345123643","1345123673","1345123703"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/73e7f9e0d91ada776e20a60b84f80568.jpg","text":"TemporaryFile(/tmp/multipartBody2935293872279095988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300132892,"filename":"image_18032025_13_14_41_6125.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e81e2412ad9d7129a880b5add400e00e.jpg","text":"TemporaryFile(/tmp/multipartBody5611999601806511746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300132892,"filename":"image_18032025_13_14_29_6151.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0941f67db696b0965ce6e8ff07af4f10.jpg","text":"TemporaryFile(/tmp/multipartBody644311187129359780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300132892,"filename":"image_18032025_13_14_54_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3e96265a4a3d3745cfc871d2e369035c.jpg","text":"TemporaryFile(/tmp/multipartBody2364571407124258093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300132892,"filename":"image_18032025_13_14_35_6114.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b76f9e29aa8083c7dfd0ba5812dfe58f.jpg","text":"TemporaryFile(/tmp/multipartBody2480155017784038583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300132892,"filename":"image_18032025_13_14_23_5143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3eb0adaf1f79c3e5ce4f62d08ec2c745.jpg","text":"TemporaryFile(/tmp/multipartBody4112867758740631001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300132892,"filename":"image_18032025_13_14_47_6102.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345123612","file1":"1345123585","file0":"1345123556","file4":"1345123673","file5":"1345123703","file3":"1345123643"},"map_files_photo_id_array":[{"photo_id":"1345123703","filename":"file5"},{"photo_id":"1345123612","filename":"file2"},{"photo_id":"1345123673","filename":"file4"},{"photo_id":"1345123585","filename":"file1"},{"photo_id":"1345123556","filename":"file0"},{"photo_id":"1345123643","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345123612":["hashtag1","hashtag2"]},{"1345123673":["hashtag1","hashtag2"]},{"1345123556":["hashtag1","hashtag2"]},{"1345123643":["hashtag1","hashtag2"]},{"1345123703":["hashtag1","hashtag2"]},{"1345123585":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345123612, 1345123673, 1345123556, 1345123643, 1345123703, 1345123585)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.57046127319336 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:15:32.571972
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_54_6118.jpg', 2), ('/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_35_6118.jpg', 2), ('/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_29_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_23_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_17_6122.jpg', 2), ('/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_11_5140.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_54_6118.jpg', '/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_35_6118.jpg', '/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_29_6116.jpg', '/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_23_6120.jpg', '/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_17_6122.jpg', '/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_11_5140.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_54_6118.jpg
/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_35_6118.jpg
/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_29_6116.jpg
/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_23_6120.jpg
/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_17_6122.jpg
/home/nano/Desktop/images/18032025/13/15/image_18032025_13_15_11_5140.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345123782","1345123785","1345123792","1345123789","1345123774","1345123777"],"photo_ids_order":["1345123774","1345123777","1345123782","1345123785","1345123789","1345123792"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/883303b04380ac61cb15aa468c6ac62f.jpg","text":"TemporaryFile(/tmp/multipartBody6312964651286500300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300193019,"filename":"image_18032025_13_15_29_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14483c27b290900966e1b402f62d3812.jpg","text":"TemporaryFile(/tmp/multipartBody3438480982972841393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300193019,"filename":"image_18032025_13_15_23_6120.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0a1d7d70ca2340404b78ea353d077083.jpg","text":"TemporaryFile(/tmp/multipartBody4881531205974935592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300193019,"filename":"image_18032025_13_15_11_5140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a1d84ddf23c25ce3b492969c742d4e7.jpg","text":"TemporaryFile(/tmp/multipartBody3353465062003272666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300193019,"filename":"image_18032025_13_15_17_6122.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/53ed99d638d02a0317ffedafe7fe9831.jpg","text":"TemporaryFile(/tmp/multipartBody563156370151544534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300193019,"filename":"image_18032025_13_15_54_6118.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e285fe2fcd43502fdb4b76076fd9991.jpg","text":"TemporaryFile(/tmp/multipartBody8626453293081663988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300193019,"filename":"image_18032025_13_15_35_6118.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345123782","file1":"1345123777","file0":"1345123774","file4":"1345123789","file5":"1345123792","file3":"1345123785"},"map_files_photo_id_array":[{"photo_id":"1345123792","filename":"file5"},{"photo_id":"1345123782","filename":"file2"},{"photo_id":"1345123789","filename":"file4"},{"photo_id":"1345123777","filename":"file1"},{"photo_id":"1345123774","filename":"file0"},{"photo_id":"1345123785","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345123782":["hashtag1","hashtag2"]},{"1345123785":["hashtag1","hashtag2"]},{"1345123792":["hashtag1","hashtag2"]},{"1345123789":["hashtag1","hashtag2"]},{"1345123774":["hashtag1","hashtag2"]},{"1345123777":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345123782, 1345123785, 1345123792, 1345123789, 1345123774, 1345123777)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.00045871734619 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:16:32.675911
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_47_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_41_5140.jpg', 2), ('/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_36_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_30_6103.jpg', 2), ('/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_23_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_17_6119.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_47_6148.jpg', '/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_41_5140.jpg', '/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_36_6121.jpg', '/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_30_6103.jpg', '/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_23_6140.jpg', '/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_17_6119.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_47_6148.jpg
/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_41_5140.jpg
/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_36_6121.jpg
/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_30_6103.jpg
/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_23_6140.jpg
/home/nano/Desktop/images/18032025/13/16/image_18032025_13_16_17_6119.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345124064","1345123997","1345124147","1345124033","1345124092","1345124122"],"photo_ids_order":["1345123997","1345124033","1345124064","1345124092","1345124122","1345124147"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/61f029751c332143f87bc170664c9bb0.jpg","text":"TemporaryFile(/tmp/multipartBody3710728409124630778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300253106,"filename":"image_18032025_13_16_36_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/97e72c417ea807e5e6f2207466f5f53c.jpg","text":"TemporaryFile(/tmp/multipartBody4851254541799014610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300253106,"filename":"image_18032025_13_16_47_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5d994f4d56d13b65ecd4d410fe336bba.jpg","text":"TemporaryFile(/tmp/multipartBody4367333037658408600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300253106,"filename":"image_18032025_13_16_17_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e26c40b8d5cc3d470abfa9267a056a2.jpg","text":"TemporaryFile(/tmp/multipartBody4330808975078520802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300253106,"filename":"image_18032025_13_16_41_5140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8219046702b616aa382b45c3018bc0b8.jpg","text":"TemporaryFile(/tmp/multipartBody5630701505023284503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300253106,"filename":"image_18032025_13_16_30_6103.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6707764b13de6702999d4aa3fcfa9414.jpg","text":"TemporaryFile(/tmp/multipartBody7668670211443695355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300253106,"filename":"image_18032025_13_16_23_6140.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345124064","file1":"1345124033","file0":"1345123997","file4":"1345124122","file5":"1345124147","file3":"1345124092"},"map_files_photo_id_array":[{"photo_id":"1345124147","filename":"file5"},{"photo_id":"1345124064","filename":"file2"},{"photo_id":"1345124122","filename":"file4"},{"photo_id":"1345124033","filename":"file1"},{"photo_id":"1345123997","filename":"file0"},{"photo_id":"1345124092","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345124064":["hashtag1","hashtag2"]},{"1345123997":["hashtag1","hashtag2"]},{"1345124147":["hashtag1","hashtag2"]},{"1345124033":["hashtag1","hashtag2"]},{"1345124092":["hashtag1","hashtag2"]},{"1345124122":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345124064, 1345123997, 1345124147, 1345124033, 1345124092, 1345124122)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.112117290496826 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:17:31.808927
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_54_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_48_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_41_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_35_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_29_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_23_6157.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_54_6128.jpg', '/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_48_6125.jpg', '/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_41_6125.jpg', '/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_35_6145.jpg', '/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_29_6151.jpg', '/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_23_6157.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_54_6128.jpg
/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_48_6125.jpg
/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_41_6125.jpg
/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_35_6145.jpg
/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_29_6151.jpg
/home/nano/Desktop/images/18032025/13/17/image_18032025_13_17_23_6157.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345124286","1345124289","1345124279","1345124263","1345124272","1345124269"],"photo_ids_order":["1345124263","1345124269","1345124272","1345124279","1345124286","1345124289"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/245112cf5943d89ce41a35552343afd5.jpg","text":"TemporaryFile(/tmp/multipartBody3665203260443961661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300312270,"filename":"image_18032025_13_17_29_6151.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e5871bc420cd68e8559c5929e9bfc578.jpg","text":"TemporaryFile(/tmp/multipartBody6796145283176220429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300312270,"filename":"image_18032025_13_17_23_6157.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cda41ec04f15acf3276e72591f7e6386.jpg","text":"TemporaryFile(/tmp/multipartBody5824238884064774566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300312270,"filename":"image_18032025_13_17_35_6145.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e2c4d1d3adef929705db4bdb42624ff0.jpg","text":"TemporaryFile(/tmp/multipartBody6741215532886032604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300312270,"filename":"image_18032025_13_17_54_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95cd85044061bab9f6b6c0a4afe4e9d1.jpg","text":"TemporaryFile(/tmp/multipartBody3160305290614997247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300312270,"filename":"image_18032025_13_17_41_6125.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/500aee0ea90657855fac64ac704954c1.jpg","text":"TemporaryFile(/tmp/multipartBody1018310740233162868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300312270,"filename":"image_18032025_13_17_48_6125.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345124272","file1":"1345124269","file0":"1345124263","file4":"1345124286","file5":"1345124289","file3":"1345124279"},"map_files_photo_id_array":[{"photo_id":"1345124289","filename":"file5"},{"photo_id":"1345124272","filename":"file2"},{"photo_id":"1345124286","filename":"file4"},{"photo_id":"1345124269","filename":"file1"},{"photo_id":"1345124263","filename":"file0"},{"photo_id":"1345124279","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345124286":["hashtag1","hashtag2"]},{"1345124289":["hashtag1","hashtag2"]},{"1345124279":["hashtag1","hashtag2"]},{"1345124263":["hashtag1","hashtag2"]},{"1345124272":["hashtag1","hashtag2"]},{"1345124269":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345124286, 1345124289, 1345124279, 1345124263, 1345124272, 1345124269)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.27566170692444 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:18:31.950683
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_53_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_47_5113.jpg', 2), ('/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_42_6129.jpg', 2), ('/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_36_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_30_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_11_6155.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_53_6152.jpg', '/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_47_5113.jpg', '/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_42_6129.jpg', '/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_36_6128.jpg', '/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_30_6116.jpg', '/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_11_6155.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_53_6152.jpg
/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_47_5113.jpg
/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_42_6129.jpg
/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_36_6128.jpg
/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_30_6116.jpg
/home/nano/Desktop/images/18032025/13/18/image_18032025_13_18_11_6155.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345124302","1345124404","1345124307","1345124378","1345124321","1345124347"],"photo_ids_order":["1345124302","1345124307","1345124321","1345124347","1345124378","1345124404"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/878cf33c015a766c25cdb545342bb3a5.jpg","text":"TemporaryFile(/tmp/multipartBody7930742359799800583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300372399,"filename":"image_18032025_13_18_53_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f652617d805af42c239f3732c838dbfa.jpg","text":"TemporaryFile(/tmp/multipartBody1496462801270225182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300372399,"filename":"image_18032025_13_18_11_6155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be010d864c66d244174afae8b8843f1c.jpg","text":"TemporaryFile(/tmp/multipartBody3533671975105546939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300372399,"filename":"image_18032025_13_18_47_5113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3bf01803239d0cda778636ca2544f921.jpg","text":"TemporaryFile(/tmp/multipartBody5217137091553230721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300372399,"filename":"image_18032025_13_18_30_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b1c3b71da4324656e29cec26e7105b5a.jpg","text":"TemporaryFile(/tmp/multipartBody388312159333582783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300372399,"filename":"image_18032025_13_18_42_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/11cf92515d4974d81a1fe2534c902eda.jpg","text":"TemporaryFile(/tmp/multipartBody6291209404340877249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300372399,"filename":"image_18032025_13_18_36_6128.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345124321","file1":"1345124307","file0":"1345124302","file4":"1345124378","file5":"1345124404","file3":"1345124347"},"map_files_photo_id_array":[{"photo_id":"1345124404","filename":"file5"},{"photo_id":"1345124321","filename":"file2"},{"photo_id":"1345124378","filename":"file4"},{"photo_id":"1345124307","filename":"file1"},{"photo_id":"1345124302","filename":"file0"},{"photo_id":"1345124347","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345124302":["hashtag1","hashtag2"]},{"1345124404":["hashtag1","hashtag2"]},{"1345124307":["hashtag1","hashtag2"]},{"1345124378":["hashtag1","hashtag2"]},{"1345124321":["hashtag1","hashtag2"]},{"1345124347":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345124302, 1345124404, 1345124307, 1345124378, 1345124321, 1345124347)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.52958083152771 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:19:32.029724
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_53_6122.jpg', 2), ('/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_47_6126.jpg', 2), ('/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_41_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_35_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_24_6154.jpg', 2), ('/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_05_6166.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_53_6122.jpg', '/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_47_6126.jpg', '/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_41_6150.jpg', '/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_35_6119.jpg', '/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_24_6154.jpg', '/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_05_6166.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_53_6122.jpg
/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_47_6126.jpg
/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_41_6150.jpg
/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_35_6119.jpg
/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_24_6154.jpg
/home/nano/Desktop/images/18032025/13/19/image_18032025_13_19_05_6166.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345124718","1345124675","1345124750","1345124810","1345124705","1345124828"],"photo_ids_order":["1345124675","1345124705","1345124718","1345124750","1345124810","1345124828"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c7ae82c1b828c4d7a6c5f549bf302cdd.jpg","text":"TemporaryFile(/tmp/multipartBody8654022942029573919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300432467,"filename":"image_18032025_13_19_41_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bacf690ef82582baf36ed86fe3cbedec.jpg","text":"TemporaryFile(/tmp/multipartBody984685011027652609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300432467,"filename":"image_18032025_13_19_53_6122.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d821479fedc467e347a1b07efc6901f4.jpg","text":"TemporaryFile(/tmp/multipartBody2248099255477374938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300432467,"filename":"image_18032025_13_19_35_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6d5ae83e65fa50c471dcafbe3139eae.jpg","text":"TemporaryFile(/tmp/multipartBody3117890759502887475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300432467,"filename":"image_18032025_13_19_24_6154.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ff09f4803e47323bc07aa7f1c893c491.jpg","text":"TemporaryFile(/tmp/multipartBody6727508145120038836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300432467,"filename":"image_18032025_13_19_47_6126.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/30e4537994d836efa0e7ea191b8d1819.jpg","text":"TemporaryFile(/tmp/multipartBody149573510952410668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300432467,"filename":"image_18032025_13_19_05_6166.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345124718","file1":"1345124705","file0":"1345124675","file4":"1345124810","file5":"1345124828","file3":"1345124750"},"map_files_photo_id_array":[{"photo_id":"1345124828","filename":"file5"},{"photo_id":"1345124718","filename":"file2"},{"photo_id":"1345124810","filename":"file4"},{"photo_id":"1345124705","filename":"file1"},{"photo_id":"1345124675","filename":"file0"},{"photo_id":"1345124750","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345124718":["hashtag1","hashtag2"]},{"1345124675":["hashtag1","hashtag2"]},{"1345124750":["hashtag1","hashtag2"]},{"1345124810":["hashtag1","hashtag2"]},{"1345124705":["hashtag1","hashtag2"]},{"1345124828":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345124718, 1345124675, 1345124750, 1345124810, 1345124705, 1345124828)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.09660005569458 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:20:32.133971
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_54_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_47_6104.jpg', 2), ('/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_41_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_35_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_17_6114.jpg', 2), ('/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_11_5130.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_54_6142.jpg', '/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_47_6104.jpg', '/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_41_6071.jpg', '/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_35_6086.jpg', '/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_17_6114.jpg', '/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_11_5130.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_54_6142.jpg
/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_47_6104.jpg
/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_41_6071.jpg
/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_35_6086.jpg
/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_17_6114.jpg
/home/nano/Desktop/images/18032025/13/20/image_18032025_13_20_11_5130.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345124877","1345124871","1345124847","1345124841","1345124888","1345124852"],"photo_ids_order":["1345124841","1345124847","1345124852","1345124871","1345124877","1345124888"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ddd0cf10eaa71663657c91de6c47d4d0.jpg","text":"TemporaryFile(/tmp/multipartBody2379366915578183791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300492568,"filename":"image_18032025_13_20_17_6114.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ffad4ff2dbb52f96319df7de4c36df33.jpg","text":"TemporaryFile(/tmp/multipartBody6725469513834374494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300492568,"filename":"image_18032025_13_20_35_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a3dbb88e3ed09e6fff480370a5554a0b.jpg","text":"TemporaryFile(/tmp/multipartBody2850955487104180739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300492568,"filename":"image_18032025_13_20_47_6104.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c0d3496689d7d27b1787ac0a9fa9e4cb.jpg","text":"TemporaryFile(/tmp/multipartBody6038483635158874499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300492568,"filename":"image_18032025_13_20_54_6142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/07d5cb97e502ab66568a473da223d302.jpg","text":"TemporaryFile(/tmp/multipartBody4555975136248752683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300492568,"filename":"image_18032025_13_20_11_5130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/75e6bfd1861153f7e44191a5047317c2.jpg","text":"TemporaryFile(/tmp/multipartBody7666427856445602330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300492568,"filename":"image_18032025_13_20_41_6071.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345124852","file1":"1345124847","file0":"1345124841","file4":"1345124877","file5":"1345124888","file3":"1345124871"},"map_files_photo_id_array":[{"photo_id":"1345124888","filename":"file5"},{"photo_id":"1345124852","filename":"file2"},{"photo_id":"1345124877","filename":"file4"},{"photo_id":"1345124847","filename":"file1"},{"photo_id":"1345124841","filename":"file0"},{"photo_id":"1345124871","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345124877":["hashtag1","hashtag2"]},{"1345124871":["hashtag1","hashtag2"]},{"1345124847":["hashtag1","hashtag2"]},{"1345124841":["hashtag1","hashtag2"]},{"1345124888":["hashtag1","hashtag2"]},{"1345124852":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345124877, 1345124871, 1345124847, 1345124841, 1345124888, 1345124852)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.96734118461609 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:21:32.230598
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_53_5102.jpg', 2), ('/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_48_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_42_6115.jpg', 2), ('/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_36_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_29_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_23_6174.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_53_5102.jpg', '/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_48_6105.jpg', '/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_42_6115.jpg', '/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_36_6148.jpg', '/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_29_6113.jpg', '/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_23_6174.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_53_5102.jpg
/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_48_6105.jpg
/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_42_6115.jpg
/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_36_6148.jpg
/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_29_6113.jpg
/home/nano/Desktop/images/18032025/13/21/image_18032025_13_21_23_6174.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345125027","1345125006","1345125047","1345125038","1345125043","1345125034"],"photo_ids_order":["1345125006","1345125027","1345125034","1345125038","1345125043","1345125047"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6c5c269355b3a419fecabd4a0dfc46b6.jpg","text":"TemporaryFile(/tmp/multipartBody9075526571547832422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300552692,"filename":"image_18032025_13_21_48_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c6a8f129e538090d9bc8434a9b7ddeb.jpg","text":"TemporaryFile(/tmp/multipartBody217673444796076709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300552692,"filename":"image_18032025_13_21_53_5102.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b1368dab6802b4aed80914020e9fc509.jpg","text":"TemporaryFile(/tmp/multipartBody2069725449815016471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300552692,"filename":"image_18032025_13_21_23_6174.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01aef7b2821c576086f82bcd925d8e33.jpg","text":"TemporaryFile(/tmp/multipartBody7388858499596165874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300552692,"filename":"image_18032025_13_21_36_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/085842632e09f110dc6f7219f6189d54.jpg","text":"TemporaryFile(/tmp/multipartBody4873000539103499546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300552692,"filename":"image_18032025_13_21_29_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5acc7088aee21610355e31613bbbc1cb.jpg","text":"TemporaryFile(/tmp/multipartBody1932656209601107281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300552692,"filename":"image_18032025_13_21_42_6115.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345125034","file1":"1345125027","file0":"1345125006","file4":"1345125043","file5":"1345125047","file3":"1345125038"},"map_files_photo_id_array":[{"photo_id":"1345125047","filename":"file5"},{"photo_id":"1345125034","filename":"file2"},{"photo_id":"1345125043","filename":"file4"},{"photo_id":"1345125027","filename":"file1"},{"photo_id":"1345125006","filename":"file0"},{"photo_id":"1345125038","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345125027":["hashtag1","hashtag2"]},{"1345125006":["hashtag1","hashtag2"]},{"1345125047":["hashtag1","hashtag2"]},{"1345125038":["hashtag1","hashtag2"]},{"1345125043":["hashtag1","hashtag2"]},{"1345125034":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345125027, 1345125006, 1345125047, 1345125038, 1345125043, 1345125034)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.37035655975342 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:22:32.336227
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_53_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_47_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_35_5117.jpg', 2), ('/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_30_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_24_6122.jpg', 2), ('/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_17_6119.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_53_6116.jpg', '/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_47_6148.jpg', '/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_35_5117.jpg', '/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_30_6116.jpg', '/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_24_6122.jpg', '/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_17_6119.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_53_6116.jpg
/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_47_6148.jpg
/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_35_5117.jpg
/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_30_6116.jpg
/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_24_6122.jpg
/home/nano/Desktop/images/18032025/13/22/image_18032025_13_22_17_6119.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345125077","1345125062","1345125088","1345125067","1345125072","1345125081"],"photo_ids_order":["1345125062","1345125067","1345125072","1345125077","1345125081","1345125088"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62a7441df1fb1f481fd4edb23234f742.jpg","text":"TemporaryFile(/tmp/multipartBody3194533291397075221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300612794,"filename":"image_18032025_13_22_30_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52a3a50bc4014bf5a8753bd89a099a53.jpg","text":"TemporaryFile(/tmp/multipartBody2168250205975340254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300612794,"filename":"image_18032025_13_22_53_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/94465a1574ea58b263284cc87c38f70d.jpg","text":"TemporaryFile(/tmp/multipartBody820982781386315112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300612794,"filename":"image_18032025_13_22_17_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/29c6723e766b3939ec9644cf78e31cd8.jpg","text":"TemporaryFile(/tmp/multipartBody7086134679698385891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300612794,"filename":"image_18032025_13_22_47_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ea12a86abe7197f1345e1d3744134f8.jpg","text":"TemporaryFile(/tmp/multipartBody8867697358503339894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300612794,"filename":"image_18032025_13_22_35_5117.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bfaaaa427c7cf1334e024981f12fedd4.jpg","text":"TemporaryFile(/tmp/multipartBody300889736405645422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300612794,"filename":"image_18032025_13_22_24_6122.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345125072","file1":"1345125067","file0":"1345125062","file4":"1345125081","file5":"1345125088","file3":"1345125077"},"map_files_photo_id_array":[{"photo_id":"1345125088","filename":"file5"},{"photo_id":"1345125072","filename":"file2"},{"photo_id":"1345125081","filename":"file4"},{"photo_id":"1345125067","filename":"file1"},{"photo_id":"1345125062","filename":"file0"},{"photo_id":"1345125077","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345125077":["hashtag1","hashtag2"]},{"1345125062":["hashtag1","hashtag2"]},{"1345125088":["hashtag1","hashtag2"]},{"1345125067":["hashtag1","hashtag2"]},{"1345125072":["hashtag1","hashtag2"]},{"1345125081":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345125077, 1345125062, 1345125088, 1345125067, 1345125072, 1345125081)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.98241209983826 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:23:32.437756
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_54_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_47_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_41_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_35_6118.jpg', 2), ('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_29_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_23_6126.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_54_6117.jpg', '/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_47_6120.jpg', '/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_41_6121.jpg', '/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_35_6118.jpg', '/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_29_6119.jpg', '/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_23_6126.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_54_6117.jpg
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_47_6120.jpg
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_41_6121.jpg
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_35_6118.jpg
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_29_6119.jpg
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_23_6126.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.34878063201904297 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:24:03.388430
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_54_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_47_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_41_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_35_6118.jpg', 2), ('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_29_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_23_6126.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_54_6117.jpg', '/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_47_6120.jpg', '/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_41_6121.jpg', '/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_35_6118.jpg', '/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_29_6119.jpg', '/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_23_6126.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_54_6117.jpg
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_47_6120.jpg
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_41_6121.jpg
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_35_6118.jpg
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_29_6119.jpg
/home/nano/Desktop/images/18032025/13/23/image_18032025_13_23_23_6126.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345125129","1345125140","1345125143","1345125137","1345125148","1345125133"],"photo_ids_order":["1345125129","1345125133","1345125137","1345125140","1345125143","1345125148"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f347575365c7e227b3290ba32556742.jpg","text":"TemporaryFile(/tmp/multipartBody2927710456565911524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300704098,"filename":"image_18032025_13_23_54_6117.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5272f65f733064814e61fc5716172be2.jpg","text":"TemporaryFile(/tmp/multipartBody2677634267587755513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300704098,"filename":"image_18032025_13_23_35_6118.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3fe12607471caeeb2f88c67ff2b6ba2.jpg","text":"TemporaryFile(/tmp/multipartBody7482060108474416748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300704098,"filename":"image_18032025_13_23_29_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f603194f12bb136a8e6d1c0768a71600.jpg","text":"TemporaryFile(/tmp/multipartBody3648992587771629141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300704098,"filename":"image_18032025_13_23_41_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7da0c87bbb85d5e1a30e7f64bd75b182.jpg","text":"TemporaryFile(/tmp/multipartBody3118910063483551927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300704098,"filename":"image_18032025_13_23_23_6126.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/42556bf0364cd705c27e4036b2f4cd95.jpg","text":"TemporaryFile(/tmp/multipartBody6628438238212825831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300704098,"filename":"image_18032025_13_23_47_6120.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345125137","file1":"1345125133","file0":"1345125129","file4":"1345125143","file5":"1345125148","file3":"1345125140"},"map_files_photo_id_array":[{"photo_id":"1345125148","filename":"file5"},{"photo_id":"1345125137","filename":"file2"},{"photo_id":"1345125143","filename":"file4"},{"photo_id":"1345125133","filename":"file1"},{"photo_id":"1345125129","filename":"file0"},{"photo_id":"1345125140","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345125129":["hashtag1","hashtag2"]},{"1345125140":["hashtag1","hashtag2"]},{"1345125143":["hashtag1","hashtag2"]},{"1345125137":["hashtag1","hashtag2"]},{"1345125148":["hashtag1","hashtag2"]},{"1345125133":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345125129, 1345125140, 1345125143, 1345125137, 1345125148, 1345125133)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.55683350563049 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:25:03.334706
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_53_5143.jpg', 2), ('/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_42_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_35_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_29_6126.jpg', 2), ('/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_23_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_17_6120.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_53_5143.jpg', '/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_42_6125.jpg', '/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_35_6125.jpg', '/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_29_6126.jpg', '/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_23_6134.jpg', '/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_17_6120.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_53_5143.jpg
/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_42_6125.jpg
/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_35_6125.jpg
/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_29_6126.jpg
/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_23_6134.jpg
/home/nano/Desktop/images/18032025/13/24/image_18032025_13_24_17_6120.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345125170","1345125181","1345125184","1345125178","1345125189","1345125174"],"photo_ids_order":["1345125170","1345125174","1345125178","1345125181","1345125184","1345125189"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/79f64f721fb4316bf9a8040ec2501843.jpg","text":"TemporaryFile(/tmp/multipartBody1491186012411712751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300763976,"filename":"image_18032025_13_24_53_5143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f31bb2f9b0a8b5c29dd51030ce6d9693.jpg","text":"TemporaryFile(/tmp/multipartBody746983627223690511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300763976,"filename":"image_18032025_13_24_29_6126.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5c9021ece01be136d882e0b771e34107.jpg","text":"TemporaryFile(/tmp/multipartBody8424859960586815754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300763976,"filename":"image_18032025_13_24_23_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3d391f66c1cc782a618a64edfa9a2818.jpg","text":"TemporaryFile(/tmp/multipartBody8379896482937139332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300763976,"filename":"image_18032025_13_24_35_6125.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/65082fb0c115a7a5e2f71c6cdb8c5603.jpg","text":"TemporaryFile(/tmp/multipartBody4828424150382060538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300763976,"filename":"image_18032025_13_24_17_6120.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5cc717ae60a95df474727ef039766cab.jpg","text":"TemporaryFile(/tmp/multipartBody2288952625547769101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300763976,"filename":"image_18032025_13_24_42_6125.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345125178","file1":"1345125174","file0":"1345125170","file4":"1345125184","file5":"1345125189","file3":"1345125181"},"map_files_photo_id_array":[{"photo_id":"1345125189","filename":"file5"},{"photo_id":"1345125178","filename":"file2"},{"photo_id":"1345125184","filename":"file4"},{"photo_id":"1345125174","filename":"file1"},{"photo_id":"1345125170","filename":"file0"},{"photo_id":"1345125181","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345125170":["hashtag1","hashtag2"]},{"1345125181":["hashtag1","hashtag2"]},{"1345125184":["hashtag1","hashtag2"]},{"1345125178":["hashtag1","hashtag2"]},{"1345125189":["hashtag1","hashtag2"]},{"1345125174":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345125170, 1345125181, 1345125184, 1345125178, 1345125189, 1345125174)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.36087155342102 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:26:02.449618
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_53_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_41_6131.jpg', 2), ('/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_35_5083.jpg', 2), ('/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_30_6115.jpg', 2), ('/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_18_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_11_6196.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_53_6151.jpg', '/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_41_6131.jpg', '/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_35_5083.jpg', '/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_30_6115.jpg', '/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_18_6119.jpg', '/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_11_6196.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_53_6151.jpg
/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_41_6131.jpg
/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_35_5083.jpg
/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_30_6115.jpg
/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_18_6119.jpg
/home/nano/Desktop/images/18032025/13/25/image_18032025_13_25_11_6196.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345125222","1345125210","1345125215","1345125218","1345125206","1345125229"],"photo_ids_order":["1345125206","1345125210","1345125215","1345125218","1345125222","1345125229"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1cb418cc326591985249ae8121cc1e96.jpg","text":"TemporaryFile(/tmp/multipartBody7330621705553673776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300823071,"filename":"image_18032025_13_25_18_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1f56b1f0f3139f98eb82b9430c96b9da.jpg","text":"TemporaryFile(/tmp/multipartBody6758803700763580003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300823071,"filename":"image_18032025_13_25_41_6131.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d41b8ccf3ba758e46271e6155556d25.jpg","text":"TemporaryFile(/tmp/multipartBody2877156453024844547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300823071,"filename":"image_18032025_13_25_35_5083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/91db2870fff095122b27988d19d0d14d.jpg","text":"TemporaryFile(/tmp/multipartBody4174143169732200445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300823071,"filename":"image_18032025_13_25_30_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7782bb14fb462418d69b24446d0493e7.jpg","text":"TemporaryFile(/tmp/multipartBody8038461411787142106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300823071,"filename":"image_18032025_13_25_53_6151.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f82acc36dcf10a86b3b5c2e1cbbc2f1d.jpg","text":"TemporaryFile(/tmp/multipartBody106635737895606288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300823071,"filename":"image_18032025_13_25_11_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345125215","file1":"1345125210","file0":"1345125206","file4":"1345125222","file5":"1345125229","file3":"1345125218"},"map_files_photo_id_array":[{"photo_id":"1345125229","filename":"file5"},{"photo_id":"1345125215","filename":"file2"},{"photo_id":"1345125222","filename":"file4"},{"photo_id":"1345125210","filename":"file1"},{"photo_id":"1345125206","filename":"file0"},{"photo_id":"1345125218","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345125222":["hashtag1","hashtag2"]},{"1345125210":["hashtag1","hashtag2"]},{"1345125215":["hashtag1","hashtag2"]},{"1345125218":["hashtag1","hashtag2"]},{"1345125206":["hashtag1","hashtag2"]},{"1345125229":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345125222, 1345125210, 1345125215, 1345125218, 1345125206, 1345125229)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.997766971588135 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:27:02.507378
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_54_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_48_6154.jpg', 2), ('/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_41_6166.jpg', 2), ('/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_35_6161.jpg', 2), ('/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_29_6164.jpg', 2), ('/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_23_5122.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_54_6128.jpg', '/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_48_6154.jpg', '/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_41_6166.jpg', '/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_35_6161.jpg', '/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_29_6164.jpg', '/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_23_5122.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_54_6128.jpg
/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_48_6154.jpg
/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_41_6166.jpg
/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_35_6161.jpg
/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_29_6164.jpg
/home/nano/Desktop/images/18032025/13/26/image_18032025_13_26_23_5122.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345125251","1345125245","1345125260","1345125253","1345125247","1345125267"],"photo_ids_order":["1345125245","1345125247","1345125251","1345125253","1345125260","1345125267"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a2faa947ab3e82fe8942c9654bde1ad2.jpg","text":"TemporaryFile(/tmp/multipartBody7446341904487568896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300883225,"filename":"image_18032025_13_26_41_6166.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1b8cd46a67af3d07a83ca89df637c8a0.jpg","text":"TemporaryFile(/tmp/multipartBody9010570010799088958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300883225,"filename":"image_18032025_13_26_54_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/668d0055801dddfc82bbc5a5e0ab1dfb.jpg","text":"TemporaryFile(/tmp/multipartBody5540813408871876494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300883225,"filename":"image_18032025_13_26_29_6164.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/41422d26bb9f00621025ce1374647656.jpg","text":"TemporaryFile(/tmp/multipartBody3964379454089951493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300883225,"filename":"image_18032025_13_26_35_6161.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4b85b6188cc8f8d20b85c5f846eadc5.jpg","text":"TemporaryFile(/tmp/multipartBody2339664486648539511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300883225,"filename":"image_18032025_13_26_48_6154.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c70d64bac8c24f1c4ef5c2354ed231d9.jpg","text":"TemporaryFile(/tmp/multipartBody6496189066965379479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300883225,"filename":"image_18032025_13_26_23_5122.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345125251","file1":"1345125247","file0":"1345125245","file4":"1345125260","file5":"1345125267","file3":"1345125253"},"map_files_photo_id_array":[{"photo_id":"1345125267","filename":"file5"},{"photo_id":"1345125251","filename":"file2"},{"photo_id":"1345125260","filename":"file4"},{"photo_id":"1345125247","filename":"file1"},{"photo_id":"1345125245","filename":"file0"},{"photo_id":"1345125253","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345125251":["hashtag1","hashtag2"]},{"1345125245":["hashtag1","hashtag2"]},{"1345125260":["hashtag1","hashtag2"]},{"1345125253":["hashtag1","hashtag2"]},{"1345125247":["hashtag1","hashtag2"]},{"1345125267":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345125251, 1345125245, 1345125260, 1345125253, 1345125247, 1345125267)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.678935050964355 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:28:02.545297
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_53_6162.jpg', 2), ('/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_47_5097.jpg', 2), ('/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_42_6124.jpg', 2), ('/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_36_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_30_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_23_6130.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_53_6162.jpg', '/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_47_5097.jpg', '/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_42_6124.jpg', '/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_36_6128.jpg', '/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_30_6125.jpg', '/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_23_6130.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_53_6162.jpg
/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_47_5097.jpg
/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_42_6124.jpg
/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_36_6128.jpg
/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_30_6125.jpg
/home/nano/Desktop/images/18032025/13/27/image_18032025_13_27_23_6130.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.4057128429412842 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:28:32.023906
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_53_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_47_6033.jpg', 2), ('/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_41_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_35_5122.jpg', 2), ('/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_30_6129.jpg', 2), ('/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_24_6134.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_53_6135.jpg', '/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_47_6033.jpg', '/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_41_6134.jpg', '/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_35_5122.jpg', '/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_30_6129.jpg', '/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_24_6134.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_53_6135.jpg
/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_47_6033.jpg
/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_41_6134.jpg
/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_35_5122.jpg
/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_30_6129.jpg
/home/nano/Desktop/images/18032025/13/28/image_18032025_13_28_24_6134.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345125315","1345125312","1345125326","1345125329","1345125322","1345125319"],"photo_ids_order":["1345125312","1345125315","1345125319","1345125322","1345125326","1345125329"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6db75bee95b3da0fa3822bafbd3081de.jpg","text":"TemporaryFile(/tmp/multipartBody4336079397037569245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300972538,"filename":"image_18032025_13_28_47_6033.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f8931020682fcab6d8bb1330b278341d.jpg","text":"TemporaryFile(/tmp/multipartBody2170849630788142032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300972538,"filename":"image_18032025_13_28_53_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/017f9659f586b40232df86455f1c8cb8.jpg","text":"TemporaryFile(/tmp/multipartBody8646249688343003931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300972538,"filename":"image_18032025_13_28_30_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/79e7e4e3093d6120f109bd49ea7b12bb.jpg","text":"TemporaryFile(/tmp/multipartBody5499513720179698015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300972538,"filename":"image_18032025_13_28_24_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a0632eca1d0f5d50f62518f8f356151.jpg","text":"TemporaryFile(/tmp/multipartBody2658986359770135644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300972538,"filename":"image_18032025_13_28_35_5122.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/940a1d092509bac4280153fbe8e06c5e.jpg","text":"TemporaryFile(/tmp/multipartBody5962771642712084337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742300972538,"filename":"image_18032025_13_28_41_6134.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345125319","file1":"1345125315","file0":"1345125312","file4":"1345125326","file5":"1345125329","file3":"1345125322"},"map_files_photo_id_array":[{"photo_id":"1345125329","filename":"file5"},{"photo_id":"1345125319","filename":"file2"},{"photo_id":"1345125326","filename":"file4"},{"photo_id":"1345125315","filename":"file1"},{"photo_id":"1345125312","filename":"file0"},{"photo_id":"1345125322","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345125315":["hashtag1","hashtag2"]},{"1345125312":["hashtag1","hashtag2"]},{"1345125326":["hashtag1","hashtag2"]},{"1345125329":["hashtag1","hashtag2"]},{"1345125322":["hashtag1","hashtag2"]},{"1345125319":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345125315, 1345125312, 1345125326, 1345125329, 1345125322, 1345125319)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.07055330276489 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:29:32.214194
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_54_6164.jpg', 2), ('/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_48_6218.jpg', 2), ('/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_41_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_35_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_29_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_18_6136.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_54_6164.jpg', '/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_48_6218.jpg', '/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_41_6134.jpg', '/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_35_6134.jpg', '/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_29_6135.jpg', '/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_18_6136.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_54_6164.jpg
/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_48_6218.jpg
/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_41_6134.jpg
/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_35_6134.jpg
/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_29_6135.jpg
/home/nano/Desktop/images/18032025/13/29/image_18032025_13_29_18_6136.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345125369","1345125360","1345125365","1345125391","1345125355","1345125400"],"photo_ids_order":["1345125355","1345125360","1345125365","1345125369","1345125391","1345125400"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7787f9eeb4b7228b38bc863bd130164a.jpg","text":"TemporaryFile(/tmp/multipartBody5957450021150793256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301032667,"filename":"image_18032025_13_29_35_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/81b85555526eb9a68488664a576f9686.jpg","text":"TemporaryFile(/tmp/multipartBody1012535849818876272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301032667,"filename":"image_18032025_13_29_48_6218.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0bc3af6039719034d54ed1be420a83c0.jpg","text":"TemporaryFile(/tmp/multipartBody5535252748475685479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301032667,"filename":"image_18032025_13_29_41_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3a10b9dac038f4446afbec001d6f311b.jpg","text":"TemporaryFile(/tmp/multipartBody3937940312059710691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301032667,"filename":"image_18032025_13_29_29_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c202e5e2d3cd9400c671f6156d9712e5.jpg","text":"TemporaryFile(/tmp/multipartBody3938850582438698727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301032667,"filename":"image_18032025_13_29_54_6164.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b242786c4254fb0683ba05631cede74.jpg","text":"TemporaryFile(/tmp/multipartBody1183073556168682880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301032667,"filename":"image_18032025_13_29_18_6136.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345125365","file1":"1345125360","file0":"1345125355","file4":"1345125391","file5":"1345125400","file3":"1345125369"},"map_files_photo_id_array":[{"photo_id":"1345125400","filename":"file5"},{"photo_id":"1345125365","filename":"file2"},{"photo_id":"1345125391","filename":"file4"},{"photo_id":"1345125360","filename":"file1"},{"photo_id":"1345125355","filename":"file0"},{"photo_id":"1345125369","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345125369":["hashtag1","hashtag2"]},{"1345125360":["hashtag1","hashtag2"]},{"1345125365":["hashtag1","hashtag2"]},{"1345125391":["hashtag1","hashtag2"]},{"1345125355":["hashtag1","hashtag2"]},{"1345125400":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345125369, 1345125360, 1345125365, 1345125391, 1345125355, 1345125400)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.816121578216553 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:30:32.327111
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_53_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_47_5125.jpg', 2), ('/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_42_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_36_5941.jpg', 2), ('/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_30_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_24_6143.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_53_6142.jpg', '/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_47_5125.jpg', '/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_42_6107.jpg', '/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_36_5941.jpg', '/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_30_6140.jpg', '/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_24_6143.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_53_6142.jpg
/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_47_5125.jpg
/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_42_6107.jpg
/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_36_5941.jpg
/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_30_6140.jpg
/home/nano/Desktop/images/18032025/13/30/image_18032025_13_30_24_6143.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345125438","1345125446","1345125428","1345125422","1345125433","1345125442"],"photo_ids_order":["1345125422","1345125428","1345125433","1345125438","1345125442","1345125446"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/659b2d059f3abfc4cd4014f86da5308d.jpg","text":"TemporaryFile(/tmp/multipartBody3139231167654971797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301092922,"filename":"image_18032025_13_30_36_5941.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fdd4596edb2a85768d82797a6fc2014d.jpg","text":"TemporaryFile(/tmp/multipartBody4413097894188521747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301092922,"filename":"image_18032025_13_30_24_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/485bec2e5ef0a6747b2536dea71ac142.jpg","text":"TemporaryFile(/tmp/multipartBody1024335160941591890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301092922,"filename":"image_18032025_13_30_47_5125.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3d017066ab321ac6dd891c6dfdc1673a.jpg","text":"TemporaryFile(/tmp/multipartBody3726513231354323939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301092922,"filename":"image_18032025_13_30_53_6142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a2e6b436093f60a1473a150b8d03b7d2.jpg","text":"TemporaryFile(/tmp/multipartBody4764142360603527510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301092922,"filename":"image_18032025_13_30_42_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3d9d6e8552003eb10c9b8c4d7e32de76.jpg","text":"TemporaryFile(/tmp/multipartBody5392693730764895103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301092922,"filename":"image_18032025_13_30_30_6140.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345125433","file1":"1345125428","file0":"1345125422","file4":"1345125442","file5":"1345125446","file3":"1345125438"},"map_files_photo_id_array":[{"photo_id":"1345125446","filename":"file5"},{"photo_id":"1345125433","filename":"file2"},{"photo_id":"1345125442","filename":"file4"},{"photo_id":"1345125428","filename":"file1"},{"photo_id":"1345125422","filename":"file0"},{"photo_id":"1345125438","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345125438":["hashtag1","hashtag2"]},{"1345125446":["hashtag1","hashtag2"]},{"1345125428":["hashtag1","hashtag2"]},{"1345125422":["hashtag1","hashtag2"]},{"1345125433":["hashtag1","hashtag2"]},{"1345125442":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345125438, 1345125446, 1345125428, 1345125422, 1345125433, 1345125442)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.012035846710205 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:31:32.439128
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_54_6133.jpg', 2), ('/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_47_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_41_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_35_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_29_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_23_5160.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_54_6133.jpg', '/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_47_6141.jpg', '/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_41_6135.jpg', '/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_35_6134.jpg', '/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_29_6134.jpg', '/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_23_5160.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_54_6133.jpg
/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_47_6141.jpg
/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_41_6135.jpg
/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_35_6134.jpg
/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_29_6134.jpg
/home/nano/Desktop/images/18032025/13/31/image_18032025_13_31_23_5160.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345125804","1345125720","1345125725","1345125748","1345125712","1345125849"],"photo_ids_order":["1345125712","1345125720","1345125725","1345125748","1345125804","1345125849"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b26c61d2d32c331a3f5df4b19c39fd69.jpg","text":"TemporaryFile(/tmp/multipartBody6304268302960793819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301152919,"filename":"image_18032025_13_31_29_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d0bb221f8ce8ec4811f443d389585c89.jpg","text":"TemporaryFile(/tmp/multipartBody4024516538534773101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301152919,"filename":"image_18032025_13_31_47_6141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/45e9d871d85a6de393535e23feb36744.jpg","text":"TemporaryFile(/tmp/multipartBody591780447647805500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301152919,"filename":"image_18032025_13_31_41_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/11627dc02eaea450ec12ba84c9b29c22.jpg","text":"TemporaryFile(/tmp/multipartBody4756905006432314763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301152919,"filename":"image_18032025_13_31_35_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb3e5a5bffdb22242bd54e35ead45845.jpg","text":"TemporaryFile(/tmp/multipartBody7250856214404782213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301152919,"filename":"image_18032025_13_31_54_6133.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/29d4c330205717c5fe304d7f3c5953b4.jpg","text":"TemporaryFile(/tmp/multipartBody8329110592536710924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301152919,"filename":"image_18032025_13_31_23_5160.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345125725","file1":"1345125720","file0":"1345125712","file4":"1345125804","file5":"1345125849","file3":"1345125748"},"map_files_photo_id_array":[{"photo_id":"1345125849","filename":"file5"},{"photo_id":"1345125725","filename":"file2"},{"photo_id":"1345125804","filename":"file4"},{"photo_id":"1345125720","filename":"file1"},{"photo_id":"1345125712","filename":"file0"},{"photo_id":"1345125748","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345125804":["hashtag1","hashtag2"]},{"1345125720":["hashtag1","hashtag2"]},{"1345125725":["hashtag1","hashtag2"]},{"1345125748":["hashtag1","hashtag2"]},{"1345125712":["hashtag1","hashtag2"]},{"1345125849":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345125804, 1345125720, 1345125725, 1345125748, 1345125712, 1345125849)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.710270643234253 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:32:32.602279
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_53_6164.jpg', 2), ('/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_47_5112.jpg', 2), ('/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_42_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_36_6132.jpg', 2), ('/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_29_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_23_6134.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_53_6164.jpg', '/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_47_5112.jpg', '/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_42_6127.jpg', '/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_36_6132.jpg', '/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_29_6128.jpg', '/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_23_6134.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_53_6164.jpg
/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_47_5112.jpg
/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_42_6127.jpg
/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_36_6132.jpg
/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_29_6128.jpg
/home/nano/Desktop/images/18032025/13/32/image_18032025_13_32_23_6134.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345126591","1345126427","1345126307","1345126669","1345126327","1345126516"],"photo_ids_order":["1345126307","1345126327","1345126427","1345126516","1345126591","1345126669"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/097374bfc2e0c413b8d42d854cb01ba7.jpg","text":"TemporaryFile(/tmp/multipartBody1199963443877542164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301213080,"filename":"image_18032025_13_32_29_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/439434436fcb0d9b5c1ca4a031354483.jpg","text":"TemporaryFile(/tmp/multipartBody8517712256911835139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301213080,"filename":"image_18032025_13_32_42_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6be64fb0a66afcd8a8ea1dae60bac628.jpg","text":"TemporaryFile(/tmp/multipartBody7943776962374561351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301213080,"filename":"image_18032025_13_32_53_6164.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4e52a13e9487a9515f7c9878e5ce2d3.jpg","text":"TemporaryFile(/tmp/multipartBody8684931534946629816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301213080,"filename":"image_18032025_13_32_23_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/22f8cddc85ee18a9c2e306226c89947b.jpg","text":"TemporaryFile(/tmp/multipartBody6289772565186257150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301213080,"filename":"image_18032025_13_32_47_5112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b840da48d2df44b08e30772c407136d.jpg","text":"TemporaryFile(/tmp/multipartBody8179973165758545163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301213080,"filename":"image_18032025_13_32_36_6132.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345126427","file1":"1345126327","file0":"1345126307","file4":"1345126591","file5":"1345126669","file3":"1345126516"},"map_files_photo_id_array":[{"photo_id":"1345126669","filename":"file5"},{"photo_id":"1345126427","filename":"file2"},{"photo_id":"1345126591","filename":"file4"},{"photo_id":"1345126327","filename":"file1"},{"photo_id":"1345126307","filename":"file0"},{"photo_id":"1345126516","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345126591":["hashtag1","hashtag2"]},{"1345126427":["hashtag1","hashtag2"]},{"1345126307":["hashtag1","hashtag2"]},{"1345126669":["hashtag1","hashtag2"]},{"1345126327":["hashtag1","hashtag2"]},{"1345126516":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345126591, 1345126427, 1345126307, 1345126669, 1345126327, 1345126516)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.70914435386658 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:33:32.733391
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_53_6129.jpg', 2), ('/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_47_6126.jpg', 2), ('/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_30_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_24_6132.jpg', 2), ('/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_18_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_05_6154.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_53_6129.jpg', '/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_47_6126.jpg', '/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_30_6127.jpg', '/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_24_6132.jpg', '/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_18_6128.jpg', '/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_05_6154.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_53_6129.jpg
/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_47_6126.jpg
/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_30_6127.jpg
/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_24_6132.jpg
/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_18_6128.jpg
/home/nano/Desktop/images/18032025/13/33/image_18032025_13_33_05_6154.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345127599","1345127671","1345127554","1345127611","1345127679","1345127642"],"photo_ids_order":["1345127554","1345127599","1345127611","1345127642","1345127671","1345127679"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d87c05700846171e9c3fad5cb992892.jpg","text":"TemporaryFile(/tmp/multipartBody5355678067411282463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301273201,"filename":"image_18032025_13_33_47_6126.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b33b32ddb33d7a11dbae88910e35f743.jpg","text":"TemporaryFile(/tmp/multipartBody8554712624445114928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301273201,"filename":"image_18032025_13_33_18_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c062e05e1c5596f63e270c741774d8f1.jpg","text":"TemporaryFile(/tmp/multipartBody4562362801936307470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301273201,"filename":"image_18032025_13_33_53_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0b4d68dc1e3b229e97a23e7f5f71a071.jpg","text":"TemporaryFile(/tmp/multipartBody2143615480876691409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301273201,"filename":"image_18032025_13_33_30_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27765838d274029df32f15f3621125e5.jpg","text":"TemporaryFile(/tmp/multipartBody5523924339746410267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301273201,"filename":"image_18032025_13_33_05_6154.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f2f41bf639f7c39a3f7e49bac89a7d7.jpg","text":"TemporaryFile(/tmp/multipartBody23789024219532331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301273201,"filename":"image_18032025_13_33_24_6132.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345127611","file1":"1345127599","file0":"1345127554","file4":"1345127671","file5":"1345127679","file3":"1345127642"},"map_files_photo_id_array":[{"photo_id":"1345127679","filename":"file5"},{"photo_id":"1345127611","filename":"file2"},{"photo_id":"1345127671","filename":"file4"},{"photo_id":"1345127599","filename":"file1"},{"photo_id":"1345127554","filename":"file0"},{"photo_id":"1345127642","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345127599":["hashtag1","hashtag2"]},{"1345127671":["hashtag1","hashtag2"]},{"1345127554":["hashtag1","hashtag2"]},{"1345127611":["hashtag1","hashtag2"]},{"1345127679":["hashtag1","hashtag2"]},{"1345127642":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345127599, 1345127671, 1345127554, 1345127611, 1345127679, 1345127642)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.22819638252258 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:34:31.822644
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_48_6137.jpg', 2), ('/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_41_6129.jpg', 2), ('/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_35_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_29_6130.jpg', 2), ('/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_23_6132.jpg', 2), ('/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_17_5121.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_48_6137.jpg', '/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_41_6129.jpg', '/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_35_6125.jpg', '/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_29_6130.jpg', '/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_23_6132.jpg', '/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_17_5121.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_48_6137.jpg
/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_41_6129.jpg
/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_35_6125.jpg
/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_29_6130.jpg
/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_23_6132.jpg
/home/nano/Desktop/images/18032025/13/34/image_18032025_13_34_17_5121.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345127837","1345127974","1345127884","1345127935","1345127796","1345128003"],"photo_ids_order":["1345127796","1345127837","1345127884","1345127935","1345127974","1345128003"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d904dda8007588461166082e17a163e.jpg","text":"TemporaryFile(/tmp/multipartBody6285427444256033605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301332292,"filename":"image_18032025_13_34_41_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f5b2d1efa21a9a3415147ac283d98d55.jpg","text":"TemporaryFile(/tmp/multipartBody2112473502462142947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301332292,"filename":"image_18032025_13_34_23_6132.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3676bfd273fa2a5eb46a8ae81cc0037.jpg","text":"TemporaryFile(/tmp/multipartBody26736585256916633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301332292,"filename":"image_18032025_13_34_35_6125.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9302fba2b3e521a8cceea436753c8826.jpg","text":"TemporaryFile(/tmp/multipartBody4347632333296214028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301332292,"filename":"image_18032025_13_34_29_6130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85abf6949c482d5b5e050565a511d10a.jpg","text":"TemporaryFile(/tmp/multipartBody6290662326140978941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301332292,"filename":"image_18032025_13_34_48_6137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9d244f5dc1231c8d96fb8e9566b4c4a.jpg","text":"TemporaryFile(/tmp/multipartBody5141332636765037842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301332292,"filename":"image_18032025_13_34_17_5121.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345127884","file1":"1345127837","file0":"1345127796","file4":"1345127974","file5":"1345128003","file3":"1345127935"},"map_files_photo_id_array":[{"photo_id":"1345128003","filename":"file5"},{"photo_id":"1345127884","filename":"file2"},{"photo_id":"1345127974","filename":"file4"},{"photo_id":"1345127837","filename":"file1"},{"photo_id":"1345127796","filename":"file0"},{"photo_id":"1345127935","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345127837":["hashtag1","hashtag2"]},{"1345127974":["hashtag1","hashtag2"]},{"1345127884":["hashtag1","hashtag2"]},{"1345127935":["hashtag1","hashtag2"]},{"1345127796":["hashtag1","hashtag2"]},{"1345128003":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345127837, 1345127974, 1345127884, 1345127935, 1345127796, 1345128003)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.929808855056763 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:35:31.955302
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_53_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_47_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_41_5124.jpg', 2), ('/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_36_6138.jpg', 2), ('/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_30_6164.jpg', 2), ('/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_11_6162.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_53_6134.jpg', '/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_47_6135.jpg', '/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_41_5124.jpg', '/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_36_6138.jpg', '/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_30_6164.jpg', '/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_11_6162.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_53_6134.jpg
/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_47_6135.jpg
/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_41_5124.jpg
/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_36_6138.jpg
/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_30_6164.jpg
/home/nano/Desktop/images/18032025/13/35/image_18032025_13_35_11_6162.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345128490","1345128454","1345128421","1345128555","1345128585","1345128522"],"photo_ids_order":["1345128421","1345128454","1345128490","1345128522","1345128555","1345128585"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/004b35536cff76dd56eeef55cdab1888.jpg","text":"TemporaryFile(/tmp/multipartBody5444734365572484752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301392440,"filename":"image_18032025_13_35_41_5124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6be12f86cbccd99e33f6a18b67481964.jpg","text":"TemporaryFile(/tmp/multipartBody6677711761126212108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301392440,"filename":"image_18032025_13_35_47_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cbd31cd82597379e9bcddea9f3cf1a4a.jpg","text":"TemporaryFile(/tmp/multipartBody3475776616513577484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301392440,"filename":"image_18032025_13_35_53_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aa32aa60ab760dbd58a940e2243f1842.jpg","text":"TemporaryFile(/tmp/multipartBody1578875908169316593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301392440,"filename":"image_18032025_13_35_30_6164.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e1164f8aaa01e2e0b9335ede7bcef270.jpg","text":"TemporaryFile(/tmp/multipartBody2999467202298017729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301392440,"filename":"image_18032025_13_35_11_6162.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d31ad9feb1e1dfb28fd7ce1e3514764c.jpg","text":"TemporaryFile(/tmp/multipartBody5842406053189791122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301392440,"filename":"image_18032025_13_35_36_6138.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345128490","file1":"1345128454","file0":"1345128421","file4":"1345128555","file5":"1345128585","file3":"1345128522"},"map_files_photo_id_array":[{"photo_id":"1345128585","filename":"file5"},{"photo_id":"1345128490","filename":"file2"},{"photo_id":"1345128555","filename":"file4"},{"photo_id":"1345128454","filename":"file1"},{"photo_id":"1345128421","filename":"file0"},{"photo_id":"1345128522","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345128490":["hashtag1","hashtag2"]},{"1345128454":["hashtag1","hashtag2"]},{"1345128421":["hashtag1","hashtag2"]},{"1345128555":["hashtag1","hashtag2"]},{"1345128585":["hashtag1","hashtag2"]},{"1345128522":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345128490, 1345128454, 1345128421, 1345128555, 1345128585, 1345128522)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.551708459854126 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:36:32.063076
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_53_6129.jpg', 2), ('/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_47_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_35_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_29_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_23_5124.jpg', 2), ('/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_18_6129.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_53_6129.jpg', '/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_47_6076.jpg', '/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_35_6140.jpg', '/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_29_6125.jpg', '/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_23_5124.jpg', '/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_18_6129.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_53_6129.jpg
/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_47_6076.jpg
/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_35_6140.jpg
/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_29_6125.jpg
/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_23_5124.jpg
/home/nano/Desktop/images/18032025/13/36/image_18032025_13_36_18_6129.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345128727","1345128802","1345128765","1345128720","1345128854","1345128734"],"photo_ids_order":["1345128720","1345128727","1345128734","1345128765","1345128802","1345128854"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/57a4004601187db6a1bc18ba0cb979e4.jpg","text":"TemporaryFile(/tmp/multipartBody3284709159976372032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301452584,"filename":"image_18032025_13_36_47_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/77e45d4f5dad68e0981ccd22b71af809.jpg","text":"TemporaryFile(/tmp/multipartBody1340785346553727531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301452584,"filename":"image_18032025_13_36_23_5124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d0558979d0faacead3ef8a68054a9060.jpg","text":"TemporaryFile(/tmp/multipartBody6149505065886379938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301452584,"filename":"image_18032025_13_36_29_6125.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7abcbd63d342a844af0bb23d04abf44.jpg","text":"TemporaryFile(/tmp/multipartBody336051033151613824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301452584,"filename":"image_18032025_13_36_53_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d7f23e1bdcbee9cfef89c4190432eb39.jpg","text":"TemporaryFile(/tmp/multipartBody5085588567400550429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301452584,"filename":"image_18032025_13_36_18_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e816404c0674c391888147a5f1fc171.jpg","text":"TemporaryFile(/tmp/multipartBody4201036510000569567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301452584,"filename":"image_18032025_13_36_35_6140.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345128734","file1":"1345128727","file0":"1345128720","file4":"1345128802","file5":"1345128854","file3":"1345128765"},"map_files_photo_id_array":[{"photo_id":"1345128854","filename":"file5"},{"photo_id":"1345128734","filename":"file2"},{"photo_id":"1345128802","filename":"file4"},{"photo_id":"1345128727","filename":"file1"},{"photo_id":"1345128720","filename":"file0"},{"photo_id":"1345128765","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345128727":["hashtag1","hashtag2"]},{"1345128802":["hashtag1","hashtag2"]},{"1345128765":["hashtag1","hashtag2"]},{"1345128720":["hashtag1","hashtag2"]},{"1345128854":["hashtag1","hashtag2"]},{"1345128734":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345128727, 1345128802, 1345128765, 1345128720, 1345128854, 1345128734)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.95788788795471 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:37:32.198074
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_42_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_35_6136.jpg', 2), ('/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_29_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_23_6130.jpg', 2), ('/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_17_6139.jpg', 2), ('/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_11_5157.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_42_6144.jpg', '/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_35_6136.jpg', '/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_29_6165.jpg', '/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_23_6130.jpg', '/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_17_6139.jpg', '/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_11_5157.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_42_6144.jpg
/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_35_6136.jpg
/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_29_6165.jpg
/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_23_6130.jpg
/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_17_6139.jpg
/home/nano/Desktop/images/18032025/13/37/image_18032025_13_37_11_5157.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345129426","1345129402","1345129373","1345129316","1345129276","1345129351"],"photo_ids_order":["1345129276","1345129316","1345129351","1345129373","1345129402","1345129426"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e2625bf03e7fe6ece9842e602debe6f0.jpg","text":"TemporaryFile(/tmp/multipartBody8718767863416020811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301512676,"filename":"image_18032025_13_37_11_5157.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ee48e19b9ac814428c03a56eb3072a5.jpg","text":"TemporaryFile(/tmp/multipartBody7062883323668796902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301512676,"filename":"image_18032025_13_37_17_6139.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3d5f0aca5506cb9d2bd15e93790b57ec.jpg","text":"TemporaryFile(/tmp/multipartBody6776055580335467723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301512676,"filename":"image_18032025_13_37_23_6130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12e21e9f8c4621006432e3048b62bd00.jpg","text":"TemporaryFile(/tmp/multipartBody8735629712258189908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301512676,"filename":"image_18032025_13_37_35_6136.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/555ed5ed32b40ef258916541bc27caa1.jpg","text":"TemporaryFile(/tmp/multipartBody8061386012356721012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301512676,"filename":"image_18032025_13_37_42_6144.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/46b15ccf01062bf9bdb35e07538b58ec.jpg","text":"TemporaryFile(/tmp/multipartBody2506812282414687991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301512676,"filename":"image_18032025_13_37_29_6165.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345129351","file1":"1345129316","file0":"1345129276","file4":"1345129402","file5":"1345129426","file3":"1345129373"},"map_files_photo_id_array":[{"photo_id":"1345129426","filename":"file5"},{"photo_id":"1345129351","filename":"file2"},{"photo_id":"1345129402","filename":"file4"},{"photo_id":"1345129316","filename":"file1"},{"photo_id":"1345129276","filename":"file0"},{"photo_id":"1345129373","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345129426":["hashtag1","hashtag2"]},{"1345129402":["hashtag1","hashtag2"]},{"1345129373":["hashtag1","hashtag2"]},{"1345129316":["hashtag1","hashtag2"]},{"1345129276":["hashtag1","hashtag2"]},{"1345129351":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345129426, 1345129402, 1345129373, 1345129316, 1345129276, 1345129351)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.743022441864014 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:38:32.317636
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_53_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_35_6177.jpg', 2), ('/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_29_5021.jpg', 2), ('/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_24_6174.jpg', 2), ('/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_18_6146.jpg', 2), ('/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_11_6214.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_53_6127.jpg', '/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_35_6177.jpg', '/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_29_5021.jpg', '/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_24_6174.jpg', '/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_18_6146.jpg', '/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_11_6214.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_53_6127.jpg
/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_35_6177.jpg
/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_29_5021.jpg
/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_24_6174.jpg
/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_18_6146.jpg
/home/nano/Desktop/images/18032025/13/38/image_18032025_13_38_11_6214.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345129705","1345129698","1345129686","1345129713","1345129725","1345129691"],"photo_ids_order":["1345129686","1345129691","1345129698","1345129705","1345129713","1345129725"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/213fb33c0625922266597776be3093d9.jpg","text":"TemporaryFile(/tmp/multipartBody3985138430420589961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301572788,"filename":"image_18032025_13_38_24_6174.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/56dce5186aa95ba25a40081615aaaf92.jpg","text":"TemporaryFile(/tmp/multipartBody6618289668138880552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301572788,"filename":"image_18032025_13_38_29_5021.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9d7c7f598ebb1473cb7061b71ca9101.jpg","text":"TemporaryFile(/tmp/multipartBody716659349178667262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301572788,"filename":"image_18032025_13_38_53_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3c9681c29043fbe7dbfa558c8fdb0611.jpg","text":"TemporaryFile(/tmp/multipartBody6824598168656883309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301572788,"filename":"image_18032025_13_38_18_6146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7d0df7b523922fdabd0f59bed7285d4.jpg","text":"TemporaryFile(/tmp/multipartBody5984325859323642272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301572788,"filename":"image_18032025_13_38_11_6214.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7980307dfec23210947179cd40b9b8cc.jpg","text":"TemporaryFile(/tmp/multipartBody3020539361861171005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301572788,"filename":"image_18032025_13_38_35_6177.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345129698","file1":"1345129691","file0":"1345129686","file4":"1345129713","file5":"1345129725","file3":"1345129705"},"map_files_photo_id_array":[{"photo_id":"1345129725","filename":"file5"},{"photo_id":"1345129698","filename":"file2"},{"photo_id":"1345129713","filename":"file4"},{"photo_id":"1345129691","filename":"file1"},{"photo_id":"1345129686","filename":"file0"},{"photo_id":"1345129705","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345129705":["hashtag1","hashtag2"]},{"1345129698":["hashtag1","hashtag2"]},{"1345129686":["hashtag1","hashtag2"]},{"1345129713":["hashtag1","hashtag2"]},{"1345129725":["hashtag1","hashtag2"]},{"1345129691":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345129705, 1345129698, 1345129686, 1345129713, 1345129725, 1345129691)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.75259804725647 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:39:32.404355
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_48_6167.jpg', 2), ('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_35_6170.jpg', 2), ('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_29_6162.jpg', 2), ('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_23_6031.jpg', 2), ('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_17_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_11_5150.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_48_6167.jpg', '/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_35_6170.jpg', '/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_29_6162.jpg', '/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_23_6031.jpg', '/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_17_6135.jpg', '/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_11_5150.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_48_6167.jpg
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_35_6170.jpg
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_29_6162.jpg
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_23_6031.jpg
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_17_6135.jpg
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_11_5150.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.4108421802520752 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:40:03.088573
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_48_6167.jpg', 2), ('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_35_6170.jpg', 2), ('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_29_6162.jpg', 2), ('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_23_6031.jpg', 2), ('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_17_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_11_5150.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_48_6167.jpg', '/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_35_6170.jpg', '/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_29_6162.jpg', '/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_23_6031.jpg', '/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_17_6135.jpg', '/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_11_5150.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_48_6167.jpg
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_35_6170.jpg
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_29_6162.jpg
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_23_6031.jpg
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_17_6135.jpg
/home/nano/Desktop/images/18032025/13/39/image_18032025_13_39_11_5150.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345130419","1345130401","1345130358","1345130315","1345130237","1345130392"],"photo_ids_order":["1345130237","1345130315","1345130358","1345130392","1345130401","1345130419"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f1bc7974f0af89bb364efde031c193ce.jpg","text":"TemporaryFile(/tmp/multipartBody5301002245904384834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301663629,"filename":"image_18032025_13_39_11_5150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ae4dfeb09bff0f73f7d53a7f5c8fc0c.jpg","text":"TemporaryFile(/tmp/multipartBody3946085076661782196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301663629,"filename":"image_18032025_13_39_17_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fa0cc214172a6f5f9880b97f12c2813a.jpg","text":"TemporaryFile(/tmp/multipartBody3210003449819875062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301663629,"filename":"image_18032025_13_39_29_6162.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6473f259c85720d3cfcae413f244b30.jpg","text":"TemporaryFile(/tmp/multipartBody8889241080134450554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301663629,"filename":"image_18032025_13_39_35_6170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9aca3918ed2ef157bcf4f7a5066a2dd7.jpg","text":"TemporaryFile(/tmp/multipartBody7593854159594761318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301663629,"filename":"image_18032025_13_39_48_6167.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9d93e35d97b3949a8d5b37283721bfa.jpg","text":"TemporaryFile(/tmp/multipartBody6473666695451488940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301663629,"filename":"image_18032025_13_39_23_6031.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345130358","file1":"1345130315","file0":"1345130237","file4":"1345130401","file5":"1345130419","file3":"1345130392"},"map_files_photo_id_array":[{"photo_id":"1345130419","filename":"file5"},{"photo_id":"1345130358","filename":"file2"},{"photo_id":"1345130401","filename":"file4"},{"photo_id":"1345130315","filename":"file1"},{"photo_id":"1345130237","filename":"file0"},{"photo_id":"1345130392","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345130419":["hashtag1","hashtag2"]},{"1345130401":["hashtag1","hashtag2"]},{"1345130358":["hashtag1","hashtag2"]},{"1345130315":["hashtag1","hashtag2"]},{"1345130237":["hashtag1","hashtag2"]},{"1345130392":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345130419, 1345130401, 1345130358, 1345130315, 1345130237, 1345130392)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.881571769714355 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:41:03.073150
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_48_6137.jpg', 2), ('/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_42_6137.jpg', 2), ('/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_36_6133.jpg', 2), ('/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_23_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_17_6170.jpg', 2), ('/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_11_5153.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_48_6137.jpg', '/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_42_6137.jpg', '/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_36_6133.jpg', '/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_23_6145.jpg', '/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_17_6170.jpg', '/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_11_5153.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_48_6137.jpg
/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_42_6137.jpg
/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_36_6133.jpg
/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_23_6145.jpg
/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_17_6170.jpg
/home/nano/Desktop/images/18032025/13/40/image_18032025_13_40_11_5153.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345130572","1345130699","1345130625","1345130669","1345130570","1345130584"],"photo_ids_order":["1345130570","1345130572","1345130584","1345130625","1345130669","1345130699"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10146b17e64212646ef5d4712a68f6dc.jpg","text":"TemporaryFile(/tmp/multipartBody4419512520316852665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301723553,"filename":"image_18032025_13_40_42_6137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7332b413a4fccae6692b2d61a94c725c.jpg","text":"TemporaryFile(/tmp/multipartBody6756037452016126824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301723553,"filename":"image_18032025_13_40_11_5153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e0425f6c298c741c60043303275f0357.jpg","text":"TemporaryFile(/tmp/multipartBody1378721856819174643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301723553,"filename":"image_18032025_13_40_23_6145.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f0e773d2f7d43126ecb8cd61a53dfa6.jpg","text":"TemporaryFile(/tmp/multipartBody6181715358936466909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301723553,"filename":"image_18032025_13_40_17_6170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27663a6f03e92702f76271954e6bbbdd.jpg","text":"TemporaryFile(/tmp/multipartBody1473559494828490445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301723553,"filename":"image_18032025_13_40_48_6137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/460d06bac504e1d9527c3540fb9c16b7.jpg","text":"TemporaryFile(/tmp/multipartBody5054784277676564805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301723553,"filename":"image_18032025_13_40_36_6133.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345130584","file1":"1345130572","file0":"1345130570","file4":"1345130669","file5":"1345130699","file3":"1345130625"},"map_files_photo_id_array":[{"photo_id":"1345130699","filename":"file5"},{"photo_id":"1345130584","filename":"file2"},{"photo_id":"1345130669","filename":"file4"},{"photo_id":"1345130572","filename":"file1"},{"photo_id":"1345130570","filename":"file0"},{"photo_id":"1345130625","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345130572":["hashtag1","hashtag2"]},{"1345130699":["hashtag1","hashtag2"]},{"1345130625":["hashtag1","hashtag2"]},{"1345130669":["hashtag1","hashtag2"]},{"1345130570":["hashtag1","hashtag2"]},{"1345130584":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345130572, 1345130699, 1345130625, 1345130669, 1345130570, 1345130584)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.68940329551697 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:42:03.406581
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_53_5947.jpg', 2), ('/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_48_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_42_5913.jpg', 2), ('/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_36_6033.jpg', 2), ('/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_30_6022.jpg', 2), ('/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_24_6141.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_53_5947.jpg', '/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_48_5856.jpg', '/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_42_5913.jpg', '/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_36_6033.jpg', '/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_30_6022.jpg', '/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_24_6141.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_53_5947.jpg
/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_48_5856.jpg
/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_42_5913.jpg
/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_36_6033.jpg
/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_30_6022.jpg
/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_24_6141.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.37996363639831543 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:42:32.753420
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_47_6022.jpg', 2), ('/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_41_5942.jpg', 2), ('/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_29_5966.jpg', 2), ('/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_23_6016.jpg', 2), ('/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_11_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_05_6112.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_47_6022.jpg', '/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_41_5942.jpg', '/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_29_5966.jpg', '/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_23_6016.jpg', '/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_11_5812.jpg', '/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_05_6112.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_47_6022.jpg
/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_41_5942.jpg
/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_29_5966.jpg
/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_23_6016.jpg
/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_11_5812.jpg
/home/nano/Desktop/images/18032025/13/42/image_18032025_13_42_05_6112.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345131259","1345131220","1345131368","1345131254","1345131308","1345131193"],"photo_ids_order":["1345131193","1345131220","1345131254","1345131259","1345131308","1345131368"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0df3ba8b6bacc4e960762bb2817cfad8.jpg","text":"TemporaryFile(/tmp/multipartBody8890949444279499069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301813243,"filename":"image_18032025_13_42_23_6016.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c8169e4ce49486254dd98bd02d8a35b.jpg","text":"TemporaryFile(/tmp/multipartBody2304934464439122240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301813243,"filename":"image_18032025_13_42_41_5942.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a88235a1fd85149d69a091e0356bf2c3.jpg","text":"TemporaryFile(/tmp/multipartBody6683591567068149152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301813243,"filename":"image_18032025_13_42_05_6112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/278e2310d50ce58432b284d8399bcf58.jpg","text":"TemporaryFile(/tmp/multipartBody4777217912740154714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301813243,"filename":"image_18032025_13_42_29_5966.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ce98011e150a77790cadd8db108af8d.jpg","text":"TemporaryFile(/tmp/multipartBody4574263862469729147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301813243,"filename":"image_18032025_13_42_11_5812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/736a802f314bde9fb0d1fd796d8312b2.jpg","text":"TemporaryFile(/tmp/multipartBody7777426842633081754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301813243,"filename":"image_18032025_13_42_47_6022.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345131254","file1":"1345131220","file0":"1345131193","file4":"1345131308","file5":"1345131368","file3":"1345131259"},"map_files_photo_id_array":[{"photo_id":"1345131368","filename":"file5"},{"photo_id":"1345131254","filename":"file2"},{"photo_id":"1345131308","filename":"file4"},{"photo_id":"1345131220","filename":"file1"},{"photo_id":"1345131193","filename":"file0"},{"photo_id":"1345131259","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345131259":["hashtag1","hashtag2"]},{"1345131220":["hashtag1","hashtag2"]},{"1345131368":["hashtag1","hashtag2"]},{"1345131254":["hashtag1","hashtag2"]},{"1345131308":["hashtag1","hashtag2"]},{"1345131193":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345131259, 1345131220, 1345131368, 1345131254, 1345131308, 1345131193)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.570125579833984 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:43:31.879922
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_47_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_41_5916.jpg', 2), ('/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_06_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/13/42/image_18032025_13_43_00_5946.jpg', 2), ('/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_59_5841.jpg', 2), ('/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_53_5947.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_47_6065.jpg', '/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_41_5916.jpg', '/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_06_6042.jpg', '/home/nano/Desktop/images/18032025/13/42/image_18032025_13_43_00_5946.jpg', '/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_59_5841.jpg', '/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_53_5947.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_47_6065.jpg
/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_41_5916.jpg
/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_06_6042.jpg
/home/nano/Desktop/images/18032025/13/42/image_18032025_13_43_00_5946.jpg
/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_59_5841.jpg
/home/nano/Desktop/images/18032025/13/41/image_18032025_13_41_53_5947.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345131654","1345131666","1345131639","1345131659","1345131647","1345131625"],"photo_ids_order":["1345131625","1345131639","1345131647","1345131654","1345131659","1345131666"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a09e868d0a96478af69c586d2a91a5be.jpg","text":"TemporaryFile(/tmp/multipartBody1454768252231180123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301872330,"filename":"image_18032025_13_43_00_5946.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3162b1d0845b64cc553e183d6afbf9f6.jpg","text":"TemporaryFile(/tmp/multipartBody6713535201175844997asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301872330,"filename":"image_18032025_13_41_53_5947.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f9648eb4647f3cfbf0418d9514c12839.jpg","text":"TemporaryFile(/tmp/multipartBody2094468616130398715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301872330,"filename":"image_18032025_13_43_41_5916.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69ce02edfe66a7b79fabbb24f91471e2.jpg","text":"TemporaryFile(/tmp/multipartBody6620418377676621416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301872330,"filename":"image_18032025_13_41_59_5841.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ba5e8b857e8e768042952b640c28c3a5.jpg","text":"TemporaryFile(/tmp/multipartBody635495660008678966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301872330,"filename":"image_18032025_13_43_06_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b45092822f600eb5b6f3effc6bf05668.jpg","text":"TemporaryFile(/tmp/multipartBody7486350374596423668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301872330,"filename":"image_18032025_13_43_47_6065.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345131647","file1":"1345131639","file0":"1345131625","file4":"1345131659","file5":"1345131666","file3":"1345131654"},"map_files_photo_id_array":[{"photo_id":"1345131666","filename":"file5"},{"photo_id":"1345131647","filename":"file2"},{"photo_id":"1345131659","filename":"file4"},{"photo_id":"1345131639","filename":"file1"},{"photo_id":"1345131625","filename":"file0"},{"photo_id":"1345131654","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345131654":["hashtag1","hashtag2"]},{"1345131666":["hashtag1","hashtag2"]},{"1345131639":["hashtag1","hashtag2"]},{"1345131659":["hashtag1","hashtag2"]},{"1345131647":["hashtag1","hashtag2"]},{"1345131625":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345131654, 1345131666, 1345131639, 1345131659, 1345131647, 1345131625)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.091126918792725 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:44:31.969384
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_53_5826.jpg', 2), ('/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_48_5935.jpg', 2), ('/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_42_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_29_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_17_6034.jpg', 2), ('/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_53_5937.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_53_5826.jpg', '/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_48_5935.jpg', '/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_42_5805.jpg', '/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_29_5854.jpg', '/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_17_6034.jpg', '/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_53_5937.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_53_5826.jpg
/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_48_5935.jpg
/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_42_5805.jpg
/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_29_5854.jpg
/home/nano/Desktop/images/18032025/13/44/image_18032025_13_44_17_6034.jpg
/home/nano/Desktop/images/18032025/13/43/image_18032025_13_43_53_5937.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345131808","1345131771","1345131801","1345131785","1345131796","1345131790"],"photo_ids_order":["1345131771","1345131785","1345131790","1345131796","1345131801","1345131808"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/408442e6af4d2f8aaaca8851ca1e6851.jpg","text":"TemporaryFile(/tmp/multipartBody2554155737588411425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301932591,"filename":"image_18032025_13_43_53_5937.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f503571e01882fa6ed4ed7b8ca5223e3.jpg","text":"TemporaryFile(/tmp/multipartBody8985128571999135196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301932591,"filename":"image_18032025_13_44_53_5826.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/04fbf35178aada9b5ae718b5eacf2bff.jpg","text":"TemporaryFile(/tmp/multipartBody3244332175631814608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301932591,"filename":"image_18032025_13_44_17_6034.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b53ae2adccc07e444cfe69337580463a.jpg","text":"TemporaryFile(/tmp/multipartBody377000099409725931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301932591,"filename":"image_18032025_13_44_48_5935.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1f9883172f713e1dad76dc8f5685687b.jpg","text":"TemporaryFile(/tmp/multipartBody8592830873633806522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301932591,"filename":"image_18032025_13_44_29_5854.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f4eb1a099a4e9334339782ed29b37b13.jpg","text":"TemporaryFile(/tmp/multipartBody1649273874329522583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301932591,"filename":"image_18032025_13_44_42_5805.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345131790","file1":"1345131785","file0":"1345131771","file4":"1345131801","file5":"1345131808","file3":"1345131796"},"map_files_photo_id_array":[{"photo_id":"1345131808","filename":"file5"},{"photo_id":"1345131790","filename":"file2"},{"photo_id":"1345131801","filename":"file4"},{"photo_id":"1345131785","filename":"file1"},{"photo_id":"1345131771","filename":"file0"},{"photo_id":"1345131796","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345131808":["hashtag1","hashtag2"]},{"1345131771":["hashtag1","hashtag2"]},{"1345131801":["hashtag1","hashtag2"]},{"1345131785":["hashtag1","hashtag2"]},{"1345131796":["hashtag1","hashtag2"]},{"1345131790":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345131808, 1345131771, 1345131801, 1345131785, 1345131796, 1345131790)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.166191816329956 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:45:32.099462
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_47_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_41_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_35_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_29_5983.jpg', 2), ('/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_23_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_17_5782.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_47_5967.jpg', '/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_41_6111.jpg', '/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_35_5830.jpg', '/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_29_5983.jpg', '/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_23_6076.jpg', '/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_17_5782.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_47_5967.jpg
/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_41_6111.jpg
/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_35_5830.jpg
/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_29_5983.jpg
/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_23_6076.jpg
/home/nano/Desktop/images/18032025/13/45/image_18032025_13_45_17_5782.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345131952","1345131946","1345131933","1345131909","1345131914","1345131958"],"photo_ids_order":["1345131909","1345131914","1345131933","1345131946","1345131952","1345131958"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/53c90863ba011fbf391d0c58e548a954.jpg","text":"TemporaryFile(/tmp/multipartBody6051096529902612165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301992690,"filename":"image_18032025_13_45_23_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/591d30b657a27d245479f25ac520cc94.jpg","text":"TemporaryFile(/tmp/multipartBody4287823558459774239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301992690,"filename":"image_18032025_13_45_29_5983.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8a873e9a273a2ade53204fd9bdff3d99.jpg","text":"TemporaryFile(/tmp/multipartBody6456615223538506657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301992690,"filename":"image_18032025_13_45_35_5830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/765f7b0b889e1abe4b450a794fbb4727.jpg","text":"TemporaryFile(/tmp/multipartBody713949174999297928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301992690,"filename":"image_18032025_13_45_47_5967.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ed2272c498cd0e2e80f01a929824f70.jpg","text":"TemporaryFile(/tmp/multipartBody7782136326803095873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301992690,"filename":"image_18032025_13_45_41_6111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2b6967aff5ff844a358db172d92bffd0.jpg","text":"TemporaryFile(/tmp/multipartBody308482339417387533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742301992690,"filename":"image_18032025_13_45_17_5782.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345131933","file1":"1345131914","file0":"1345131909","file4":"1345131952","file5":"1345131958","file3":"1345131946"},"map_files_photo_id_array":[{"photo_id":"1345131958","filename":"file5"},{"photo_id":"1345131933","filename":"file2"},{"photo_id":"1345131952","filename":"file4"},{"photo_id":"1345131914","filename":"file1"},{"photo_id":"1345131909","filename":"file0"},{"photo_id":"1345131946","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345131952":["hashtag1","hashtag2"]},{"1345131946":["hashtag1","hashtag2"]},{"1345131933":["hashtag1","hashtag2"]},{"1345131909":["hashtag1","hashtag2"]},{"1345131914":["hashtag1","hashtag2"]},{"1345131958":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345131952, 1345131946, 1345131933, 1345131909, 1345131914, 1345131958)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.208900690078735 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:46:32.234318
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_53_5716.jpg', 2), ('/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_48_5907.jpg', 2), ('/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_42_6900.jpg', 2), ('/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_23_5807.jpg', 2), ('/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_17_5955.jpg', 2), ('/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_11_5797.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_53_5716.jpg', '/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_48_5907.jpg', '/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_42_6900.jpg', '/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_23_5807.jpg', '/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_17_5955.jpg', '/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_11_5797.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_53_5716.jpg
/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_48_5907.jpg
/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_42_6900.jpg
/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_23_5807.jpg
/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_17_5955.jpg
/home/nano/Desktop/images/18032025/13/46/image_18032025_13_46_11_5797.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345131990","1345131984","1345131978","1345131972","1345132002","1345131997"],"photo_ids_order":["1345131972","1345131978","1345131984","1345131990","1345131997","1345132002"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3fef87fe685fda589a1b1e83b6540102.jpg","text":"TemporaryFile(/tmp/multipartBody3318316604243102530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302052752,"filename":"image_18032025_13_46_23_5807.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3e147f85aa67839e1aee2286d85981ca.jpg","text":"TemporaryFile(/tmp/multipartBody8859503969607718092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302052752,"filename":"image_18032025_13_46_42_6900.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8bbc1be07fb121057af8d7798a434c6c.jpg","text":"TemporaryFile(/tmp/multipartBody7964512036922229673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302052752,"filename":"image_18032025_13_46_48_5907.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/54ccd2e6e852aeaf53ad597126db7419.jpg","text":"TemporaryFile(/tmp/multipartBody5099600602288418214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302052752,"filename":"image_18032025_13_46_53_5716.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/57bd4e0223f4fcebf1c7f35976c7fa43.jpg","text":"TemporaryFile(/tmp/multipartBody4440447512257334610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302052752,"filename":"image_18032025_13_46_11_5797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/59097bc76333cb9e384d8d619dc2fa1c.jpg","text":"TemporaryFile(/tmp/multipartBody4740242831285872101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302052752,"filename":"image_18032025_13_46_17_5955.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345131984","file1":"1345131978","file0":"1345131972","file4":"1345131997","file5":"1345132002","file3":"1345131990"},"map_files_photo_id_array":[{"photo_id":"1345132002","filename":"file5"},{"photo_id":"1345131984","filename":"file2"},{"photo_id":"1345131997","filename":"file4"},{"photo_id":"1345131978","filename":"file1"},{"photo_id":"1345131972","filename":"file0"},{"photo_id":"1345131990","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345131990":["hashtag1","hashtag2"]},{"1345131984":["hashtag1","hashtag2"]},{"1345131978":["hashtag1","hashtag2"]},{"1345131972":["hashtag1","hashtag2"]},{"1345132002":["hashtag1","hashtag2"]},{"1345131997":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345131990, 1345131984, 1345131978, 1345131972, 1345132002, 1345131997)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.97472810745239 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:47:32.394503
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_53_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_35_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_29_5940.jpg', 2), ('/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_18_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_11_5903.jpg', 2), ('/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_06_6048.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_53_5838.jpg', '/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_35_5847.jpg', '/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_29_5940.jpg', '/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_18_6036.jpg', '/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_11_5903.jpg', '/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_06_6048.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_53_5838.jpg
/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_35_5847.jpg
/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_29_5940.jpg
/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_18_6036.jpg
/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_11_5903.jpg
/home/nano/Desktop/images/18032025/13/47/image_18032025_13_47_06_6048.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345132050","1345132047","1345132056","1345132035","1345132031","1345132040"],"photo_ids_order":["1345132031","1345132035","1345132040","1345132047","1345132050","1345132056"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6f6a7b840d62a60ef9e5bd3118427685.jpg","text":"TemporaryFile(/tmp/multipartBody3799281288475168758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302112941,"filename":"image_18032025_13_47_11_5903.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d6c9785379c696072efb237097bde288.jpg","text":"TemporaryFile(/tmp/multipartBody4825213376209379080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302112941,"filename":"image_18032025_13_47_18_6036.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8933eae0389e78c21a1fe10ad912ffce.jpg","text":"TemporaryFile(/tmp/multipartBody7566761789491848164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302112941,"filename":"image_18032025_13_47_06_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aa78e6438def56e4fc8ace947a6ed283.jpg","text":"TemporaryFile(/tmp/multipartBody3055433393189385062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302112941,"filename":"image_18032025_13_47_35_5847.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4250cefbd801faf6c987a1003a3254e.jpg","text":"TemporaryFile(/tmp/multipartBody1947433890435019571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302112941,"filename":"image_18032025_13_47_53_5838.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6eb8406d66a17c0e527cc3fc2138212.jpg","text":"TemporaryFile(/tmp/multipartBody3963744865030082284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302112941,"filename":"image_18032025_13_47_29_5940.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345132040","file1":"1345132035","file0":"1345132031","file4":"1345132050","file5":"1345132056","file3":"1345132047"},"map_files_photo_id_array":[{"photo_id":"1345132056","filename":"file5"},{"photo_id":"1345132040","filename":"file2"},{"photo_id":"1345132050","filename":"file4"},{"photo_id":"1345132035","filename":"file1"},{"photo_id":"1345132031","filename":"file0"},{"photo_id":"1345132047","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345132050":["hashtag1","hashtag2"]},{"1345132047":["hashtag1","hashtag2"]},{"1345132056":["hashtag1","hashtag2"]},{"1345132035":["hashtag1","hashtag2"]},{"1345132031":["hashtag1","hashtag2"]},{"1345132040":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345132050, 1345132047, 1345132056, 1345132035, 1345132031, 1345132040)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.38815879821777 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:48:32.508933
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_54_5815.jpg', 2), ('/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_41_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_35_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_29_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_23_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_17_5969.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_54_5815.jpg', '/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_41_6059.jpg', '/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_35_5789.jpg', '/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_29_5787.jpg', '/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_23_6079.jpg', '/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_17_5969.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_54_5815.jpg
/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_41_6059.jpg
/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_35_5789.jpg
/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_29_5787.jpg
/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_23_6079.jpg
/home/nano/Desktop/images/18032025/13/48/image_18032025_13_48_17_5969.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345132233","1345132212","1345132206","1345132238","1345132226","1345132220"],"photo_ids_order":["1345132206","1345132212","1345132220","1345132226","1345132233","1345132238"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8dedede2c8b8701179631701621b3e6f.jpg","text":"TemporaryFile(/tmp/multipartBody7671544798182960617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302172948,"filename":"image_18032025_13_48_23_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a2b0cf1735f8d8fae6ee0d805f31373.jpg","text":"TemporaryFile(/tmp/multipartBody2272767319516365375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302172948,"filename":"image_18032025_13_48_41_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3d892cc41f07adb0785e82e8250b60c.jpg","text":"TemporaryFile(/tmp/multipartBody5950957060707745430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302172948,"filename":"image_18032025_13_48_54_5815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/77023d7bebed311f97ee4e23e4325006.jpg","text":"TemporaryFile(/tmp/multipartBody2726012148746648436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302172948,"filename":"image_18032025_13_48_17_5969.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/61cba0f631e0f5dc6c31793cc860333f.jpg","text":"TemporaryFile(/tmp/multipartBody5443597074840627374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302172948,"filename":"image_18032025_13_48_29_5787.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4e8f31e07a90e5f65888b23bf8ee61d5.jpg","text":"TemporaryFile(/tmp/multipartBody6943698072418561394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302172948,"filename":"image_18032025_13_48_35_5789.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345132220","file1":"1345132212","file0":"1345132206","file4":"1345132233","file5":"1345132238","file3":"1345132226"},"map_files_photo_id_array":[{"photo_id":"1345132238","filename":"file5"},{"photo_id":"1345132220","filename":"file2"},{"photo_id":"1345132233","filename":"file4"},{"photo_id":"1345132212","filename":"file1"},{"photo_id":"1345132206","filename":"file0"},{"photo_id":"1345132226","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345132233":["hashtag1","hashtag2"]},{"1345132212":["hashtag1","hashtag2"]},{"1345132206":["hashtag1","hashtag2"]},{"1345132238":["hashtag1","hashtag2"]},{"1345132226":["hashtag1","hashtag2"]},{"1345132220":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345132233, 1345132212, 1345132206, 1345132238, 1345132226, 1345132220)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.00232267379761 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:49:32.629284
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_53_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_48_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_36_6633.jpg', 2), ('/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_29_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_23_5643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_53_5627.jpg', '/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_48_6642.jpg', '/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_41_5630.jpg', '/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_36_6633.jpg', '/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_29_5653.jpg', '/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_23_5643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_53_5627.jpg
/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_48_6642.jpg
/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_41_5630.jpg
/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_36_6633.jpg
/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_29_5653.jpg
/home/nano/Desktop/images/18032025/13/49/image_18032025_13_49_23_5643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345132260","1345132323","1345132272","1345132266","1345132316","1345132288"],"photo_ids_order":["1345132260","1345132266","1345132272","1345132288","1345132316","1345132323"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/37c9628e6ff5dfa28f5386ab4f5e1efb.jpg","text":"TemporaryFile(/tmp/multipartBody4499252003128508273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302232981,"filename":"image_18032025_13_49_53_5627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/078ac53e7bb0d9ae1ff04fd8a6fb9ca6.jpg","text":"TemporaryFile(/tmp/multipartBody8860661329310955030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302232981,"filename":"image_18032025_13_49_23_5643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd2a1666708b48d3efb174cb89ebcfd1.jpg","text":"TemporaryFile(/tmp/multipartBody1716709356980844881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302232981,"filename":"image_18032025_13_49_41_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a35466c9f580c4d6c0a2a8708e7c7036.jpg","text":"TemporaryFile(/tmp/multipartBody3216334725567201243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302232981,"filename":"image_18032025_13_49_48_6642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf1eaf76185bbf8fdf6247de5571459c.jpg","text":"TemporaryFile(/tmp/multipartBody6919552146616677862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302232981,"filename":"image_18032025_13_49_29_5653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/df1fdf2b414e8202cbcbe298d3dabcfb.jpg","text":"TemporaryFile(/tmp/multipartBody3725524208738127960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302232981,"filename":"image_18032025_13_49_36_6633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345132272","file1":"1345132266","file0":"1345132260","file4":"1345132316","file5":"1345132323","file3":"1345132288"},"map_files_photo_id_array":[{"photo_id":"1345132323","filename":"file5"},{"photo_id":"1345132272","filename":"file2"},{"photo_id":"1345132316","filename":"file4"},{"photo_id":"1345132266","filename":"file1"},{"photo_id":"1345132260","filename":"file0"},{"photo_id":"1345132288","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345132260":["hashtag1","hashtag2"]},{"1345132323":["hashtag1","hashtag2"]},{"1345132272":["hashtag1","hashtag2"]},{"1345132266":["hashtag1","hashtag2"]},{"1345132316":["hashtag1","hashtag2"]},{"1345132288":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345132260, 1345132323, 1345132272, 1345132266, 1345132316, 1345132288)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.968948364257812 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:50:32.726195
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_53_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_48_5775.jpg', 2), ('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_42_6869.jpg', 2), ('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_35_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_29_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_24_6636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_53_5886.jpg', '/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_48_5775.jpg', '/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_42_6869.jpg', '/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_35_5634.jpg', '/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_29_5632.jpg', '/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_24_6636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_53_5886.jpg
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_48_5775.jpg
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_42_6869.jpg
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_35_5634.jpg
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_29_5632.jpg
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_24_6636.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3123512268066406 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:51:02.326928
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_53_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_48_5775.jpg', 2), ('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_42_6869.jpg', 2), ('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_35_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_29_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_24_6636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_53_5886.jpg', '/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_48_5775.jpg', '/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_42_6869.jpg', '/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_35_5634.jpg', '/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_29_5632.jpg', '/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_24_6636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_53_5886.jpg
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_48_5775.jpg
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_42_6869.jpg
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_35_5634.jpg
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_29_5632.jpg
/home/nano/Desktop/images/18032025/13/50/image_18032025_13_50_24_6636.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345132425","1345132427","1345132415","1345132418","1345132420","1345132423"],"photo_ids_order":["1345132415","1345132418","1345132420","1345132423","1345132425","1345132427"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a685949f9f959720d5aa05f4f8796c1a.jpg","text":"TemporaryFile(/tmp/multipartBody1811302335658197191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302322768,"filename":"image_18032025_13_50_29_5632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0c2cdf4a1c0b0dddafc79d15537cfc6.jpg","text":"TemporaryFile(/tmp/multipartBody3315074306787249448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302322768,"filename":"image_18032025_13_50_24_6636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d37de64da025c5bd7a8417c42851da4c.jpg","text":"TemporaryFile(/tmp/multipartBody826000581327495038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302322768,"filename":"image_18032025_13_50_53_5886.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b27355c274fc1d3a684f40ce915cdefb.jpg","text":"TemporaryFile(/tmp/multipartBody5565208457579363394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302322768,"filename":"image_18032025_13_50_48_5775.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/000d0a7009db0fca0d070598d74a9042.jpg","text":"TemporaryFile(/tmp/multipartBody6402678466831358540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302322768,"filename":"image_18032025_13_50_42_6869.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/55cd4390669af218421322f673aa06df.jpg","text":"TemporaryFile(/tmp/multipartBody2148781771052464988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302322768,"filename":"image_18032025_13_50_35_5634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345132420","file1":"1345132418","file0":"1345132415","file4":"1345132425","file5":"1345132427","file3":"1345132423"},"map_files_photo_id_array":[{"photo_id":"1345132427","filename":"file5"},{"photo_id":"1345132420","filename":"file2"},{"photo_id":"1345132425","filename":"file4"},{"photo_id":"1345132418","filename":"file1"},{"photo_id":"1345132415","filename":"file0"},{"photo_id":"1345132423","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345132425":["hashtag1","hashtag2"]},{"1345132427":["hashtag1","hashtag2"]},{"1345132415":["hashtag1","hashtag2"]},{"1345132418":["hashtag1","hashtag2"]},{"1345132420":["hashtag1","hashtag2"]},{"1345132423":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345132425, 1345132427, 1345132415, 1345132418, 1345132420, 1345132423)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.478758573532104 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:52:02.601532
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_54_5859.jpg', 2), ('/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_48_6979.jpg', 2), ('/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_41_5153.jpg', 2), ('/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_36_6196.jpg', 2), ('/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_29_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_24_6830.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_54_5859.jpg', '/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_48_6979.jpg', '/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_41_5153.jpg', '/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_36_6196.jpg', '/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_29_5794.jpg', '/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_24_6830.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_54_5859.jpg
/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_48_6979.jpg
/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_41_5153.jpg
/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_36_6196.jpg
/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_29_5794.jpg
/home/nano/Desktop/images/18032025/13/51/image_18032025_13_51_24_6830.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345132656","1345132521","1345132611","1345132583","1345132646","1345132621"],"photo_ids_order":["1345132521","1345132583","1345132611","1345132621","1345132646","1345132656"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e90426723898393dde927f82f2c299df.jpg","text":"TemporaryFile(/tmp/multipartBody5796602464018387358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302383113,"filename":"image_18032025_13_51_24_6830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b7b13bebedea83910ccea8a1408c52f5.jpg","text":"TemporaryFile(/tmp/multipartBody4987094775946100343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302383113,"filename":"image_18032025_13_51_54_5859.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63b0f04969e18c811f53ca606f7ca691.jpg","text":"TemporaryFile(/tmp/multipartBody784196622824610654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302383113,"filename":"image_18032025_13_51_41_5153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/25cfe547082b9be3d247069bba6fa124.jpg","text":"TemporaryFile(/tmp/multipartBody4358338664301199493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302383113,"filename":"image_18032025_13_51_48_6979.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/788ba1e336ca6ec28665e9406ec7dc98.jpg","text":"TemporaryFile(/tmp/multipartBody2231738721936325198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302383113,"filename":"image_18032025_13_51_29_5794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/032b78e30c152104990dd1a4bbcd20dc.jpg","text":"TemporaryFile(/tmp/multipartBody7012819937589837640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302383113,"filename":"image_18032025_13_51_36_6196.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345132611","file1":"1345132583","file0":"1345132521","file4":"1345132646","file5":"1345132656","file3":"1345132621"},"map_files_photo_id_array":[{"photo_id":"1345132656","filename":"file5"},{"photo_id":"1345132611","filename":"file2"},{"photo_id":"1345132646","filename":"file4"},{"photo_id":"1345132583","filename":"file1"},{"photo_id":"1345132521","filename":"file0"},{"photo_id":"1345132621","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345132656":["hashtag1","hashtag2"]},{"1345132521":["hashtag1","hashtag2"]},{"1345132611":["hashtag1","hashtag2"]},{"1345132583":["hashtag1","hashtag2"]},{"1345132646":["hashtag1","hashtag2"]},{"1345132621":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345132656, 1345132521, 1345132611, 1345132583, 1345132646, 1345132621)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.27498507499695 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:53:02.852220
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_53_5824.jpg', 2), ('/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_47_5806.jpg', 2), ('/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_42_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_36_6781.jpg', 2), ('/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_29_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_23_5895.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_53_5824.jpg', '/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_47_5806.jpg', '/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_42_5878.jpg', '/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_36_6781.jpg', '/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_29_6051.jpg', '/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_23_5895.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_53_5824.jpg
/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_47_5806.jpg
/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_42_5878.jpg
/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_36_6781.jpg
/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_29_6051.jpg
/home/nano/Desktop/images/18032025/13/52/image_18032025_13_52_23_5895.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345132692","1345132689","1345132682","1345132676","1345132685","1345132679"],"photo_ids_order":["1345132676","1345132679","1345132682","1345132685","1345132689","1345132692"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4876d4f73297911b17b1ed24c5a2c55a.jpg","text":"TemporaryFile(/tmp/multipartBody3457902392779617179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302443349,"filename":"image_18032025_13_52_23_5895.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d2a689c0adc386fb76caa5f41b4f7f11.jpg","text":"TemporaryFile(/tmp/multipartBody1069812202069489104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302443349,"filename":"image_18032025_13_52_29_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/98a8b8d7617dbc7693ed1dae89f30f28.jpg","text":"TemporaryFile(/tmp/multipartBody1848488125800125534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302443349,"filename":"image_18032025_13_52_42_5878.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1021eaa5fb1b8b8068e93f8b70c88f0f.jpg","text":"TemporaryFile(/tmp/multipartBody1668934759839175284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302443349,"filename":"image_18032025_13_52_53_5824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd77e621e91f1bb1e5b872ecddda67b5.jpg","text":"TemporaryFile(/tmp/multipartBody8822272970835064854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302443349,"filename":"image_18032025_13_52_36_6781.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2550fc73685703c8e00cc6359ef43803.jpg","text":"TemporaryFile(/tmp/multipartBody1244618868367439331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302443349,"filename":"image_18032025_13_52_47_5806.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345132682","file1":"1345132679","file0":"1345132676","file4":"1345132689","file5":"1345132692","file3":"1345132685"},"map_files_photo_id_array":[{"photo_id":"1345132692","filename":"file5"},{"photo_id":"1345132682","filename":"file2"},{"photo_id":"1345132689","filename":"file4"},{"photo_id":"1345132679","filename":"file1"},{"photo_id":"1345132676","filename":"file0"},{"photo_id":"1345132685","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345132692":["hashtag1","hashtag2"]},{"1345132689":["hashtag1","hashtag2"]},{"1345132682":["hashtag1","hashtag2"]},{"1345132676":["hashtag1","hashtag2"]},{"1345132685":["hashtag1","hashtag2"]},{"1345132679":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345132692, 1345132689, 1345132682, 1345132676, 1345132685, 1345132679)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.41369366645813 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:54:03.344221
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_54_6681.jpg', 2), ('/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_47_5680.jpg', 2), ('/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_41_5837.jpg', 2), ('/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_35_5756.jpg', 2), ('/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_30_6800.jpg', 2), ('/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_23_5791.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_54_6681.jpg', '/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_47_5680.jpg', '/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_41_5837.jpg', '/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_35_5756.jpg', '/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_30_6800.jpg', '/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_23_5791.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_54_6681.jpg
/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_47_5680.jpg
/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_41_5837.jpg
/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_35_5756.jpg
/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_30_6800.jpg
/home/nano/Desktop/images/18032025/13/53/image_18032025_13_53_23_5791.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345132737","1345132739","1345132735","1345132729","1345132732","1345132726"],"photo_ids_order":["1345132726","1345132729","1345132732","1345132735","1345132737","1345132739"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b8bca552e28eec04beb849cd1cddaae.jpg","text":"TemporaryFile(/tmp/multipartBody3786012621566113843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302503747,"filename":"image_18032025_13_53_30_6800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8dc43f0e10e9de6899abd1470586d7f4.jpg","text":"TemporaryFile(/tmp/multipartBody5469884745123300143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302503747,"filename":"image_18032025_13_53_23_5791.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/96d5be4b68926a6d3992eb541b8f92b4.jpg","text":"TemporaryFile(/tmp/multipartBody6428679818705979540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302503747,"filename":"image_18032025_13_53_35_5756.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9d676af424979599d301f52565a5519a.jpg","text":"TemporaryFile(/tmp/multipartBody1291960303680403458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302503747,"filename":"image_18032025_13_53_47_5680.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2edf866a0da2babe677cd155c0c59f9.jpg","text":"TemporaryFile(/tmp/multipartBody4301378361047550491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302503747,"filename":"image_18032025_13_53_41_5837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d0c13f561447528e860b09f3f3cd92ae.jpg","text":"TemporaryFile(/tmp/multipartBody9154443868426992407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302503747,"filename":"image_18032025_13_53_54_6681.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345132732","file1":"1345132729","file0":"1345132726","file4":"1345132737","file5":"1345132739","file3":"1345132735"},"map_files_photo_id_array":[{"photo_id":"1345132739","filename":"file5"},{"photo_id":"1345132732","filename":"file2"},{"photo_id":"1345132737","filename":"file4"},{"photo_id":"1345132729","filename":"file1"},{"photo_id":"1345132726","filename":"file0"},{"photo_id":"1345132735","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345132737":["hashtag1","hashtag2"]},{"1345132739":["hashtag1","hashtag2"]},{"1345132735":["hashtag1","hashtag2"]},{"1345132729":["hashtag1","hashtag2"]},{"1345132732":["hashtag1","hashtag2"]},{"1345132726":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345132737, 1345132739, 1345132735, 1345132729, 1345132732, 1345132726)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.663369178771973 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:55:03.127635
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_53_5702.jpg', 2), ('/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_47_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_42_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_35_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_29_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_24_6653.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_53_5702.jpg', '/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_47_5640.jpg', '/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_42_6651.jpg', '/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_35_5647.jpg', '/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_29_5633.jpg', '/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_24_6653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_53_5702.jpg
/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_47_5640.jpg
/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_42_6651.jpg
/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_35_5647.jpg
/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_29_5633.jpg
/home/nano/Desktop/images/18032025/13/54/image_18032025_13_54_24_6653.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345132791","1345132869","1345132818","1345132891","1345132774","1345132843"],"photo_ids_order":["1345132774","1345132791","1345132818","1345132843","1345132869","1345132891"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ed71d4b2e5726f454c41b9c4c2d95481.jpg","text":"TemporaryFile(/tmp/multipartBody8083817889452456066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302563490,"filename":"image_18032025_13_54_47_5640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c8a946a23426f49fcee845f7139067b2.jpg","text":"TemporaryFile(/tmp/multipartBody7026792087967052340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302563490,"filename":"image_18032025_13_54_29_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a5afa7bfe16364f3f94ab6ba8ac6c72b.jpg","text":"TemporaryFile(/tmp/multipartBody8393601649337154831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302563490,"filename":"image_18032025_13_54_42_6651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c99755c19f22a9a327fccd30fcb0d8a.jpg","text":"TemporaryFile(/tmp/multipartBody2404855088974586917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302563490,"filename":"image_18032025_13_54_24_6653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f0980654e0d94e55ceb943914a2428ac.jpg","text":"TemporaryFile(/tmp/multipartBody128635297069433781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302563490,"filename":"image_18032025_13_54_53_5702.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5cc5304adf8adce79f902879a0afd402.jpg","text":"TemporaryFile(/tmp/multipartBody6006432542771581072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302563490,"filename":"image_18032025_13_54_35_5647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345132818","file1":"1345132791","file0":"1345132774","file4":"1345132869","file5":"1345132891","file3":"1345132843"},"map_files_photo_id_array":[{"photo_id":"1345132891","filename":"file5"},{"photo_id":"1345132818","filename":"file2"},{"photo_id":"1345132869","filename":"file4"},{"photo_id":"1345132791","filename":"file1"},{"photo_id":"1345132774","filename":"file0"},{"photo_id":"1345132843","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345132791":["hashtag1","hashtag2"]},{"1345132869":["hashtag1","hashtag2"]},{"1345132818":["hashtag1","hashtag2"]},{"1345132891":["hashtag1","hashtag2"]},{"1345132774":["hashtag1","hashtag2"]},{"1345132843":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345132791, 1345132869, 1345132818, 1345132891, 1345132774, 1345132843)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.5126690864563 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:56:03.111104
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_53_5768.jpg', 2), ('/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_48_6736.jpg', 2), ('/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_41_5849.jpg', 2), ('/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_35_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_29_5703.jpg', 2), ('/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_23_5719.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_53_5768.jpg', '/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_48_6736.jpg', '/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_41_5849.jpg', '/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_35_6007.jpg', '/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_29_5703.jpg', '/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_23_5719.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_53_5768.jpg
/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_48_6736.jpg
/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_41_5849.jpg
/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_35_6007.jpg
/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_29_5703.jpg
/home/nano/Desktop/images/18032025/13/55/image_18032025_13_55_23_5719.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345133217","1345133139","1345133165","1345133108","1345133191","1345133224"],"photo_ids_order":["1345133108","1345133139","1345133165","1345133191","1345133217","1345133224"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/75c53e52bf67d16f6c19ff43891542d1.jpg","text":"TemporaryFile(/tmp/multipartBody8682786669570872444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302623509,"filename":"image_18032025_13_55_29_5703.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/018f2c7ab447548d627c62736ea2c61e.jpg","text":"TemporaryFile(/tmp/multipartBody6397057946063113441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302623509,"filename":"image_18032025_13_55_48_6736.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/622c68a87f825858ad1d420bb8346b43.jpg","text":"TemporaryFile(/tmp/multipartBody5373306925971211208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302623509,"filename":"image_18032025_13_55_41_5849.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/949ee6742dcc92929c36042fd9dca143.jpg","text":"TemporaryFile(/tmp/multipartBody5756240867058113090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302623509,"filename":"image_18032025_13_55_53_5768.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5c070e7be73e87a8d74c0eebb15d2a97.jpg","text":"TemporaryFile(/tmp/multipartBody2838929187871288885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302623509,"filename":"image_18032025_13_55_35_6007.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a6c87ada138f6546e677cc3a65e9eb75.jpg","text":"TemporaryFile(/tmp/multipartBody8365707316120979263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302623509,"filename":"image_18032025_13_55_23_5719.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345133165","file1":"1345133139","file0":"1345133108","file4":"1345133217","file5":"1345133224","file3":"1345133191"},"map_files_photo_id_array":[{"photo_id":"1345133224","filename":"file5"},{"photo_id":"1345133165","filename":"file2"},{"photo_id":"1345133217","filename":"file4"},{"photo_id":"1345133139","filename":"file1"},{"photo_id":"1345133108","filename":"file0"},{"photo_id":"1345133191","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345133217":["hashtag1","hashtag2"]},{"1345133139":["hashtag1","hashtag2"]},{"1345133165":["hashtag1","hashtag2"]},{"1345133108":["hashtag1","hashtag2"]},{"1345133191":["hashtag1","hashtag2"]},{"1345133224":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345133217, 1345133139, 1345133165, 1345133108, 1345133191, 1345133224)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.125270128250122 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:57:03.196607
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_54_6774.jpg', 2), ('/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_47_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_41_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_35_5753.jpg', 2), ('/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_30_6750.jpg', 2), ('/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_23_5789.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_54_6774.jpg', '/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_47_5757.jpg', '/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_41_5781.jpg', '/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_35_5753.jpg', '/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_30_6750.jpg', '/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_23_5789.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_54_6774.jpg
/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_47_5757.jpg
/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_41_5781.jpg
/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_35_5753.jpg
/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_30_6750.jpg
/home/nano/Desktop/images/18032025/13/56/image_18032025_13_56_23_5789.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345133660","1345133344","1345133419","1345133598","1345133509","1345133658"],"photo_ids_order":["1345133344","1345133419","1345133509","1345133598","1345133658","1345133660"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/698531d195d4b8c779c9f58581de8fbc.jpg","text":"TemporaryFile(/tmp/multipartBody2374948592551730574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302683618,"filename":"image_18032025_13_56_23_5789.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a6b965a9a31840a18ec25bd853f92be.jpg","text":"TemporaryFile(/tmp/multipartBody6475582946277623105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302683618,"filename":"image_18032025_13_56_54_6774.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/78258b91dc243fee86b4efd2b8347631.jpg","text":"TemporaryFile(/tmp/multipartBody1067749579634592391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302683618,"filename":"image_18032025_13_56_47_5757.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/26ecca3f087187a82f64fa87dd1a46d4.jpg","text":"TemporaryFile(/tmp/multipartBody4146457154047307327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302683618,"filename":"image_18032025_13_56_35_5753.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fef3b46f7b35ba28fc93ed8e8049b4d5.jpg","text":"TemporaryFile(/tmp/multipartBody3594701232079211975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302683618,"filename":"image_18032025_13_56_41_5781.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/37b98795a28cfcb93621819cc563092b.jpg","text":"TemporaryFile(/tmp/multipartBody2579775626456867968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302683618,"filename":"image_18032025_13_56_30_6750.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345133509","file1":"1345133419","file0":"1345133344","file4":"1345133658","file5":"1345133660","file3":"1345133598"},"map_files_photo_id_array":[{"photo_id":"1345133660","filename":"file5"},{"photo_id":"1345133509","filename":"file2"},{"photo_id":"1345133658","filename":"file4"},{"photo_id":"1345133419","filename":"file1"},{"photo_id":"1345133344","filename":"file0"},{"photo_id":"1345133598","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345133660":["hashtag1","hashtag2"]},{"1345133344":["hashtag1","hashtag2"]},{"1345133419":["hashtag1","hashtag2"]},{"1345133598":["hashtag1","hashtag2"]},{"1345133509":["hashtag1","hashtag2"]},{"1345133658":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345133660, 1345133344, 1345133419, 1345133598, 1345133509, 1345133658)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.844640016555786 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:58:02.275749
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_53_5687.jpg', 2), ('/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_47_5978.jpg', 2), ('/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_41_5792.jpg', 2), ('/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_35_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_30_5720.jpg', 2), ('/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_24_6787.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_53_5687.jpg', '/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_47_5978.jpg', '/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_41_5792.jpg', '/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_35_5833.jpg', '/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_30_5720.jpg', '/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_24_6787.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_53_5687.jpg
/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_47_5978.jpg
/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_41_5792.jpg
/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_35_5833.jpg
/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_30_5720.jpg
/home/nano/Desktop/images/18032025/13/57/image_18032025_13_57_24_6787.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345133811","1345133819","1345133813","1345133815","1345133809","1345133817"],"photo_ids_order":["1345133809","1345133811","1345133813","1345133815","1345133817","1345133819"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9a0358c798e440dae266055ea0692519.jpg","text":"TemporaryFile(/tmp/multipartBody8395342020414743568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302742778,"filename":"image_18032025_13_57_47_5978.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7a085b03ee0b5a2862bfc2382d71e520.jpg","text":"TemporaryFile(/tmp/multipartBody5475656366737476970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302742778,"filename":"image_18032025_13_57_24_6787.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b039e8488b6337a02ff3bcf7d1d7d038.jpg","text":"TemporaryFile(/tmp/multipartBody845034354809873146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302742778,"filename":"image_18032025_13_57_41_5792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad842acf7982b7c5e442c80c26d0e88e.jpg","text":"TemporaryFile(/tmp/multipartBody6326438618900382179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302742778,"filename":"image_18032025_13_57_35_5833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95e7a27bafc3ad63780330c55c2cacb3.jpg","text":"TemporaryFile(/tmp/multipartBody2673871136840309719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302742778,"filename":"image_18032025_13_57_53_5687.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3915e9557251dcfd4b4806b4577b2c86.jpg","text":"TemporaryFile(/tmp/multipartBody1809582229657473277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302742778,"filename":"image_18032025_13_57_30_5720.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345133813","file1":"1345133811","file0":"1345133809","file4":"1345133817","file5":"1345133819","file3":"1345133815"},"map_files_photo_id_array":[{"photo_id":"1345133819","filename":"file5"},{"photo_id":"1345133813","filename":"file2"},{"photo_id":"1345133817","filename":"file4"},{"photo_id":"1345133811","filename":"file1"},{"photo_id":"1345133809","filename":"file0"},{"photo_id":"1345133815","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345133811":["hashtag1","hashtag2"]},{"1345133819":["hashtag1","hashtag2"]},{"1345133813":["hashtag1","hashtag2"]},{"1345133815":["hashtag1","hashtag2"]},{"1345133809":["hashtag1","hashtag2"]},{"1345133817":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345133811, 1345133819, 1345133813, 1345133815, 1345133809, 1345133817)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.650086164474487 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 13:59:02.695180
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_47_5735.jpg', 2), ('/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_41_5712.jpg', 2), ('/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_35_5728.jpg', 2), ('/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_30_6818.jpg', 2), ('/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_23_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_17_5906.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_47_5735.jpg', '/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_41_5712.jpg', '/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_35_5728.jpg', '/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_30_6818.jpg', '/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_23_5834.jpg', '/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_17_5906.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_47_5735.jpg
/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_41_5712.jpg
/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_35_5728.jpg
/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_30_6818.jpg
/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_23_5834.jpg
/home/nano/Desktop/images/18032025/13/58/image_18032025_13_58_17_5906.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345134251","1345134227","1345133969","1345134178","1345134287","1345133838"],"photo_ids_order":["1345133838","1345133969","1345134178","1345134227","1345134251","1345134287"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0721d830d2da4bd5aa7319ead19f6dda.jpg","text":"TemporaryFile(/tmp/multipartBody6889824814655365629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302803134,"filename":"image_18032025_13_58_23_5834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4cdb9d00f1aae6f99e2a9b5038f366ad.jpg","text":"TemporaryFile(/tmp/multipartBody4646833843702590107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302803134,"filename":"image_18032025_13_58_30_6818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/463190642e86285991be8642525cd8f3.jpg","text":"TemporaryFile(/tmp/multipartBody8616885769800885142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302803134,"filename":"image_18032025_13_58_41_5712.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/467df4b18edf8b7582dbfa1f04003de3.jpg","text":"TemporaryFile(/tmp/multipartBody459941382617281491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302803134,"filename":"image_18032025_13_58_35_5728.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5c7a47f0e272d3e0861b6e765bf8329c.jpg","text":"TemporaryFile(/tmp/multipartBody9053246035030503065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302803134,"filename":"image_18032025_13_58_17_5906.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6ad43672d498f6bfe54c03653d98f05.jpg","text":"TemporaryFile(/tmp/multipartBody3814088555993527206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302803134,"filename":"image_18032025_13_58_47_5735.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345134178","file1":"1345133969","file0":"1345133838","file4":"1345134251","file5":"1345134287","file3":"1345134227"},"map_files_photo_id_array":[{"photo_id":"1345134287","filename":"file5"},{"photo_id":"1345134178","filename":"file2"},{"photo_id":"1345134251","filename":"file4"},{"photo_id":"1345133969","filename":"file1"},{"photo_id":"1345133838","filename":"file0"},{"photo_id":"1345134227","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345134251":["hashtag1","hashtag2"]},{"1345134227":["hashtag1","hashtag2"]},{"1345133969":["hashtag1","hashtag2"]},{"1345134178":["hashtag1","hashtag2"]},{"1345134287":["hashtag1","hashtag2"]},{"1345133838":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345134251, 1345134227, 1345133969, 1345134178, 1345134287, 1345133838)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.779223918914795 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:00:02.635456
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_47_5933.jpg', 2), ('/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_41_5740.jpg', 2), ('/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_36_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_29_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_23_5587.jpg', 2), ('/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_18_6615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_47_5933.jpg', '/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_41_5740.jpg', '/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_36_6646.jpg', '/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_29_5652.jpg', '/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_23_5587.jpg', '/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_18_6615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_47_5933.jpg
/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_41_5740.jpg
/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_36_6646.jpg
/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_29_5652.jpg
/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_23_5587.jpg
/home/nano/Desktop/images/18032025/13/59/image_18032025_13_59_18_6615.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345134437","1345134422","1345134432","1345134426","1345134429","1345134417"],"photo_ids_order":["1345134417","1345134422","1345134426","1345134429","1345134432","1345134437"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4edc116347f4ba55b7ba2096422713dc.jpg","text":"TemporaryFile(/tmp/multipartBody5795295085161009161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302863011,"filename":"image_18032025_13_59_18_6615.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/11e2ccead35f8156f43d8b24a54ade21.jpg","text":"TemporaryFile(/tmp/multipartBody2212195599610689760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302863011,"filename":"image_18032025_13_59_41_5740.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d839d6ce190bb090341ae737bc205d0.jpg","text":"TemporaryFile(/tmp/multipartBody3236462441453927394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302863011,"filename":"image_18032025_13_59_23_5587.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6af065dd7be6542c48186688c565c0ae.jpg","text":"TemporaryFile(/tmp/multipartBody174668148047254525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302863011,"filename":"image_18032025_13_59_36_6646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c405fe0ca0e830b9c827126ef081394b.jpg","text":"TemporaryFile(/tmp/multipartBody1099910799187555339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302863011,"filename":"image_18032025_13_59_29_5652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd49e657b4668ef93e50734ee028ef58.jpg","text":"TemporaryFile(/tmp/multipartBody7548122010195872716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302863011,"filename":"image_18032025_13_59_47_5933.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345134426","file1":"1345134422","file0":"1345134417","file4":"1345134432","file5":"1345134437","file3":"1345134429"},"map_files_photo_id_array":[{"photo_id":"1345134437","filename":"file5"},{"photo_id":"1345134426","filename":"file2"},{"photo_id":"1345134432","filename":"file4"},{"photo_id":"1345134422","filename":"file1"},{"photo_id":"1345134417","filename":"file0"},{"photo_id":"1345134429","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345134437":["hashtag1","hashtag2"]},{"1345134422":["hashtag1","hashtag2"]},{"1345134432":["hashtag1","hashtag2"]},{"1345134426":["hashtag1","hashtag2"]},{"1345134429":["hashtag1","hashtag2"]},{"1345134417":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345134437, 1345134422, 1345134432, 1345134426, 1345134429, 1345134417)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.37905979156494 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:01:02.649753
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_53_5836.jpg', 2), ('/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_47_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_41_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_35_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_30_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_24_5995.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_53_5836.jpg', '/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_47_5856.jpg', '/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_41_5854.jpg', '/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_35_5773.jpg', '/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_30_5875.jpg', '/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_24_5995.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_53_5836.jpg
/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_47_5856.jpg
/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_41_5854.jpg
/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_35_5773.jpg
/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_30_5875.jpg
/home/nano/Desktop/images/18032025/14/00/image_18032025_14_00_24_5995.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345134473","1345134461","1345134463","1345134466","1345134457","1345134470"],"photo_ids_order":["1345134457","1345134461","1345134463","1345134466","1345134470","1345134473"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/efb3ed40c8cf586e3c5882b0ddb5ebd1.jpg","text":"TemporaryFile(/tmp/multipartBody3601117108286483373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302923070,"filename":"image_18032025_14_00_24_5995.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47ab20b1e82394bfb7a8f3b0ee4d1232.jpg","text":"TemporaryFile(/tmp/multipartBody2566635251237568018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302923070,"filename":"image_18032025_14_00_47_5856.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/53811b22be033bff8a9c2cf84561d6aa.jpg","text":"TemporaryFile(/tmp/multipartBody5626741755555408427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302923070,"filename":"image_18032025_14_00_41_5854.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5685651834ae149ea6df7f7f15a8a8f.jpg","text":"TemporaryFile(/tmp/multipartBody3320414392399047931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302923070,"filename":"image_18032025_14_00_35_5773.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a734ae825aff8f8dc410e3bd822143c.jpg","text":"TemporaryFile(/tmp/multipartBody3670853329533235371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302923070,"filename":"image_18032025_14_00_53_5836.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dcd312ab556245b851730692d16a303b.jpg","text":"TemporaryFile(/tmp/multipartBody5631771834634284020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302923070,"filename":"image_18032025_14_00_30_5875.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345134463","file1":"1345134461","file0":"1345134457","file4":"1345134470","file5":"1345134473","file3":"1345134466"},"map_files_photo_id_array":[{"photo_id":"1345134473","filename":"file5"},{"photo_id":"1345134463","filename":"file2"},{"photo_id":"1345134470","filename":"file4"},{"photo_id":"1345134461","filename":"file1"},{"photo_id":"1345134457","filename":"file0"},{"photo_id":"1345134466","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345134473":["hashtag1","hashtag2"]},{"1345134461":["hashtag1","hashtag2"]},{"1345134463":["hashtag1","hashtag2"]},{"1345134466":["hashtag1","hashtag2"]},{"1345134457":["hashtag1","hashtag2"]},{"1345134470":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345134473, 1345134461, 1345134463, 1345134466, 1345134457, 1345134470)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.262635231018066 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:02:02.689434
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_47_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_41_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_35_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_29_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_23_5893.jpg', 2), ('/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_17_6091.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_47_6056.jpg', '/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_41_5864.jpg', '/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_35_6042.jpg', '/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_29_5834.jpg', '/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_23_5893.jpg', '/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_17_6091.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_47_6056.jpg
/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_41_5864.jpg
/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_35_6042.jpg
/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_29_5834.jpg
/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_23_5893.jpg
/home/nano/Desktop/images/18032025/14/01/image_18032025_14_01_17_6091.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345134503","1345134506","1345134509","1345134500","1345134513","1345134497"],"photo_ids_order":["1345134497","1345134500","1345134503","1345134506","1345134509","1345134513"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/22a22b9527a06dff23b785e9f1c5bd19.jpg","text":"TemporaryFile(/tmp/multipartBody7397789018087190984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302983123,"filename":"image_18032025_14_01_35_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/75c49e8cd7164a88e16faa6a77e4225a.jpg","text":"TemporaryFile(/tmp/multipartBody6198096564265540016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302983123,"filename":"image_18032025_14_01_29_5834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6b66a47c95bade72e25afa322f19e1e8.jpg","text":"TemporaryFile(/tmp/multipartBody1669946231685469490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302983123,"filename":"image_18032025_14_01_23_5893.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d461f66bbdb55f59c88fd36527fe884c.jpg","text":"TemporaryFile(/tmp/multipartBody6563770714941003072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302983123,"filename":"image_18032025_14_01_41_5864.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/25cdf519255c1bf0aa7fb6b3fd9edd9c.jpg","text":"TemporaryFile(/tmp/multipartBody7915753749315123298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302983123,"filename":"image_18032025_14_01_17_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/989b0258a006d7f90a1dcec7efb6b305.jpg","text":"TemporaryFile(/tmp/multipartBody348239435866356178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742302983123,"filename":"image_18032025_14_01_47_6056.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345134503","file1":"1345134500","file0":"1345134497","file4":"1345134509","file5":"1345134513","file3":"1345134506"},"map_files_photo_id_array":[{"photo_id":"1345134513","filename":"file5"},{"photo_id":"1345134503","filename":"file2"},{"photo_id":"1345134509","filename":"file4"},{"photo_id":"1345134500","filename":"file1"},{"photo_id":"1345134497","filename":"file0"},{"photo_id":"1345134506","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345134503":["hashtag1","hashtag2"]},{"1345134506":["hashtag1","hashtag2"]},{"1345134509":["hashtag1","hashtag2"]},{"1345134500":["hashtag1","hashtag2"]},{"1345134513":["hashtag1","hashtag2"]},{"1345134497":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345134503, 1345134506, 1345134509, 1345134500, 1345134513, 1345134497)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.828428983688354 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:03:02.916355
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_53_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_47_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_41_5946.jpg', 2), ('/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_35_5996.jpg', 2), ('/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_29_5938.jpg', 2), ('/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_23_5721.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_53_6054.jpg', '/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_47_6013.jpg', '/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_41_5946.jpg', '/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_35_5996.jpg', '/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_29_5938.jpg', '/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_23_5721.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_53_6054.jpg
/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_47_6013.jpg
/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_41_5946.jpg
/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_35_5996.jpg
/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_29_5938.jpg
/home/nano/Desktop/images/18032025/14/02/image_18032025_14_02_23_5721.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345134548","1345134559","1345134574","1345134568","1345134585","1345134579"],"photo_ids_order":["1345134548","1345134559","1345134568","1345134574","1345134579","1345134585"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85c4395d31650d02f810bab653605729.jpg","text":"TemporaryFile(/tmp/multipartBody3778430122070703813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303043476,"filename":"image_18032025_14_02_53_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ea3081c784c0722bcd89c39ce32bc2e3.jpg","text":"TemporaryFile(/tmp/multipartBody6028815517273445345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303043476,"filename":"image_18032025_14_02_47_6013.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/75d553d386d4767b312bd2a46c07c7cb.jpg","text":"TemporaryFile(/tmp/multipartBody8819327242430123782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303043476,"filename":"image_18032025_14_02_35_5996.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cfb7c208e82ff85aacde60e9570f4b2f.jpg","text":"TemporaryFile(/tmp/multipartBody6792253083635191306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303043476,"filename":"image_18032025_14_02_41_5946.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a06b7386923e939e4bf9c88ee8cbf834.jpg","text":"TemporaryFile(/tmp/multipartBody3818419313645285994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303043476,"filename":"image_18032025_14_02_23_5721.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4772cbfb29a075ae8715c2753c952106.jpg","text":"TemporaryFile(/tmp/multipartBody8177160233733248819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303043476,"filename":"image_18032025_14_02_29_5938.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345134568","file1":"1345134559","file0":"1345134548","file4":"1345134579","file5":"1345134585","file3":"1345134574"},"map_files_photo_id_array":[{"photo_id":"1345134585","filename":"file5"},{"photo_id":"1345134568","filename":"file2"},{"photo_id":"1345134579","filename":"file4"},{"photo_id":"1345134559","filename":"file1"},{"photo_id":"1345134548","filename":"file0"},{"photo_id":"1345134574","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345134548":["hashtag1","hashtag2"]},{"1345134559":["hashtag1","hashtag2"]},{"1345134574":["hashtag1","hashtag2"]},{"1345134568":["hashtag1","hashtag2"]},{"1345134585":["hashtag1","hashtag2"]},{"1345134579":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345134548, 1345134559, 1345134574, 1345134568, 1345134585, 1345134579)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.33324337005615 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:04:03.100396
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_54_5970.jpg', 2), ('/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_48_5900.jpg', 2), ('/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_42_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_36_5983.jpg', 2), ('/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_30_5941.jpg', 2), ('/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_24_6842.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_54_5970.jpg', '/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_48_5900.jpg', '/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_42_6058.jpg', '/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_36_5983.jpg', '/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_30_5941.jpg', '/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_24_6842.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_54_5970.jpg
/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_48_5900.jpg
/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_42_6058.jpg
/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_36_5983.jpg
/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_30_5941.jpg
/home/nano/Desktop/images/18032025/14/03/image_18032025_14_03_24_6842.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345134617","1345134602","1345134611","1345134608","1345134628","1345134622"],"photo_ids_order":["1345134602","1345134608","1345134611","1345134617","1345134622","1345134628"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2506769d96dbd4b4083a4c4f387f1af0.jpg","text":"TemporaryFile(/tmp/multipartBody4587165783912820066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303103675,"filename":"image_18032025_14_03_36_5983.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2f7cee96e7b8a8a30b63c49ddcfe5a4f.jpg","text":"TemporaryFile(/tmp/multipartBody8762668017942043329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303103675,"filename":"image_18032025_14_03_54_5970.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ebb080cce020e569ed9998a0baab590.jpg","text":"TemporaryFile(/tmp/multipartBody3982597538237060249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303103675,"filename":"image_18032025_14_03_42_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/caf12d0b8dae2b5885c64cfc23000b2d.jpg","text":"TemporaryFile(/tmp/multipartBody7648989377152009444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303103675,"filename":"image_18032025_14_03_48_5900.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0bea4e4d01d039f38f98cdaa244c9332.jpg","text":"TemporaryFile(/tmp/multipartBody4472252986126502598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303103675,"filename":"image_18032025_14_03_24_6842.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4a3b3fc3ac961186a7d0d33af3dab47.jpg","text":"TemporaryFile(/tmp/multipartBody800341500785213498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303103675,"filename":"image_18032025_14_03_30_5941.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345134611","file1":"1345134608","file0":"1345134602","file4":"1345134622","file5":"1345134628","file3":"1345134617"},"map_files_photo_id_array":[{"photo_id":"1345134628","filename":"file5"},{"photo_id":"1345134611","filename":"file2"},{"photo_id":"1345134622","filename":"file4"},{"photo_id":"1345134608","filename":"file1"},{"photo_id":"1345134602","filename":"file0"},{"photo_id":"1345134617","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345134617":["hashtag1","hashtag2"]},{"1345134602":["hashtag1","hashtag2"]},{"1345134611":["hashtag1","hashtag2"]},{"1345134608":["hashtag1","hashtag2"]},{"1345134628":["hashtag1","hashtag2"]},{"1345134622":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345134617, 1345134602, 1345134611, 1345134608, 1345134628, 1345134622)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.933073043823242 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:05:03.158723
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_53_5698.jpg', 2), ('/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_47_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_42_6652.jpg', 2), ('/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_35_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_29_5859.jpg', 2), ('/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_23_5763.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_53_5698.jpg', '/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_47_5620.jpg', '/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_42_6652.jpg', '/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_35_5789.jpg', '/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_29_5859.jpg', '/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_23_5763.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_53_5698.jpg
/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_47_5620.jpg
/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_42_6652.jpg
/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_35_5789.jpg
/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_29_5859.jpg
/home/nano/Desktop/images/18032025/14/04/image_18032025_14_04_23_5763.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345134749","1345134734","1345134751","1345134765","1345134756","1345134744"],"photo_ids_order":["1345134734","1345134744","1345134749","1345134751","1345134756","1345134765"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e5208003af0dcdeb5e70a7718f23c980.jpg","text":"TemporaryFile(/tmp/multipartBody171343491882136265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303163612,"filename":"image_18032025_14_04_42_6652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/20f5a94e83feef9b0d1272b5916227d6.jpg","text":"TemporaryFile(/tmp/multipartBody425077303171381580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303163612,"filename":"image_18032025_14_04_53_5698.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b95bc4183061e01f1644bd1095e893a7.jpg","text":"TemporaryFile(/tmp/multipartBody2432639375311166311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303163612,"filename":"image_18032025_14_04_35_5789.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/de2964c47c42251310032f0ed080d1a9.jpg","text":"TemporaryFile(/tmp/multipartBody732628312919550891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303163612,"filename":"image_18032025_14_04_23_5763.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ec4388508c0835914a83cf0a873a6af.jpg","text":"TemporaryFile(/tmp/multipartBody2460436520092878782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303163612,"filename":"image_18032025_14_04_29_5859.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cdea621e409c9ae17bf417968f9cc113.jpg","text":"TemporaryFile(/tmp/multipartBody2653254768227954476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303163612,"filename":"image_18032025_14_04_47_5620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345134749","file1":"1345134744","file0":"1345134734","file4":"1345134756","file5":"1345134765","file3":"1345134751"},"map_files_photo_id_array":[{"photo_id":"1345134765","filename":"file5"},{"photo_id":"1345134749","filename":"file2"},{"photo_id":"1345134756","filename":"file4"},{"photo_id":"1345134744","filename":"file1"},{"photo_id":"1345134734","filename":"file0"},{"photo_id":"1345134751","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345134749":["hashtag1","hashtag2"]},{"1345134734":["hashtag1","hashtag2"]},{"1345134751":["hashtag1","hashtag2"]},{"1345134765":["hashtag1","hashtag2"]},{"1345134756":["hashtag1","hashtag2"]},{"1345134744":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345134749, 1345134734, 1345134751, 1345134765, 1345134756, 1345134744)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.406230211257935 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:06:03.124779
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_53_5604.jpg', 2), ('/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_48_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_41_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_35_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_30_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_23_5632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_53_5604.jpg', '/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_48_6640.jpg', '/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_41_5623.jpg', '/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_35_5640.jpg', '/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_30_6656.jpg', '/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_23_5632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_53_5604.jpg
/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_48_6640.jpg
/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_41_5623.jpg
/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_35_5640.jpg
/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_30_6656.jpg
/home/nano/Desktop/images/18032025/14/05/image_18032025_14_05_23_5632.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345134806","1345134811","1345134820","1345134814","1345134795","1345134816"],"photo_ids_order":["1345134795","1345134806","1345134811","1345134814","1345134816","1345134820"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/74094270da9bb34ff83fdfbc79a296e6.jpg","text":"TemporaryFile(/tmp/multipartBody9007274083854356830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303223485,"filename":"image_18032025_14_05_48_6640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a7e9c28ff43c054fc37ee82dae5735b6.jpg","text":"TemporaryFile(/tmp/multipartBody111195686307693443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303223485,"filename":"image_18032025_14_05_41_5623.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f685eff793043118a990720a41acfffc.jpg","text":"TemporaryFile(/tmp/multipartBody3833059665887385704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303223485,"filename":"image_18032025_14_05_23_5632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bf20cee469667f202baa57b80946f705.jpg","text":"TemporaryFile(/tmp/multipartBody4586241398861947069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303223485,"filename":"image_18032025_14_05_35_5640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7246be2be9e44cf0d2a1919b96aff352.jpg","text":"TemporaryFile(/tmp/multipartBody7464716278845397053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303223485,"filename":"image_18032025_14_05_53_5604.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6d9d5ec9de6c0fc050987f8a9f925391.jpg","text":"TemporaryFile(/tmp/multipartBody38624796875428001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303223485,"filename":"image_18032025_14_05_30_6656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345134811","file1":"1345134806","file0":"1345134795","file4":"1345134816","file5":"1345134820","file3":"1345134814"},"map_files_photo_id_array":[{"photo_id":"1345134820","filename":"file5"},{"photo_id":"1345134811","filename":"file2"},{"photo_id":"1345134816","filename":"file4"},{"photo_id":"1345134806","filename":"file1"},{"photo_id":"1345134795","filename":"file0"},{"photo_id":"1345134814","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345134806":["hashtag1","hashtag2"]},{"1345134811":["hashtag1","hashtag2"]},{"1345134820":["hashtag1","hashtag2"]},{"1345134814":["hashtag1","hashtag2"]},{"1345134795":["hashtag1","hashtag2"]},{"1345134816":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345134806, 1345134811, 1345134820, 1345134814, 1345134795, 1345134816)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.528148889541626 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:07:02.319716
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_54_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_47_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_41_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_35_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_29_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_24_6700.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_54_6662.jpg', '/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_47_5646.jpg', '/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_41_6639.jpg', '/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_35_5648.jpg', '/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_29_5661.jpg', '/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_24_6700.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_54_6662.jpg
/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_47_5646.jpg
/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_41_6639.jpg
/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_35_5648.jpg
/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_29_5661.jpg
/home/nano/Desktop/images/18032025/14/06/image_18032025_14_06_24_6700.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345135205","1345135147","1345135188","1345135218","1345135119","1345135172"],"photo_ids_order":["1345135119","1345135147","1345135172","1345135188","1345135205","1345135218"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7bccdcd176218ac9ef931799901cbbda.jpg","text":"TemporaryFile(/tmp/multipartBody9184527870122776177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303282751,"filename":"image_18032025_14_06_29_5661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3597df94c25410b929ea3d93fc5db367.jpg","text":"TemporaryFile(/tmp/multipartBody6324214597774364787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303282751,"filename":"image_18032025_14_06_47_5646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b0dc749088bc0d4c452dfd832436a605.jpg","text":"TemporaryFile(/tmp/multipartBody1324989743119226714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303282751,"filename":"image_18032025_14_06_35_5648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7ff1c7d8af7b174d92156dd6720b54ee.jpg","text":"TemporaryFile(/tmp/multipartBody8360372930730219539asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303282751,"filename":"image_18032025_14_06_24_6700.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8c3378897f57bbfbd8962c3c8f7b1f8.jpg","text":"TemporaryFile(/tmp/multipartBody2010538955107219504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303282751,"filename":"image_18032025_14_06_54_6662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec7c112f8c213676e2b2554b66023b45.jpg","text":"TemporaryFile(/tmp/multipartBody4578514036769153069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303282751,"filename":"image_18032025_14_06_41_6639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345135172","file1":"1345135147","file0":"1345135119","file4":"1345135205","file5":"1345135218","file3":"1345135188"},"map_files_photo_id_array":[{"photo_id":"1345135218","filename":"file5"},{"photo_id":"1345135172","filename":"file2"},{"photo_id":"1345135205","filename":"file4"},{"photo_id":"1345135147","filename":"file1"},{"photo_id":"1345135119","filename":"file0"},{"photo_id":"1345135188","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345135205":["hashtag1","hashtag2"]},{"1345135147":["hashtag1","hashtag2"]},{"1345135188":["hashtag1","hashtag2"]},{"1345135218":["hashtag1","hashtag2"]},{"1345135119":["hashtag1","hashtag2"]},{"1345135172":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345135205, 1345135147, 1345135188, 1345135218, 1345135119, 1345135172)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.803040742874146 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:08:02.473953
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_53_6039.jpg', 2), ('/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_47_6038.jpg', 2), ('/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_41_5958.jpg', 2), ('/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_35_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_30_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_24_6873.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_53_6039.jpg', '/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_47_6038.jpg', '/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_41_5958.jpg', '/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_35_5749.jpg', '/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_30_5810.jpg', '/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_24_6873.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_53_6039.jpg
/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_47_6038.jpg
/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_41_5958.jpg
/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_35_5749.jpg
/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_30_5810.jpg
/home/nano/Desktop/images/18032025/14/07/image_18032025_14_07_24_6873.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345135290","1345135287","1345135281","1345135275","1345135284","1345135278"],"photo_ids_order":["1345135275","1345135278","1345135281","1345135284","1345135287","1345135290"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fde8c86d1beb8b7781b31e096a82fd61.jpg","text":"TemporaryFile(/tmp/multipartBody3279886785201157813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303342926,"filename":"image_18032025_14_07_24_6873.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/38493c9c9aa2374e100e610ad5cc8502.jpg","text":"TemporaryFile(/tmp/multipartBody4414147801564494962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303342926,"filename":"image_18032025_14_07_30_5810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f1da4db475c27f1e00d42c17d6988e50.jpg","text":"TemporaryFile(/tmp/multipartBody5126067338150672937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303342926,"filename":"image_18032025_14_07_41_5958.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/731d5aa40539f6c3bf2ea8ac6a80dd15.jpg","text":"TemporaryFile(/tmp/multipartBody8505789071323623104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303342926,"filename":"image_18032025_14_07_53_6039.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/94af2cb85394a5572dfce97c4994e125.jpg","text":"TemporaryFile(/tmp/multipartBody4434262339185499288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303342926,"filename":"image_18032025_14_07_35_5749.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6157f325bc7fe86da3d1a049c4c8f8a.jpg","text":"TemporaryFile(/tmp/multipartBody8703744453189562991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303342926,"filename":"image_18032025_14_07_47_6038.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345135281","file1":"1345135278","file0":"1345135275","file4":"1345135287","file5":"1345135290","file3":"1345135284"},"map_files_photo_id_array":[{"photo_id":"1345135290","filename":"file5"},{"photo_id":"1345135281","filename":"file2"},{"photo_id":"1345135287","filename":"file4"},{"photo_id":"1345135278","filename":"file1"},{"photo_id":"1345135275","filename":"file0"},{"photo_id":"1345135284","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345135290":["hashtag1","hashtag2"]},{"1345135287":["hashtag1","hashtag2"]},{"1345135281":["hashtag1","hashtag2"]},{"1345135275":["hashtag1","hashtag2"]},{"1345135284":["hashtag1","hashtag2"]},{"1345135278":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345135290, 1345135287, 1345135281, 1345135275, 1345135284, 1345135278)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.921285152435303 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:09:02.839729
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_53_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_48_6669.jpg', 2), ('/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_41_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_35_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_30_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_23_5624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_53_5621.jpg', '/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_48_6669.jpg', '/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_41_5618.jpg', '/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_35_5626.jpg', '/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_30_6627.jpg', '/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_23_5624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_53_5621.jpg
/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_48_6669.jpg
/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_41_5618.jpg
/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_35_5626.jpg
/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_30_6627.jpg
/home/nano/Desktop/images/18032025/14/08/image_18032025_14_08_23_5624.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345135312","1345135321","1345135315","1345135324","1345135318","1345135329"],"photo_ids_order":["1345135312","1345135315","1345135318","1345135321","1345135324","1345135329"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b569e11e82404b9d484d123a399877f5.jpg","text":"TemporaryFile(/tmp/multipartBody3097465856954125632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303403202,"filename":"image_18032025_14_08_53_5621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4ab5f2ccc801ce3b3dff1b77f4c4859.jpg","text":"TemporaryFile(/tmp/multipartBody5243923288099539115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303403202,"filename":"image_18032025_14_08_35_5626.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a355f3ea56763b3e24742c67ed299fa1.jpg","text":"TemporaryFile(/tmp/multipartBody4263016271987562137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303403202,"filename":"image_18032025_14_08_48_6669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dabe3d8ba90ed4ded08b3fbc13c280a8.jpg","text":"TemporaryFile(/tmp/multipartBody2297243567758241533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303403202,"filename":"image_18032025_14_08_30_6627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8cc838222cb26eee12946e45da7deca5.jpg","text":"TemporaryFile(/tmp/multipartBody9023635155656314233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303403202,"filename":"image_18032025_14_08_41_5618.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4d36a5af97ed48d1d5bf099c21aaf970.jpg","text":"TemporaryFile(/tmp/multipartBody2914350926430126006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303403202,"filename":"image_18032025_14_08_23_5624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345135318","file1":"1345135315","file0":"1345135312","file4":"1345135324","file5":"1345135329","file3":"1345135321"},"map_files_photo_id_array":[{"photo_id":"1345135329","filename":"file5"},{"photo_id":"1345135318","filename":"file2"},{"photo_id":"1345135324","filename":"file4"},{"photo_id":"1345135315","filename":"file1"},{"photo_id":"1345135312","filename":"file0"},{"photo_id":"1345135321","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345135312":["hashtag1","hashtag2"]},{"1345135321":["hashtag1","hashtag2"]},{"1345135315":["hashtag1","hashtag2"]},{"1345135324":["hashtag1","hashtag2"]},{"1345135318":["hashtag1","hashtag2"]},{"1345135329":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345135312, 1345135321, 1345135315, 1345135324, 1345135318, 1345135329)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.772587537765503 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:10:02.517036
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_54_6663.jpg', 2), ('/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_47_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_41_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_36_6621.jpg', 2), ('/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_29_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_24_6624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_54_6663.jpg', '/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_47_5625.jpg', '/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_41_5646.jpg', '/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_36_6621.jpg', '/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_29_5618.jpg', '/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_24_6624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_54_6663.jpg
/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_47_5625.jpg
/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_41_5646.jpg
/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_36_6621.jpg
/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_29_5618.jpg
/home/nano/Desktop/images/18032025/14/09/image_18032025_14_09_24_6624.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345135409","1345135386","1345135389","1345135380","1345135383","1345135377"],"photo_ids_order":["1345135377","1345135380","1345135383","1345135386","1345135389","1345135409"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/491a3151061d72b4fc098269c20cf8ed.jpg","text":"TemporaryFile(/tmp/multipartBody3041813033170611825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303462878,"filename":"image_18032025_14_09_24_6624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9fc2b84856e6668836b3aabea5615bcf.jpg","text":"TemporaryFile(/tmp/multipartBody1485453674309480347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303462878,"filename":"image_18032025_14_09_36_6621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/302f0c3564459b243103bfa04c11e93b.jpg","text":"TemporaryFile(/tmp/multipartBody5255385322097130635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303462878,"filename":"image_18032025_14_09_29_5618.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01ff40670ece97e917ae44ca313f543a.jpg","text":"TemporaryFile(/tmp/multipartBody6724496266500405287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303462878,"filename":"image_18032025_14_09_47_5625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1b3a46dd381bab00d1d9a6764d824fae.jpg","text":"TemporaryFile(/tmp/multipartBody3470464883461973077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303462878,"filename":"image_18032025_14_09_41_5646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14c6a1ed21c04e8307a5dafcaf24490c.jpg","text":"TemporaryFile(/tmp/multipartBody2140517701281986137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303462878,"filename":"image_18032025_14_09_54_6663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345135383","file1":"1345135380","file0":"1345135377","file4":"1345135389","file5":"1345135409","file3":"1345135386"},"map_files_photo_id_array":[{"photo_id":"1345135409","filename":"file5"},{"photo_id":"1345135383","filename":"file2"},{"photo_id":"1345135389","filename":"file4"},{"photo_id":"1345135380","filename":"file1"},{"photo_id":"1345135377","filename":"file0"},{"photo_id":"1345135386","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345135409":["hashtag1","hashtag2"]},{"1345135386":["hashtag1","hashtag2"]},{"1345135389":["hashtag1","hashtag2"]},{"1345135380":["hashtag1","hashtag2"]},{"1345135383":["hashtag1","hashtag2"]},{"1345135377":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345135409, 1345135386, 1345135389, 1345135380, 1345135383, 1345135377)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.050801038742065 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:11:02.693396
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_53_5701.jpg', 2), ('/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_47_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_42_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_35_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_30_6630.jpg', 2), ('/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_23_5638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_53_5701.jpg', '/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_47_5627.jpg', '/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_42_6654.jpg', '/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_35_5633.jpg', '/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_30_6630.jpg', '/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_23_5638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_53_5701.jpg
/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_47_5627.jpg
/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_42_6654.jpg
/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_35_5633.jpg
/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_30_6630.jpg
/home/nano/Desktop/images/18032025/14/10/image_18032025_14_10_23_5638.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345135522","1345135677","1345135530","1345135688","1345135655","1345135526"],"photo_ids_order":["1345135522","1345135526","1345135530","1345135655","1345135677","1345135688"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0598e79d0216bdb0ca5ce6c4a9ef4e92.jpg","text":"TemporaryFile(/tmp/multipartBody3268584157313492384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303523070,"filename":"image_18032025_14_10_53_5701.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18deb1098a2935f2a5fd1bcfaa826c73.jpg","text":"TemporaryFile(/tmp/multipartBody5866131136636873079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303523070,"filename":"image_18032025_14_10_30_6630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/694fbc6c9a63f9698c0c148fb0a8561a.jpg","text":"TemporaryFile(/tmp/multipartBody2052237745729791844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303523070,"filename":"image_18032025_14_10_42_6654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6157a033a938d6c142d0d6240a3bf18.jpg","text":"TemporaryFile(/tmp/multipartBody2901890037558851820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303523070,"filename":"image_18032025_14_10_23_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e53a368fb91e46c13c4b79d4970899b.jpg","text":"TemporaryFile(/tmp/multipartBody8354349276647474348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303523070,"filename":"image_18032025_14_10_35_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9cb2340cefa3e576510052468ad8fb9d.jpg","text":"TemporaryFile(/tmp/multipartBody2068361308661026787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303523070,"filename":"image_18032025_14_10_47_5627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345135530","file1":"1345135526","file0":"1345135522","file4":"1345135677","file5":"1345135688","file3":"1345135655"},"map_files_photo_id_array":[{"photo_id":"1345135688","filename":"file5"},{"photo_id":"1345135530","filename":"file2"},{"photo_id":"1345135677","filename":"file4"},{"photo_id":"1345135526","filename":"file1"},{"photo_id":"1345135522","filename":"file0"},{"photo_id":"1345135655","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345135522":["hashtag1","hashtag2"]},{"1345135677":["hashtag1","hashtag2"]},{"1345135530":["hashtag1","hashtag2"]},{"1345135688":["hashtag1","hashtag2"]},{"1345135655":["hashtag1","hashtag2"]},{"1345135526":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345135522, 1345135677, 1345135530, 1345135688, 1345135655, 1345135526)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.254185914993286 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:12:02.774170
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_53_5688.jpg', 2), ('/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_47_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_42_6674.jpg', 2), ('/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_35_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_29_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_24_6722.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_53_5688.jpg', '/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_47_5706.jpg', '/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_42_6674.jpg', '/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_35_5746.jpg', '/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_29_5718.jpg', '/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_24_6722.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_53_5688.jpg
/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_47_5706.jpg
/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_42_6674.jpg
/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_35_5746.jpg
/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_29_5718.jpg
/home/nano/Desktop/images/18032025/14/11/image_18032025_14_11_24_6722.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345135747","1345135743","1345135755","1345135740","1345135760","1345135751"],"photo_ids_order":["1345135740","1345135743","1345135747","1345135751","1345135755","1345135760"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ffaf569ff9baa22e0099cade7969d829.jpg","text":"TemporaryFile(/tmp/multipartBody5360275367605843593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303583147,"filename":"image_18032025_14_11_42_6674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/981b6cac18a49e35cf30ff895f8882ee.jpg","text":"TemporaryFile(/tmp/multipartBody5542414137844530740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303583147,"filename":"image_18032025_14_11_47_5706.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6eb9738cecb3a8119a45d34d0ff8b4c0.jpg","text":"TemporaryFile(/tmp/multipartBody8309625516071996568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303583147,"filename":"image_18032025_14_11_29_5718.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a694a14e5009dc6008893bc3ee9e2e3b.jpg","text":"TemporaryFile(/tmp/multipartBody4648468876027166649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303583147,"filename":"image_18032025_14_11_53_5688.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/edf89f58e9ecbbb9f2aa5ec59f8ca0a6.jpg","text":"TemporaryFile(/tmp/multipartBody8583999759722397655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303583147,"filename":"image_18032025_14_11_24_6722.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9caac4bd03f05c8fe6d3c9aa361e3b07.jpg","text":"TemporaryFile(/tmp/multipartBody6469021171680721124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303583147,"filename":"image_18032025_14_11_35_5746.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345135747","file1":"1345135743","file0":"1345135740","file4":"1345135755","file5":"1345135760","file3":"1345135751"},"map_files_photo_id_array":[{"photo_id":"1345135760","filename":"file5"},{"photo_id":"1345135747","filename":"file2"},{"photo_id":"1345135755","filename":"file4"},{"photo_id":"1345135743","filename":"file1"},{"photo_id":"1345135740","filename":"file0"},{"photo_id":"1345135751","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345135747":["hashtag1","hashtag2"]},{"1345135743":["hashtag1","hashtag2"]},{"1345135755":["hashtag1","hashtag2"]},{"1345135740":["hashtag1","hashtag2"]},{"1345135760":["hashtag1","hashtag2"]},{"1345135751":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345135747, 1345135743, 1345135755, 1345135740, 1345135760, 1345135751)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.476614236831665 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:13:03.101428
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_53_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_47_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_42_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_35_5799.jpg', 2), ('/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_29_5734.jpg', 2), ('/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_24_6669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_53_5660.jpg', '/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_47_5636.jpg', '/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_42_6677.jpg', '/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_35_5799.jpg', '/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_29_5734.jpg', '/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_24_6669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_53_5660.jpg
/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_47_5636.jpg
/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_42_6677.jpg
/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_35_5799.jpg
/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_29_5734.jpg
/home/nano/Desktop/images/18032025/14/12/image_18032025_14_12_24_6669.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345135805","1345135801","1345135794","1345135788","1345135797","1345135784"],"photo_ids_order":["1345135784","1345135788","1345135794","1345135797","1345135801","1345135805"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d2c91dd5a7ff4d1bbc08229ec87d9827.jpg","text":"TemporaryFile(/tmp/multipartBody7378083618904510219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303643481,"filename":"image_18032025_14_12_24_6669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/30e59887cc529f3a585ff7cd87977630.jpg","text":"TemporaryFile(/tmp/multipartBody1436972724808717665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303643481,"filename":"image_18032025_14_12_29_5734.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ebec54d6889a2216980f3643cfac92f.jpg","text":"TemporaryFile(/tmp/multipartBody893826226582788905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303643481,"filename":"image_18032025_14_12_42_6677.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/106317c4a011e5dc681dea1b86d3eae4.jpg","text":"TemporaryFile(/tmp/multipartBody1175474364773625484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303643481,"filename":"image_18032025_14_12_47_5636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a0a602b46c2031aab7ce18a37db88ce.jpg","text":"TemporaryFile(/tmp/multipartBody3029314279114280943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303643481,"filename":"image_18032025_14_12_35_5799.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1c6dc167d78d54d4241600c0e833ec41.jpg","text":"TemporaryFile(/tmp/multipartBody2926950162793347116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303643481,"filename":"image_18032025_14_12_53_5660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345135794","file1":"1345135788","file0":"1345135784","file4":"1345135801","file5":"1345135805","file3":"1345135797"},"map_files_photo_id_array":[{"photo_id":"1345135805","filename":"file5"},{"photo_id":"1345135794","filename":"file2"},{"photo_id":"1345135801","filename":"file4"},{"photo_id":"1345135788","filename":"file1"},{"photo_id":"1345135784","filename":"file0"},{"photo_id":"1345135797","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345135805":["hashtag1","hashtag2"]},{"1345135801":["hashtag1","hashtag2"]},{"1345135794":["hashtag1","hashtag2"]},{"1345135788":["hashtag1","hashtag2"]},{"1345135797":["hashtag1","hashtag2"]},{"1345135784":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345135805, 1345135801, 1345135794, 1345135788, 1345135797, 1345135784)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.2627637386322 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:14:03.375671
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_53_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_47_5691.jpg', 2), ('/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_42_6718.jpg', 2), ('/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_35_5753.jpg', 2), ('/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_29_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_23_6666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_53_5631.jpg', '/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_47_5691.jpg', '/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_42_6718.jpg', '/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_35_5753.jpg', '/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_29_5685.jpg', '/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_23_6666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_53_5631.jpg
/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_47_5691.jpg
/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_42_6718.jpg
/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_35_5753.jpg
/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_29_5685.jpg
/home/nano/Desktop/images/18032025/14/13/image_18032025_14_13_23_6666.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345135834","1345135831","1345135824","1345135827","1345135835","1345135844"],"photo_ids_order":["1345135824","1345135827","1345135831","1345135834","1345135835","1345135844"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1f389af29dbc6e2847f84f039de35f3f.jpg","text":"TemporaryFile(/tmp/multipartBody3660971378640686284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303703826,"filename":"image_18032025_14_13_35_5753.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/99c5ba2ea9503e5f89891ba3bc9035b2.jpg","text":"TemporaryFile(/tmp/multipartBody8888290002183397691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303703826,"filename":"image_18032025_14_13_42_6718.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/808be0c123b8e9e1ed5ba3c31bd37c85.jpg","text":"TemporaryFile(/tmp/multipartBody1884843729703423112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303703826,"filename":"image_18032025_14_13_53_5631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2840f92a69bd4a33709618aeef77dd2b.jpg","text":"TemporaryFile(/tmp/multipartBody5819939205440924765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303703826,"filename":"image_18032025_14_13_47_5691.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5006964127e9dd0044294098847d868d.jpg","text":"TemporaryFile(/tmp/multipartBody6773181912834599611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303703826,"filename":"image_18032025_14_13_29_5685.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f9cce081de08d28e82b9d56d3f68f891.jpg","text":"TemporaryFile(/tmp/multipartBody7112879870133438347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303703826,"filename":"image_18032025_14_13_23_6666.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345135831","file1":"1345135827","file0":"1345135824","file4":"1345135835","file5":"1345135844","file3":"1345135834"},"map_files_photo_id_array":[{"photo_id":"1345135844","filename":"file5"},{"photo_id":"1345135831","filename":"file2"},{"photo_id":"1345135835","filename":"file4"},{"photo_id":"1345135827","filename":"file1"},{"photo_id":"1345135824","filename":"file0"},{"photo_id":"1345135834","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345135834":["hashtag1","hashtag2"]},{"1345135831":["hashtag1","hashtag2"]},{"1345135824":["hashtag1","hashtag2"]},{"1345135827":["hashtag1","hashtag2"]},{"1345135835":["hashtag1","hashtag2"]},{"1345135844":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345135834, 1345135831, 1345135824, 1345135827, 1345135835, 1345135844)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.130082845687866 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:15:03.098122
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_53_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_48_6672.jpg', 2), ('/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_41_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_35_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_30_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_23_5624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_53_5617.jpg', '/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_48_6672.jpg', '/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_41_5646.jpg', '/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_35_5631.jpg', '/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_30_6627.jpg', '/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_23_5624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_53_5617.jpg
/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_48_6672.jpg
/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_41_5646.jpg
/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_35_5631.jpg
/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_30_6627.jpg
/home/nano/Desktop/images/18032025/14/14/image_18032025_14_14_23_5624.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345135931","1345135891","1345135905","1345135880","1345135883","1345135865"],"photo_ids_order":["1345135865","1345135880","1345135883","1345135891","1345135905","1345135931"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2dddaad10f627aafd08acc2750554112.jpg","text":"TemporaryFile(/tmp/multipartBody472624498529800284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303763528,"filename":"image_18032025_14_14_23_5624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d979c20738628ba363bc3cfef1d782a4.jpg","text":"TemporaryFile(/tmp/multipartBody7083321592881669568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303763528,"filename":"image_18032025_14_14_35_5631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7b01214d1b7453439af9612cbcc14f89.jpg","text":"TemporaryFile(/tmp/multipartBody7314315905074975248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303763528,"filename":"image_18032025_14_14_30_6627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/edbaa45cad003ef0149672d9364a4994.jpg","text":"TemporaryFile(/tmp/multipartBody5791780418262907944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303763528,"filename":"image_18032025_14_14_48_6672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85ca72135cafcd83d7b7deaf6f90f25f.jpg","text":"TemporaryFile(/tmp/multipartBody3682969416024334860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303763528,"filename":"image_18032025_14_14_41_5646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ecabb168c96167206fb99203aacd113.jpg","text":"TemporaryFile(/tmp/multipartBody4733158050160124350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303763528,"filename":"image_18032025_14_14_53_5617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345135883","file1":"1345135880","file0":"1345135865","file4":"1345135905","file5":"1345135931","file3":"1345135891"},"map_files_photo_id_array":[{"photo_id":"1345135931","filename":"file5"},{"photo_id":"1345135883","filename":"file2"},{"photo_id":"1345135905","filename":"file4"},{"photo_id":"1345135880","filename":"file1"},{"photo_id":"1345135865","filename":"file0"},{"photo_id":"1345135891","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345135931":["hashtag1","hashtag2"]},{"1345135891":["hashtag1","hashtag2"]},{"1345135905":["hashtag1","hashtag2"]},{"1345135880":["hashtag1","hashtag2"]},{"1345135883":["hashtag1","hashtag2"]},{"1345135865":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345135931, 1345135891, 1345135905, 1345135880, 1345135883, 1345135865)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.62712025642395 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:16:03.212910
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_54_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_47_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_41_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_36_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_29_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_24_6646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_54_6655.jpg', '/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_47_5670.jpg', '/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_41_5620.jpg', '/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_36_6649.jpg', '/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_29_5635.jpg', '/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_24_6646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_54_6655.jpg
/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_47_5670.jpg
/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_41_5620.jpg
/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_36_6649.jpg
/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_29_5635.jpg
/home/nano/Desktop/images/18032025/14/15/image_18032025_14_15_24_6646.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3361489772796631 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:16:32.734612
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_54_6823.jpg', 2), ('/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_47_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_41_5828.jpg', 2), ('/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_35_5727.jpg', 2), ('/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_30_6706.jpg', 2), ('/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_23_5672.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_54_6823.jpg', '/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_47_5676.jpg', '/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_41_5828.jpg', '/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_35_5727.jpg', '/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_30_6706.jpg', '/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_23_5672.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_54_6823.jpg
/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_47_5676.jpg
/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_41_5828.jpg
/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_35_5727.jpg
/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_30_6706.jpg
/home/nano/Desktop/images/18032025/14/16/image_18032025_14_16_23_5672.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136083","1345136091","1345136094","1345136079","1345136096","1345136087"],"photo_ids_order":["1345136079","1345136083","1345136087","1345136091","1345136094","1345136096"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/11fa6a429e8999a151cae23460a15a7f.jpg","text":"TemporaryFile(/tmp/multipartBody4011647512364015111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303853186,"filename":"image_18032025_14_16_47_5676.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b2e5c18506efde7b1598c3a255dfcfdf.jpg","text":"TemporaryFile(/tmp/multipartBody3581743419106243635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303853186,"filename":"image_18032025_14_16_35_5727.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5010c7d8aa5fbf0d6d5dfeb64f88018d.jpg","text":"TemporaryFile(/tmp/multipartBody1302913999098270885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303853186,"filename":"image_18032025_14_16_30_6706.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/457d5682c1c9708e072acb391a303a34.jpg","text":"TemporaryFile(/tmp/multipartBody3125258997379243931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303853186,"filename":"image_18032025_14_16_54_6823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95b15b27f246363c9406a604864df217.jpg","text":"TemporaryFile(/tmp/multipartBody4977190310167892311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303853186,"filename":"image_18032025_14_16_23_5672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce2eb0d1e0f08de1adf81517610821f3.jpg","text":"TemporaryFile(/tmp/multipartBody1954568001426632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303853186,"filename":"image_18032025_14_16_41_5828.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136087","file1":"1345136083","file0":"1345136079","file4":"1345136094","file5":"1345136096","file3":"1345136091"},"map_files_photo_id_array":[{"photo_id":"1345136096","filename":"file5"},{"photo_id":"1345136087","filename":"file2"},{"photo_id":"1345136094","filename":"file4"},{"photo_id":"1345136083","filename":"file1"},{"photo_id":"1345136079","filename":"file0"},{"photo_id":"1345136091","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136083":["hashtag1","hashtag2"]},{"1345136091":["hashtag1","hashtag2"]},{"1345136094":["hashtag1","hashtag2"]},{"1345136079":["hashtag1","hashtag2"]},{"1345136096":["hashtag1","hashtag2"]},{"1345136087":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136083, 1345136091, 1345136094, 1345136079, 1345136096, 1345136087)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.12102150917053 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:17:31.856622
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_54_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_48_6691.jpg', 2), ('/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_41_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_35_5739.jpg', 2), ('/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_30_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_24_6792.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_54_5781.jpg', '/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_48_6691.jpg', '/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_41_5789.jpg', '/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_35_5739.jpg', '/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_30_5819.jpg', '/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_24_6792.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_54_5781.jpg
/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_48_6691.jpg
/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_41_5789.jpg
/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_35_5739.jpg
/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_30_5819.jpg
/home/nano/Desktop/images/18032025/14/17/image_18032025_14_17_24_6792.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136131","1345136140","1345136116","1345136136","1345136121","1345136127"],"photo_ids_order":["1345136116","1345136121","1345136127","1345136131","1345136136","1345136140"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d8a3b570ec24a88edaa9616b85b55571.jpg","text":"TemporaryFile(/tmp/multipartBody8821549303653544837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303912270,"filename":"image_18032025_14_17_35_5739.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d330a9a3a4e8ec919a987523f181740.jpg","text":"TemporaryFile(/tmp/multipartBody3078331292451631078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303912270,"filename":"image_18032025_14_17_24_6792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c1a5e8b249c8979c5fe6a00c8e91d32.jpg","text":"TemporaryFile(/tmp/multipartBody2955790284624582503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303912270,"filename":"image_18032025_14_17_54_5781.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/551d86ede2107733775edf9a643967cc.jpg","text":"TemporaryFile(/tmp/multipartBody306689671449911710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303912270,"filename":"image_18032025_14_17_30_5819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/59472fb8eb17a90fe1669ee73caf8f55.jpg","text":"TemporaryFile(/tmp/multipartBody3061168700975175324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303912270,"filename":"image_18032025_14_17_48_6691.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ef33923246ad82a33d7e23b039ebefb.jpg","text":"TemporaryFile(/tmp/multipartBody1083808384350777866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303912270,"filename":"image_18032025_14_17_41_5789.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136127","file1":"1345136121","file0":"1345136116","file4":"1345136136","file5":"1345136140","file3":"1345136131"},"map_files_photo_id_array":[{"photo_id":"1345136140","filename":"file5"},{"photo_id":"1345136127","filename":"file2"},{"photo_id":"1345136136","filename":"file4"},{"photo_id":"1345136121","filename":"file1"},{"photo_id":"1345136116","filename":"file0"},{"photo_id":"1345136131","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136131":["hashtag1","hashtag2"]},{"1345136140":["hashtag1","hashtag2"]},{"1345136116":["hashtag1","hashtag2"]},{"1345136136":["hashtag1","hashtag2"]},{"1345136121":["hashtag1","hashtag2"]},{"1345136127":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136131, 1345136140, 1345136116, 1345136136, 1345136121, 1345136127)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.59060764312744 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:18:31.954984
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_53_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_42_6669.jpg', 2), ('/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_35_5678.jpg', 2), ('/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_29_5684.jpg', 2), ('/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_24_5827.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_53_5639.jpg', '/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_47_5633.jpg', '/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_42_6669.jpg', '/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_35_5678.jpg', '/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_29_5684.jpg', '/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_24_5827.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_53_5639.jpg
/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_47_5633.jpg
/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_42_6669.jpg
/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_35_5678.jpg
/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_29_5684.jpg
/home/nano/Desktop/images/18032025/14/18/image_18032025_14_18_24_5827.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136170","1345136158","1345136166","1345136177","1345136162","1345136173"],"photo_ids_order":["1345136158","1345136162","1345136166","1345136170","1345136173","1345136177"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aa43e573d90e5cc2ce0d5a81f693ae49.jpg","text":"TemporaryFile(/tmp/multipartBody8772711653276852120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303972294,"filename":"image_18032025_14_18_35_5678.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/974b1ecdbeaeadaa814bc56d74eef434.jpg","text":"TemporaryFile(/tmp/multipartBody7490094626971547129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303972294,"filename":"image_18032025_14_18_53_5639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/762ff9fa681ac2fe836b2593fcadadbd.jpg","text":"TemporaryFile(/tmp/multipartBody8822873101696205543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303972294,"filename":"image_18032025_14_18_42_6669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1bfd1cb46495cb87cb77846a18097833.jpg","text":"TemporaryFile(/tmp/multipartBody6372830887574951310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303972294,"filename":"image_18032025_14_18_24_5827.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/421a06de8d875a9aee7cff16cb120636.jpg","text":"TemporaryFile(/tmp/multipartBody3798313056378130161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303972294,"filename":"image_18032025_14_18_47_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1cb3f354888dae115ef4864fa810cf00.jpg","text":"TemporaryFile(/tmp/multipartBody4565558005843795102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742303972294,"filename":"image_18032025_14_18_29_5684.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136166","file1":"1345136162","file0":"1345136158","file4":"1345136173","file5":"1345136177","file3":"1345136170"},"map_files_photo_id_array":[{"photo_id":"1345136177","filename":"file5"},{"photo_id":"1345136166","filename":"file2"},{"photo_id":"1345136173","filename":"file4"},{"photo_id":"1345136162","filename":"file1"},{"photo_id":"1345136158","filename":"file0"},{"photo_id":"1345136170","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136170":["hashtag1","hashtag2"]},{"1345136158":["hashtag1","hashtag2"]},{"1345136166":["hashtag1","hashtag2"]},{"1345136177":["hashtag1","hashtag2"]},{"1345136162":["hashtag1","hashtag2"]},{"1345136173":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136170, 1345136158, 1345136166, 1345136177, 1345136162, 1345136173)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.21657085418701 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:19:32.057143
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_53_5759.jpg', 2), ('/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_48_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_42_6747.jpg', 2), ('/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_35_5947.jpg', 2), ('/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_29_5993.jpg', 2), ('/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_23_6121.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_53_5759.jpg', '/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_48_6080.jpg', '/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_42_6747.jpg', '/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_35_5947.jpg', '/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_29_5993.jpg', '/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_23_6121.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_53_5759.jpg
/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_48_6080.jpg
/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_42_6747.jpg
/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_35_5947.jpg
/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_29_5993.jpg
/home/nano/Desktop/images/18032025/14/19/image_18032025_14_19_23_6121.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136224","1345136199","1345136229","1345136202","1345136232","1345136195"],"photo_ids_order":["1345136195","1345136199","1345136202","1345136224","1345136229","1345136232"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f2c692f8820c93c1cc6359ccc32d0d3.jpg","text":"TemporaryFile(/tmp/multipartBody1969486073152852775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304032477,"filename":"image_18032025_14_19_35_5947.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e15fb4812bc484ab606c121d37555f1b.jpg","text":"TemporaryFile(/tmp/multipartBody5609555903219728789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304032477,"filename":"image_18032025_14_19_48_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b5eac2ed33ed91409e5474be2bd2faa5.jpg","text":"TemporaryFile(/tmp/multipartBody8254064517108754404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304032477,"filename":"image_18032025_14_19_29_5993.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/865a74cc3bb0226f7834616ccd4e1728.jpg","text":"TemporaryFile(/tmp/multipartBody603010181692459077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304032477,"filename":"image_18032025_14_19_42_6747.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e51b91c476f359b6471766b37289b95.jpg","text":"TemporaryFile(/tmp/multipartBody8227063477972883590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304032477,"filename":"image_18032025_14_19_23_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2944959c94673f21041096bc2cb9f7c4.jpg","text":"TemporaryFile(/tmp/multipartBody6524838067905726023asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304032477,"filename":"image_18032025_14_19_53_5759.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136202","file1":"1345136199","file0":"1345136195","file4":"1345136229","file5":"1345136232","file3":"1345136224"},"map_files_photo_id_array":[{"photo_id":"1345136232","filename":"file5"},{"photo_id":"1345136202","filename":"file2"},{"photo_id":"1345136229","filename":"file4"},{"photo_id":"1345136199","filename":"file1"},{"photo_id":"1345136195","filename":"file0"},{"photo_id":"1345136224","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136224":["hashtag1","hashtag2"]},{"1345136199":["hashtag1","hashtag2"]},{"1345136229":["hashtag1","hashtag2"]},{"1345136202":["hashtag1","hashtag2"]},{"1345136232":["hashtag1","hashtag2"]},{"1345136195":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136224, 1345136199, 1345136229, 1345136202, 1345136232, 1345136195)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.43919110298157 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:20:32.186380
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_54_6736.jpg', 2), ('/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_47_6003.jpg', 2), ('/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_41_5745.jpg', 2), ('/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_35_5931.jpg', 2), ('/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_29_5795.jpg', 2), ('/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_23_6073.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_54_6736.jpg', '/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_47_6003.jpg', '/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_41_5745.jpg', '/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_35_5931.jpg', '/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_29_5795.jpg', '/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_23_6073.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_54_6736.jpg
/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_47_6003.jpg
/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_41_5745.jpg
/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_35_5931.jpg
/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_29_5795.jpg
/home/nano/Desktop/images/18032025/14/20/image_18032025_14_20_23_6073.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136260","1345136251","1345136271","1345136265","1345136276","1345136255"],"photo_ids_order":["1345136251","1345136255","1345136260","1345136265","1345136271","1345136276"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ea1dca0904c3a8162219732e643571ca.jpg","text":"TemporaryFile(/tmp/multipartBody1311416326846050562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304092600,"filename":"image_18032025_14_20_41_5745.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/794a42dd5090e7fc619a4bc868eefbd8.jpg","text":"TemporaryFile(/tmp/multipartBody157369085616097779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304092600,"filename":"image_18032025_14_20_54_6736.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b510849f91bdc33d6bd925e511e944ca.jpg","text":"TemporaryFile(/tmp/multipartBody6433512340918136240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304092600,"filename":"image_18032025_14_20_29_5795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2e9bddd6fcfd48f55838e4310a487fd9.jpg","text":"TemporaryFile(/tmp/multipartBody4609969102633604716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304092600,"filename":"image_18032025_14_20_35_5931.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b31217baa29a77ca0f821437dbdd4416.jpg","text":"TemporaryFile(/tmp/multipartBody4530040707542313571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304092600,"filename":"image_18032025_14_20_23_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac2f1920407566fd3d0e84cdc12fb471.jpg","text":"TemporaryFile(/tmp/multipartBody498017610937972790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304092600,"filename":"image_18032025_14_20_47_6003.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136260","file1":"1345136255","file0":"1345136251","file4":"1345136271","file5":"1345136276","file3":"1345136265"},"map_files_photo_id_array":[{"photo_id":"1345136276","filename":"file5"},{"photo_id":"1345136260","filename":"file2"},{"photo_id":"1345136271","filename":"file4"},{"photo_id":"1345136255","filename":"file1"},{"photo_id":"1345136251","filename":"file0"},{"photo_id":"1345136265","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136260":["hashtag1","hashtag2"]},{"1345136251":["hashtag1","hashtag2"]},{"1345136271":["hashtag1","hashtag2"]},{"1345136265":["hashtag1","hashtag2"]},{"1345136276":["hashtag1","hashtag2"]},{"1345136255":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136260, 1345136251, 1345136271, 1345136265, 1345136276, 1345136255)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.07015800476074 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:21:32.290167
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_54_6808.jpg', 2), ('/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_47_5996.jpg', 2), ('/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_41_6078.jpg', 2), ('/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_35_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_29_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_23_5768.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_54_6808.jpg', '/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_47_5996.jpg', '/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_41_6078.jpg', '/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_35_5812.jpg', '/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_29_5778.jpg', '/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_23_5768.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_54_6808.jpg
/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_47_5996.jpg
/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_41_6078.jpg
/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_35_5812.jpg
/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_29_5778.jpg
/home/nano/Desktop/images/18032025/14/21/image_18032025_14_21_23_5768.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136305","1345136295","1345136310","1345136313","1345136300","1345136290"],"photo_ids_order":["1345136290","1345136295","1345136300","1345136305","1345136310","1345136313"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3bf1235ad88044f1c1ddd79d59f1e6a6.jpg","text":"TemporaryFile(/tmp/multipartBody4540542564577022218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304152683,"filename":"image_18032025_14_21_35_5812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3e624bfa74c1459bc2f7c864c417947d.jpg","text":"TemporaryFile(/tmp/multipartBody4583810000951068646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304152683,"filename":"image_18032025_14_21_47_5996.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e26b0f1abb1cd29d4f151707a0e493d.jpg","text":"TemporaryFile(/tmp/multipartBody5353072529023410659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304152683,"filename":"image_18032025_14_21_29_5778.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ed63fea6e8e622bd0cec7e14cde67468.jpg","text":"TemporaryFile(/tmp/multipartBody7837719651112950752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304152683,"filename":"image_18032025_14_21_23_5768.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3e00b70c069d6621d0cce8c6e285780a.jpg","text":"TemporaryFile(/tmp/multipartBody6658697737006089580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304152683,"filename":"image_18032025_14_21_41_6078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7c1ae458040d17be611ce01f9718f5e.jpg","text":"TemporaryFile(/tmp/multipartBody6007117630529126845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304152683,"filename":"image_18032025_14_21_54_6808.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136300","file1":"1345136295","file0":"1345136290","file4":"1345136310","file5":"1345136313","file3":"1345136305"},"map_files_photo_id_array":[{"photo_id":"1345136313","filename":"file5"},{"photo_id":"1345136300","filename":"file2"},{"photo_id":"1345136310","filename":"file4"},{"photo_id":"1345136295","filename":"file1"},{"photo_id":"1345136290","filename":"file0"},{"photo_id":"1345136305","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136305":["hashtag1","hashtag2"]},{"1345136295":["hashtag1","hashtag2"]},{"1345136310":["hashtag1","hashtag2"]},{"1345136313":["hashtag1","hashtag2"]},{"1345136300":["hashtag1","hashtag2"]},{"1345136290":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136305, 1345136295, 1345136310, 1345136313, 1345136300, 1345136290)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.92104244232178 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:22:32.403968
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_53_6018.jpg', 2), ('/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_47_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_42_6096.jpg', 2), ('/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_35_5846.jpg', 2), ('/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_30_5837.jpg', 2), ('/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_24_6015.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_53_6018.jpg', '/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_47_5766.jpg', '/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_42_6096.jpg', '/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_35_5846.jpg', '/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_30_5837.jpg', '/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_24_6015.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_53_6018.jpg
/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_47_5766.jpg
/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_42_6096.jpg
/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_35_5846.jpg
/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_30_5837.jpg
/home/nano/Desktop/images/18032025/14/22/image_18032025_14_22_24_6015.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136395","1345136377","1345136382","1345136391","1345136387","1345136371"],"photo_ids_order":["1345136371","1345136377","1345136382","1345136387","1345136391","1345136395"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d2e11a5bd758311360b62dedf87c39bf.jpg","text":"TemporaryFile(/tmp/multipartBody3673946521674019468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304212821,"filename":"image_18032025_14_22_24_6015.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3283fafce2885194a697961496683cc7.jpg","text":"TemporaryFile(/tmp/multipartBody8124663155545572700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304212821,"filename":"image_18032025_14_22_47_5766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/13ef5229b612ecc4542e10d6179c24e6.jpg","text":"TemporaryFile(/tmp/multipartBody5192491695167172687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304212821,"filename":"image_18032025_14_22_42_6096.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7a282f88ff41454962fe389eb75e38f1.jpg","text":"TemporaryFile(/tmp/multipartBody2232623621114505580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304212821,"filename":"image_18032025_14_22_30_5837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a37b2235a72f2ade6b290939710f202b.jpg","text":"TemporaryFile(/tmp/multipartBody4584245780967540675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304212821,"filename":"image_18032025_14_22_35_5846.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/169e012e40b00701d948c3812898cc0d.jpg","text":"TemporaryFile(/tmp/multipartBody8353594852468072099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304212821,"filename":"image_18032025_14_22_53_6018.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136382","file1":"1345136377","file0":"1345136371","file4":"1345136391","file5":"1345136395","file3":"1345136387"},"map_files_photo_id_array":[{"photo_id":"1345136395","filename":"file5"},{"photo_id":"1345136382","filename":"file2"},{"photo_id":"1345136391","filename":"file4"},{"photo_id":"1345136377","filename":"file1"},{"photo_id":"1345136371","filename":"file0"},{"photo_id":"1345136387","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136395":["hashtag1","hashtag2"]},{"1345136377":["hashtag1","hashtag2"]},{"1345136382":["hashtag1","hashtag2"]},{"1345136391":["hashtag1","hashtag2"]},{"1345136387":["hashtag1","hashtag2"]},{"1345136371":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136395, 1345136377, 1345136382, 1345136391, 1345136387, 1345136371)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.472625732421875 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:23:32.513736
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_53_5765.jpg', 2), ('/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_48_5902.jpg', 2), ('/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_42_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_36_6652.jpg', 2), ('/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_29_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_23_6119.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_53_5765.jpg', '/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_48_5902.jpg', '/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_42_6044.jpg', '/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_36_6652.jpg', '/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_29_5797.jpg', '/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_23_6119.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_53_5765.jpg
/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_48_5902.jpg
/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_42_6044.jpg
/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_36_6652.jpg
/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_29_5797.jpg
/home/nano/Desktop/images/18032025/14/23/image_18032025_14_23_23_6119.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136434","1345136425","1345136410","1345136428","1345136415","1345136420"],"photo_ids_order":["1345136410","1345136415","1345136420","1345136425","1345136428","1345136434"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7551cef7edefbf0a5ec0f8bb555a688a.jpg","text":"TemporaryFile(/tmp/multipartBody2330136291063699869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304272919,"filename":"image_18032025_14_23_23_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c10901a10f011138b42fc97a8e1fe26c.jpg","text":"TemporaryFile(/tmp/multipartBody6525982455166908885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304272919,"filename":"image_18032025_14_23_36_6652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e9610f7a12f75f2ea5dd9f547daed5e9.jpg","text":"TemporaryFile(/tmp/multipartBody7811523544642213914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304272919,"filename":"image_18032025_14_23_53_5765.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/86d6584cd0ebc541d72bdb5b368ffb4f.jpg","text":"TemporaryFile(/tmp/multipartBody2451562769476166977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304272919,"filename":"image_18032025_14_23_29_5797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/56586acac95a2f5987edd8a70f482713.jpg","text":"TemporaryFile(/tmp/multipartBody2529180040584487620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304272919,"filename":"image_18032025_14_23_48_5902.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85520f6f39d997eda8996188ea38d3b1.jpg","text":"TemporaryFile(/tmp/multipartBody5141701314041505756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304272919,"filename":"image_18032025_14_23_42_6044.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136420","file1":"1345136415","file0":"1345136410","file4":"1345136428","file5":"1345136434","file3":"1345136425"},"map_files_photo_id_array":[{"photo_id":"1345136434","filename":"file5"},{"photo_id":"1345136420","filename":"file2"},{"photo_id":"1345136428","filename":"file4"},{"photo_id":"1345136415","filename":"file1"},{"photo_id":"1345136410","filename":"file0"},{"photo_id":"1345136425","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136434":["hashtag1","hashtag2"]},{"1345136425":["hashtag1","hashtag2"]},{"1345136410":["hashtag1","hashtag2"]},{"1345136428":["hashtag1","hashtag2"]},{"1345136415":["hashtag1","hashtag2"]},{"1345136420":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136434, 1345136425, 1345136410, 1345136428, 1345136415, 1345136420)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.997206926345825 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:24:32.645587
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_53_5714.jpg', 2), ('/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_47_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_42_6633.jpg', 2), ('/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_35_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_29_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_24_6653.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_53_5714.jpg', '/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_47_5668.jpg', '/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_42_6633.jpg', '/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_35_5654.jpg', '/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_29_5641.jpg', '/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_24_6653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_53_5714.jpg
/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_47_5668.jpg
/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_42_6633.jpg
/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_35_5654.jpg
/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_29_5641.jpg
/home/nano/Desktop/images/18032025/14/24/image_18032025_14_24_24_6653.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136467","1345136452","1345136476","1345136457","1345136472","1345136462"],"photo_ids_order":["1345136452","1345136457","1345136462","1345136467","1345136472","1345136476"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a715038684bc27252b578e8c2afca3d2.jpg","text":"TemporaryFile(/tmp/multipartBody359204078251127524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304332991,"filename":"image_18032025_14_24_35_5654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ff676b11759645ea117e024a15315672.jpg","text":"TemporaryFile(/tmp/multipartBody7609828821557772986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304332991,"filename":"image_18032025_14_24_53_5714.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b1c787314c5aadeb2510619556acc0aa.jpg","text":"TemporaryFile(/tmp/multipartBody8571242124860091653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304332991,"filename":"image_18032025_14_24_24_6653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a5e4309ccd6dd44c78b05dc1875b4149.jpg","text":"TemporaryFile(/tmp/multipartBody1424509084872758480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304332991,"filename":"image_18032025_14_24_47_5668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c65dbd028a2f5715e72146211e0da6c0.jpg","text":"TemporaryFile(/tmp/multipartBody6055231766916166299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304332991,"filename":"image_18032025_14_24_29_5641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e07cee6465bdbfe0ab7ac0642fec5ae3.jpg","text":"TemporaryFile(/tmp/multipartBody1299970582035249544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304332991,"filename":"image_18032025_14_24_42_6633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136462","file1":"1345136457","file0":"1345136452","file4":"1345136472","file5":"1345136476","file3":"1345136467"},"map_files_photo_id_array":[{"photo_id":"1345136476","filename":"file5"},{"photo_id":"1345136462","filename":"file2"},{"photo_id":"1345136472","filename":"file4"},{"photo_id":"1345136457","filename":"file1"},{"photo_id":"1345136452","filename":"file0"},{"photo_id":"1345136467","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136467":["hashtag1","hashtag2"]},{"1345136452":["hashtag1","hashtag2"]},{"1345136476":["hashtag1","hashtag2"]},{"1345136457":["hashtag1","hashtag2"]},{"1345136472":["hashtag1","hashtag2"]},{"1345136462":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136467, 1345136452, 1345136476, 1345136457, 1345136472, 1345136462)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.919322967529297 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:25:32.737204
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_53_5760.jpg', 2), ('/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_47_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_41_5707.jpg', 2), ('/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_36_5968.jpg', 2), ('/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_30_6950.jpg', 2), ('/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_23_5790.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_53_5760.jpg', '/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_47_5738.jpg', '/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_41_5707.jpg', '/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_36_5968.jpg', '/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_30_6950.jpg', '/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_23_5790.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_53_5760.jpg
/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_47_5738.jpg
/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_41_5707.jpg
/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_36_5968.jpg
/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_30_6950.jpg
/home/nano/Desktop/images/18032025/14/25/image_18032025_14_25_23_5790.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136490","1345136511","1345136514","1345136505","1345136497","1345136501"],"photo_ids_order":["1345136490","1345136497","1345136501","1345136505","1345136511","1345136514"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e274ed7465c44085fb7405e1f7c8313b.jpg","text":"TemporaryFile(/tmp/multipartBody1584427533727862036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304393136,"filename":"image_18032025_14_25_53_5760.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4435fb2d5464bd34af7cabca9be88806.jpg","text":"TemporaryFile(/tmp/multipartBody4936238073327382088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304393136,"filename":"image_18032025_14_25_30_6950.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6899901a41fba5f3d214e74a2e5da819.jpg","text":"TemporaryFile(/tmp/multipartBody8804625978986575213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304393136,"filename":"image_18032025_14_25_23_5790.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/176e78e809dfb129a4385974a25ad105.jpg","text":"TemporaryFile(/tmp/multipartBody447727983502714954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304393136,"filename":"image_18032025_14_25_36_5968.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/55ac50ee307114b30e69142370b05a5b.jpg","text":"TemporaryFile(/tmp/multipartBody7974474778729470044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304393136,"filename":"image_18032025_14_25_47_5738.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/86d68a83ac1803479c6ca7f458a189d8.jpg","text":"TemporaryFile(/tmp/multipartBody4094162897725358124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304393136,"filename":"image_18032025_14_25_41_5707.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136501","file1":"1345136497","file0":"1345136490","file4":"1345136511","file5":"1345136514","file3":"1345136505"},"map_files_photo_id_array":[{"photo_id":"1345136514","filename":"file5"},{"photo_id":"1345136501","filename":"file2"},{"photo_id":"1345136511","filename":"file4"},{"photo_id":"1345136497","filename":"file1"},{"photo_id":"1345136490","filename":"file0"},{"photo_id":"1345136505","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136490":["hashtag1","hashtag2"]},{"1345136511":["hashtag1","hashtag2"]},{"1345136514":["hashtag1","hashtag2"]},{"1345136505":["hashtag1","hashtag2"]},{"1345136497":["hashtag1","hashtag2"]},{"1345136501":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136490, 1345136511, 1345136514, 1345136505, 1345136497, 1345136501)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.84187340736389 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:26:31.864298
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_53_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_47_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_41_5771.jpg', 2), ('/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_36_6781.jpg', 2), ('/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_29_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_23_5717.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_53_5780.jpg', '/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_47_5883.jpg', '/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_41_5771.jpg', '/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_36_6781.jpg', '/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_29_5741.jpg', '/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_23_5717.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_53_5780.jpg
/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_47_5883.jpg
/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_41_5771.jpg
/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_36_6781.jpg
/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_29_5741.jpg
/home/nano/Desktop/images/18032025/14/26/image_18032025_14_26_23_5717.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136548","1345136539","1345136524","1345136544","1345136529","1345136534"],"photo_ids_order":["1345136524","1345136529","1345136534","1345136539","1345136544","1345136548"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6852716582f904ff098cf2b7db7110b4.jpg","text":"TemporaryFile(/tmp/multipartBody7010209183610744468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304452282,"filename":"image_18032025_14_26_23_5717.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5606c0de33965ff92634803bcf30f11b.jpg","text":"TemporaryFile(/tmp/multipartBody5395218685333084016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304452282,"filename":"image_18032025_14_26_36_6781.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ad1b67e6aeb122a34d2c2970b498cfb.jpg","text":"TemporaryFile(/tmp/multipartBody8425234866435512220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304452282,"filename":"image_18032025_14_26_53_5780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d5deb10fa1bbece5d7e41225bc2853da.jpg","text":"TemporaryFile(/tmp/multipartBody7403349265490744023asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304452282,"filename":"image_18032025_14_26_29_5741.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8a23e98c4f693ab9c37fd4fa1d33bec4.jpg","text":"TemporaryFile(/tmp/multipartBody4548410466699104490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304452282,"filename":"image_18032025_14_26_47_5883.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e6da0ea06c538c95eecad6daaf23503.jpg","text":"TemporaryFile(/tmp/multipartBody1904475524186517871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304452282,"filename":"image_18032025_14_26_41_5771.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136534","file1":"1345136529","file0":"1345136524","file4":"1345136544","file5":"1345136548","file3":"1345136539"},"map_files_photo_id_array":[{"photo_id":"1345136548","filename":"file5"},{"photo_id":"1345136534","filename":"file2"},{"photo_id":"1345136544","filename":"file4"},{"photo_id":"1345136529","filename":"file1"},{"photo_id":"1345136524","filename":"file0"},{"photo_id":"1345136539","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136548":["hashtag1","hashtag2"]},{"1345136539":["hashtag1","hashtag2"]},{"1345136524":["hashtag1","hashtag2"]},{"1345136544":["hashtag1","hashtag2"]},{"1345136529":["hashtag1","hashtag2"]},{"1345136534":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136548, 1345136539, 1345136524, 1345136544, 1345136529, 1345136534)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.390199422836304 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:27:32.002799
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_54_5907.jpg', 2), ('/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_48_5963.jpg', 2), ('/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_42_6751.jpg', 2), ('/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_35_5736.jpg', 2), ('/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_29_5771.jpg', 2), ('/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_23_5944.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_54_5907.jpg', '/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_48_5963.jpg', '/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_42_6751.jpg', '/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_35_5736.jpg', '/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_29_5771.jpg', '/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_23_5944.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_54_5907.jpg
/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_48_5963.jpg
/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_42_6751.jpg
/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_35_5736.jpg
/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_29_5771.jpg
/home/nano/Desktop/images/18032025/14/27/image_18032025_14_27_23_5944.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136601","1345136604","1345136594","1345136597","1345136609","1345136590"],"photo_ids_order":["1345136590","1345136594","1345136597","1345136601","1345136604","1345136609"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2d8d6933f7448b51637db852615b445.jpg","text":"TemporaryFile(/tmp/multipartBody5504089301859254950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304512425,"filename":"image_18032025_14_27_35_5736.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/559793fb1bfc6c3a3922ec1b3f0166db.jpg","text":"TemporaryFile(/tmp/multipartBody427345267142323489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304512425,"filename":"image_18032025_14_27_29_5771.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18fb3f0b9bb8bba3831b65daa79903cf.jpg","text":"TemporaryFile(/tmp/multipartBody3935839104697317056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304512425,"filename":"image_18032025_14_27_48_5963.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/166c0a10f5a70dab69832e131a1f717f.jpg","text":"TemporaryFile(/tmp/multipartBody3550524822788993427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304512425,"filename":"image_18032025_14_27_42_6751.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0aaaefc912101c3970c2a5cf954da39b.jpg","text":"TemporaryFile(/tmp/multipartBody7393777182519307939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304512425,"filename":"image_18032025_14_27_23_5944.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cbb5288b0f4b7343019ca7b5315429f4.jpg","text":"TemporaryFile(/tmp/multipartBody2341415538599346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304512425,"filename":"image_18032025_14_27_54_5907.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136597","file1":"1345136594","file0":"1345136590","file4":"1345136604","file5":"1345136609","file3":"1345136601"},"map_files_photo_id_array":[{"photo_id":"1345136609","filename":"file5"},{"photo_id":"1345136597","filename":"file2"},{"photo_id":"1345136604","filename":"file4"},{"photo_id":"1345136594","filename":"file1"},{"photo_id":"1345136590","filename":"file0"},{"photo_id":"1345136601","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136601":["hashtag1","hashtag2"]},{"1345136604":["hashtag1","hashtag2"]},{"1345136594":["hashtag1","hashtag2"]},{"1345136597":["hashtag1","hashtag2"]},{"1345136609":["hashtag1","hashtag2"]},{"1345136590":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136601, 1345136604, 1345136594, 1345136597, 1345136609, 1345136590)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.958218574523926 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:28:32.098447
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_53_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_47_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_41_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_36_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_30_5978.jpg', 2), ('/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_24_5988.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_53_6042.jpg', '/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_47_6013.jpg', '/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_41_5679.jpg', '/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_36_5757.jpg', '/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_30_5978.jpg', '/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_24_5988.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_53_6042.jpg
/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_47_6013.jpg
/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_41_5679.jpg
/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_36_5757.jpg
/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_30_5978.jpg
/home/nano/Desktop/images/18032025/14/28/image_18032025_14_28_24_5988.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136644","1345136647","1345136641","1345136635","1345136638","1345136633"],"photo_ids_order":["1345136633","1345136635","1345136638","1345136641","1345136644","1345136647"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/46149fcdd5be7b2c72000c936c7a6267.jpg","text":"TemporaryFile(/tmp/multipartBody7874896388849051969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304572532,"filename":"image_18032025_14_28_30_5978.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/030647665209599cd4c07453c4b198b4.jpg","text":"TemporaryFile(/tmp/multipartBody5661472911268781204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304572532,"filename":"image_18032025_14_28_24_5988.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c94e59aeaea5385d6e672b4037aafc47.jpg","text":"TemporaryFile(/tmp/multipartBody3951753819163305747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304572532,"filename":"image_18032025_14_28_36_5757.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52c17c71d1041ccafe31fd9d49c67537.jpg","text":"TemporaryFile(/tmp/multipartBody3972981494057186374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304572532,"filename":"image_18032025_14_28_47_6013.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f8b1f7adb2f0adf8a3d4bfdf7a8d7d3d.jpg","text":"TemporaryFile(/tmp/multipartBody5798724648119839792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304572532,"filename":"image_18032025_14_28_41_5679.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/414ee8bf420513ac8d1ec37c21ec3073.jpg","text":"TemporaryFile(/tmp/multipartBody3747038617470768420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304572532,"filename":"image_18032025_14_28_53_6042.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136638","file1":"1345136635","file0":"1345136633","file4":"1345136644","file5":"1345136647","file3":"1345136641"},"map_files_photo_id_array":[{"photo_id":"1345136647","filename":"file5"},{"photo_id":"1345136638","filename":"file2"},{"photo_id":"1345136644","filename":"file4"},{"photo_id":"1345136635","filename":"file1"},{"photo_id":"1345136633","filename":"file0"},{"photo_id":"1345136641","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136644":["hashtag1","hashtag2"]},{"1345136647":["hashtag1","hashtag2"]},{"1345136641":["hashtag1","hashtag2"]},{"1345136635":["hashtag1","hashtag2"]},{"1345136638":["hashtag1","hashtag2"]},{"1345136633":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136644, 1345136647, 1345136641, 1345136635, 1345136638, 1345136633)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.56174945831299 secondes ---
[Errno 13] Permission denied: '/home/pi'
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:29:32.223292
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_53_5986.jpg', 2), ('/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_47_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_41_5765.jpg', 2), ('/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_35_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_30_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_24_5960.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_53_5986.jpg', '/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_47_5787.jpg', '/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_41_5765.jpg', '/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_35_5875.jpg', '/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_30_5772.jpg', '/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_24_5960.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_53_5986.jpg
/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_47_5787.jpg
/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_41_5765.jpg
/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_35_5875.jpg
/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_30_5772.jpg
/home/nano/Desktop/images/18032025/14/29/image_18032025_14_29_24_5960.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136713","1345136688","1345136715","1345136678","1345136702","1345136683"],"photo_ids_order":["1345136678","1345136683","1345136688","1345136702","1345136713","1345136715"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a5773c33a7311c74e26ba7535034176b.jpg","text":"TemporaryFile(/tmp/multipartBody8492235145646059626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304632665,"filename":"image_18032025_14_29_30_5772.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7cca0bac55942f5517549fa6404e856a.jpg","text":"TemporaryFile(/tmp/multipartBody1353453079310605261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304632665,"filename":"image_18032025_14_29_41_5765.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/64ffeb872362f8dd9b5c92e7b03fd849.jpg","text":"TemporaryFile(/tmp/multipartBody3186192196483745863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304632665,"filename":"image_18032025_14_29_24_5960.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1f0b72a207fcb5b0f2cc6e1b69b3cd98.jpg","text":"TemporaryFile(/tmp/multipartBody3660245758300608165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304632665,"filename":"image_18032025_14_29_53_5986.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/07ad8a957252b37c6ca5cd89ed510582.jpg","text":"TemporaryFile(/tmp/multipartBody5172921854917594028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304632665,"filename":"image_18032025_14_29_35_5875.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ee338dce78754cf4e5b7632c460fa45.jpg","text":"TemporaryFile(/tmp/multipartBody5249335281466371515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304632665,"filename":"image_18032025_14_29_47_5787.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136688","file1":"1345136683","file0":"1345136678","file4":"1345136713","file5":"1345136715","file3":"1345136702"},"map_files_photo_id_array":[{"photo_id":"1345136715","filename":"file5"},{"photo_id":"1345136688","filename":"file2"},{"photo_id":"1345136713","filename":"file4"},{"photo_id":"1345136683","filename":"file1"},{"photo_id":"1345136678","filename":"file0"},{"photo_id":"1345136702","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136713":["hashtag1","hashtag2"]},{"1345136688":["hashtag1","hashtag2"]},{"1345136715":["hashtag1","hashtag2"]},{"1345136678":["hashtag1","hashtag2"]},{"1345136702":["hashtag1","hashtag2"]},{"1345136683":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136713, 1345136688, 1345136715, 1345136678, 1345136702, 1345136683)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.73419427871704 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:30:32.345894
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_54_5924.jpg', 2), ('/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_48_5944.jpg', 2), ('/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_42_6742.jpg', 2), ('/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_35_5714.jpg', 2), ('/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_29_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_23_5956.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_54_5924.jpg', '/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_48_5944.jpg', '/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_42_6742.jpg', '/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_35_5714.jpg', '/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_29_5862.jpg', '/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_23_5956.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_54_5924.jpg
/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_48_5944.jpg
/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_42_6742.jpg
/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_35_5714.jpg
/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_29_5862.jpg
/home/nano/Desktop/images/18032025/14/30/image_18032025_14_30_23_5956.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136752","1345136755","1345136749","1345136757","1345136745","1345136741"],"photo_ids_order":["1345136741","1345136745","1345136749","1345136752","1345136755","1345136757"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f176bb7a4f0efca19c568480af540b8.jpg","text":"TemporaryFile(/tmp/multipartBody8997617018884998444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304692773,"filename":"image_18032025_14_30_35_5714.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f85e70de0558b97b2c20593aa2a1a74e.jpg","text":"TemporaryFile(/tmp/multipartBody4247849731977829873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304692773,"filename":"image_18032025_14_30_29_5862.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/197df8ea864b7b494879444e4ed2935f.jpg","text":"TemporaryFile(/tmp/multipartBody3252123233176395637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304692773,"filename":"image_18032025_14_30_42_6742.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3fffb8ab67eafdbd4ff5f43fea8aacc4.jpg","text":"TemporaryFile(/tmp/multipartBody3138610869983805075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304692773,"filename":"image_18032025_14_30_23_5956.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/26eed27e818fcb4441c3f6b055953fed.jpg","text":"TemporaryFile(/tmp/multipartBody8544170409415064689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304692773,"filename":"image_18032025_14_30_48_5944.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/56e0de0eddad21dd172a4facc8297ca3.jpg","text":"TemporaryFile(/tmp/multipartBody3122465353992807386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304692773,"filename":"image_18032025_14_30_54_5924.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136749","file1":"1345136745","file0":"1345136741","file4":"1345136755","file5":"1345136757","file3":"1345136752"},"map_files_photo_id_array":[{"photo_id":"1345136757","filename":"file5"},{"photo_id":"1345136749","filename":"file2"},{"photo_id":"1345136755","filename":"file4"},{"photo_id":"1345136745","filename":"file1"},{"photo_id":"1345136741","filename":"file0"},{"photo_id":"1345136752","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136752":["hashtag1","hashtag2"]},{"1345136755":["hashtag1","hashtag2"]},{"1345136749":["hashtag1","hashtag2"]},{"1345136757":["hashtag1","hashtag2"]},{"1345136745":["hashtag1","hashtag2"]},{"1345136741":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136752, 1345136755, 1345136749, 1345136757, 1345136745, 1345136741)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.16934299468994 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:31:32.467641
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_54_6622.jpg', 2), ('/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_47_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_41_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_29_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_23_5723.jpg', 2), ('/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_18_6716.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_54_6622.jpg', '/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_47_5616.jpg', '/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_41_5709.jpg', '/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_29_5658.jpg', '/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_23_5723.jpg', '/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_18_6716.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_54_6622.jpg
/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_47_5616.jpg
/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_41_5709.jpg
/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_29_5658.jpg
/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_23_5723.jpg
/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_18_6716.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136799","1345136805","1345136802","1345136792","1345136807","1345136797"],"photo_ids_order":["1345136792","1345136797","1345136799","1345136802","1345136805","1345136807"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a5bcefc99f6af242f46206214f61bef7.jpg","text":"TemporaryFile(/tmp/multipartBody6600412124208156567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304752836,"filename":"image_18032025_14_31_41_5709.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b2713e2295b37b8f3db79fca8effd129.jpg","text":"TemporaryFile(/tmp/multipartBody4741851218248437614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304752836,"filename":"image_18032025_14_31_23_5723.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bc9eaf8eae21a61da023819c73fec4ef.jpg","text":"TemporaryFile(/tmp/multipartBody5632305308770609231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304752836,"filename":"image_18032025_14_31_29_5658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/68146fff5fd45fa4cc92f89fe9097c27.jpg","text":"TemporaryFile(/tmp/multipartBody3332717103054390890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304752836,"filename":"image_18032025_14_31_54_6622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/88b2fc58e291e7814b12f5d0a3033c13.jpg","text":"TemporaryFile(/tmp/multipartBody7071063060100937648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304752836,"filename":"image_18032025_14_31_18_6716.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7d6f9c10b4328bba3dca7282102e5a37.jpg","text":"TemporaryFile(/tmp/multipartBody4770140517085487212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304752836,"filename":"image_18032025_14_31_47_5616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136799","file1":"1345136797","file0":"1345136792","file4":"1345136805","file5":"1345136807","file3":"1345136802"},"map_files_photo_id_array":[{"photo_id":"1345136807","filename":"file5"},{"photo_id":"1345136799","filename":"file2"},{"photo_id":"1345136805","filename":"file4"},{"photo_id":"1345136797","filename":"file1"},{"photo_id":"1345136792","filename":"file0"},{"photo_id":"1345136802","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136799":["hashtag1","hashtag2"]},{"1345136805":["hashtag1","hashtag2"]},{"1345136802":["hashtag1","hashtag2"]},{"1345136792":["hashtag1","hashtag2"]},{"1345136807":["hashtag1","hashtag2"]},{"1345136797":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136799, 1345136805, 1345136802, 1345136792, 1345136807, 1345136797)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.608837604522705 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:32:32.560585
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_53_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_48_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_35_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_30_6666.jpg', 2), ('/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_23_5644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_53_5624.jpg', '/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_48_6638.jpg', '/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_41_5630.jpg', '/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_35_5634.jpg', '/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_30_6666.jpg', '/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_23_5644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_53_5624.jpg
/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_48_6638.jpg
/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_41_5630.jpg
/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_35_5634.jpg
/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_30_6666.jpg
/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_23_5644.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345136848","1345136853","1345136858","1345136951","1345136888","1345136921"],"photo_ids_order":["1345136848","1345136853","1345136858","1345136888","1345136921","1345136951"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3baea2abda262713d8e6bb5454a959da.jpg","text":"TemporaryFile(/tmp/multipartBody5930903266305597054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304812903,"filename":"image_18032025_14_32_53_5624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d0bb476665091dc57f4f1aeeee3ad89b.jpg","text":"TemporaryFile(/tmp/multipartBody5814675435359143919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304812903,"filename":"image_18032025_14_32_48_6638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e82be4d52b5a3280f1deb831ae10f5d.jpg","text":"TemporaryFile(/tmp/multipartBody2339627221688627541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304812903,"filename":"image_18032025_14_32_41_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/42c4ecd0467a4a20be9ccb614dee3a3a.jpg","text":"TemporaryFile(/tmp/multipartBody3126634128844992906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304812903,"filename":"image_18032025_14_32_23_5644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af85ee5137007136e8c033b8bfe963f1.jpg","text":"TemporaryFile(/tmp/multipartBody1307807883240847794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304812903,"filename":"image_18032025_14_32_35_5634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9ef0b5339ad32d61a6e85618ce81c8b.jpg","text":"TemporaryFile(/tmp/multipartBody2858561252732678210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304812903,"filename":"image_18032025_14_32_30_6666.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345136858","file1":"1345136853","file0":"1345136848","file4":"1345136921","file5":"1345136951","file3":"1345136888"},"map_files_photo_id_array":[{"photo_id":"1345136951","filename":"file5"},{"photo_id":"1345136858","filename":"file2"},{"photo_id":"1345136921","filename":"file4"},{"photo_id":"1345136853","filename":"file1"},{"photo_id":"1345136848","filename":"file0"},{"photo_id":"1345136888","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345136848":["hashtag1","hashtag2"]},{"1345136853":["hashtag1","hashtag2"]},{"1345136858":["hashtag1","hashtag2"]},{"1345136951":["hashtag1","hashtag2"]},{"1345136888":["hashtag1","hashtag2"]},{"1345136921":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345136848, 1345136853, 1345136858, 1345136951, 1345136888, 1345136921)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.383134126663208 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:33:03.349520
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_17_5606.jpg', 2), ('/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_12_6688.jpg', 2), ('/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_05_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_59_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_11_5777.jpg', 2), ('/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_05_5869.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_17_5606.jpg', '/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_12_6688.jpg', '/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_05_5681.jpg', '/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_59_5622.jpg', '/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_11_5777.jpg', '/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_05_5869.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_17_5606.jpg
/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_12_6688.jpg
/home/nano/Desktop/images/18032025/14/32/image_18032025_14_32_05_5681.jpg
/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_59_5622.jpg
/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_11_5777.jpg
/home/nano/Desktop/images/18032025/14/31/image_18032025_14_31_05_5869.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345137034","1345137063","1345136979","1345137006","1345137071","1345136980"],"photo_ids_order":["1345136979","1345136980","1345137006","1345137034","1345137063","1345137071"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/246a00642b9955d3ef898969f4dbb653.jpg","text":"TemporaryFile(/tmp/multipartBody3629872805702274112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304843789,"filename":"image_18032025_14_31_59_5622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/802f208205f57639beeeaafadba6c491.jpg","text":"TemporaryFile(/tmp/multipartBody1491025003858931357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304843789,"filename":"image_18032025_14_31_11_5777.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/67ba521bd3988a1c0f7fcd6d7c4d88fc.jpg","text":"TemporaryFile(/tmp/multipartBody4071588883588518306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304843789,"filename":"image_18032025_14_32_17_5606.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c3151f97bdca34c02c03fdc2fd451b9.jpg","text":"TemporaryFile(/tmp/multipartBody578665756502645838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304843789,"filename":"image_18032025_14_32_05_5681.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f00e77e3bed91cbe1a24159a07e35f0.jpg","text":"TemporaryFile(/tmp/multipartBody7515122447524871799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304843789,"filename":"image_18032025_14_31_05_5869.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e48138f2618cb02664e8e8e1b9aedff0.jpg","text":"TemporaryFile(/tmp/multipartBody2526807323620707327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304843789,"filename":"image_18032025_14_32_12_6688.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345137006","file1":"1345136980","file0":"1345136979","file4":"1345137063","file5":"1345137071","file3":"1345137034"},"map_files_photo_id_array":[{"photo_id":"1345137071","filename":"file5"},{"photo_id":"1345137006","filename":"file2"},{"photo_id":"1345137063","filename":"file4"},{"photo_id":"1345136980","filename":"file1"},{"photo_id":"1345136979","filename":"file0"},{"photo_id":"1345137034","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345137034":["hashtag1","hashtag2"]},{"1345137063":["hashtag1","hashtag2"]},{"1345136979":["hashtag1","hashtag2"]},{"1345137006":["hashtag1","hashtag2"]},{"1345137071":["hashtag1","hashtag2"]},{"1345136980":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345137034, 1345137063, 1345136979, 1345137006, 1345137071, 1345136980)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.436550855636597 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:34:02.874027
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_54_6622.jpg', 2), ('/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_47_5689.jpg', 2), ('/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_41_5604.jpg', 2), ('/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_36_6652.jpg', 2), ('/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_29_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_23_5614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_54_6622.jpg', '/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_47_5689.jpg', '/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_41_5604.jpg', '/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_36_6652.jpg', '/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_29_5656.jpg', '/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_23_5614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_54_6622.jpg
/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_47_5689.jpg
/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_41_5604.jpg
/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_36_6652.jpg
/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_29_5656.jpg
/home/nano/Desktop/images/18032025/14/33/image_18032025_14_33_23_5614.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345137115","1345137123","1345137137","1345137146","1345137140","1345137142"],"photo_ids_order":["1345137115","1345137123","1345137137","1345137140","1345137142","1345137146"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e43d223ce0f3c0ca8e031e8b5f1f3d66.jpg","text":"TemporaryFile(/tmp/multipartBody1994725877752215904asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304903230,"filename":"image_18032025_14_33_54_6622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b7e480b3093a7a3c78a389cbc4f9f5aa.jpg","text":"TemporaryFile(/tmp/multipartBody1527011352991292075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304903230,"filename":"image_18032025_14_33_47_5689.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/72fff424989635c73b0fc78aa2c31b1d.jpg","text":"TemporaryFile(/tmp/multipartBody7256764774194186095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304903230,"filename":"image_18032025_14_33_41_5604.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7cc274457a18c061c6978ee55961bf9b.jpg","text":"TemporaryFile(/tmp/multipartBody2441996288404398219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304903230,"filename":"image_18032025_14_33_23_5614.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/564a10c25a99677e69b4255db39dde74.jpg","text":"TemporaryFile(/tmp/multipartBody6569451847334442157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304903230,"filename":"image_18032025_14_33_36_6652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c88b7a6349f3f9b3512efed24ba21378.jpg","text":"TemporaryFile(/tmp/multipartBody7840373369612648125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304903230,"filename":"image_18032025_14_33_29_5656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345137137","file1":"1345137123","file0":"1345137115","file4":"1345137142","file5":"1345137146","file3":"1345137140"},"map_files_photo_id_array":[{"photo_id":"1345137146","filename":"file5"},{"photo_id":"1345137137","filename":"file2"},{"photo_id":"1345137142","filename":"file4"},{"photo_id":"1345137123","filename":"file1"},{"photo_id":"1345137115","filename":"file0"},{"photo_id":"1345137140","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345137115":["hashtag1","hashtag2"]},{"1345137123":["hashtag1","hashtag2"]},{"1345137137":["hashtag1","hashtag2"]},{"1345137146":["hashtag1","hashtag2"]},{"1345137140":["hashtag1","hashtag2"]},{"1345137142":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345137115, 1345137123, 1345137137, 1345137146, 1345137140, 1345137142)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.29602575302124 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:35:02.615662
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_54_6019.jpg', 2), ('/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_48_6022.jpg', 2), ('/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_42_6022.jpg', 2), ('/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_36_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_30_6017.jpg', 2), ('/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_24_6009.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_54_6019.jpg', '/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_48_6022.jpg', '/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_42_6022.jpg', '/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_36_6043.jpg', '/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_30_6017.jpg', '/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_24_6009.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_54_6019.jpg
/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_48_6022.jpg
/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_42_6022.jpg
/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_36_6043.jpg
/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_30_6017.jpg
/home/nano/Desktop/images/18032025/14/34/image_18032025_14_34_24_6009.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345137192","1345137201","1345137188","1345137182","1345137185","1345137179"],"photo_ids_order":["1345137179","1345137182","1345137185","1345137188","1345137192","1345137201"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8288342633a89a1751b51a1c6f73e317.jpg","text":"TemporaryFile(/tmp/multipartBody1409376294350532029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304963059,"filename":"image_18032025_14_34_30_6017.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/840a7b3f4158141bc140fe91e61b2835.jpg","text":"TemporaryFile(/tmp/multipartBody3196387578207847809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304963059,"filename":"image_18032025_14_34_24_6009.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/386d514f6272b2fdca01da2aa6c7461e.jpg","text":"TemporaryFile(/tmp/multipartBody8129045364204786922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304963059,"filename":"image_18032025_14_34_36_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9f56aa49235ef739cbee2bbaf3b9ea6a.jpg","text":"TemporaryFile(/tmp/multipartBody362944462019495490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304963059,"filename":"image_18032025_14_34_48_6022.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/46fc4f6522391a415a839b28031654d6.jpg","text":"TemporaryFile(/tmp/multipartBody7889859846708176885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304963059,"filename":"image_18032025_14_34_42_6022.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd80a757f633ef3ac7903c9b0f8c3675.jpg","text":"TemporaryFile(/tmp/multipartBody4178166156021068654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742304963059,"filename":"image_18032025_14_34_54_6019.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345137185","file1":"1345137182","file0":"1345137179","file4":"1345137192","file5":"1345137201","file3":"1345137188"},"map_files_photo_id_array":[{"photo_id":"1345137201","filename":"file5"},{"photo_id":"1345137185","filename":"file2"},{"photo_id":"1345137192","filename":"file4"},{"photo_id":"1345137182","filename":"file1"},{"photo_id":"1345137179","filename":"file0"},{"photo_id":"1345137188","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345137192":["hashtag1","hashtag2"]},{"1345137201":["hashtag1","hashtag2"]},{"1345137188":["hashtag1","hashtag2"]},{"1345137182":["hashtag1","hashtag2"]},{"1345137185":["hashtag1","hashtag2"]},{"1345137179":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345137192, 1345137201, 1345137188, 1345137182, 1345137185, 1345137179)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.77943229675293 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:36:02.742460
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_53_6011.jpg', 2), ('/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_47_5999.jpg', 2), ('/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_41_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_35_6020.jpg', 2), ('/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_29_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_23_6032.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_53_6011.jpg', '/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_47_5999.jpg', '/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_41_6055.jpg', '/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_35_6020.jpg', '/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_29_6007.jpg', '/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_23_6032.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_53_6011.jpg
/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_47_5999.jpg
/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_41_6055.jpg
/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_35_6020.jpg
/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_29_6007.jpg
/home/nano/Desktop/images/18032025/14/35/image_18032025_14_35_23_6032.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345137244","1345137264","1345137240","1345137280","1345137268","1345137247"],"photo_ids_order":["1345137240","1345137244","1345137247","1345137264","1345137268","1345137280"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a3cdcde259f3be2294380a49e550f3de.jpg","text":"TemporaryFile(/tmp/multipartBody7323996856850433063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305023299,"filename":"image_18032025_14_35_47_5999.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fccd2e62564cfe304a7eafdfb8a3ca8a.jpg","text":"TemporaryFile(/tmp/multipartBody3644585856494075853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305023299,"filename":"image_18032025_14_35_35_6020.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/290bc4a2a83a00946a2e83c003da9426.jpg","text":"TemporaryFile(/tmp/multipartBody1903935586587691892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305023299,"filename":"image_18032025_14_35_53_6011.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2b03c6e55a42ce973dd0f02a917424c7.jpg","text":"TemporaryFile(/tmp/multipartBody7739670557157888768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305023299,"filename":"image_18032025_14_35_23_6032.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ce8d1b143d51c826d589605d2eb5daf.jpg","text":"TemporaryFile(/tmp/multipartBody7839256555759484068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305023299,"filename":"image_18032025_14_35_29_6007.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/15aa3372a3b18e7099b8c4d688f1ab61.jpg","text":"TemporaryFile(/tmp/multipartBody525554052740414488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305023299,"filename":"image_18032025_14_35_41_6055.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345137247","file1":"1345137244","file0":"1345137240","file4":"1345137268","file5":"1345137280","file3":"1345137264"},"map_files_photo_id_array":[{"photo_id":"1345137280","filename":"file5"},{"photo_id":"1345137247","filename":"file2"},{"photo_id":"1345137268","filename":"file4"},{"photo_id":"1345137244","filename":"file1"},{"photo_id":"1345137240","filename":"file0"},{"photo_id":"1345137264","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345137244":["hashtag1","hashtag2"]},{"1345137264":["hashtag1","hashtag2"]},{"1345137240":["hashtag1","hashtag2"]},{"1345137280":["hashtag1","hashtag2"]},{"1345137268":["hashtag1","hashtag2"]},{"1345137247":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345137244, 1345137264, 1345137240, 1345137280, 1345137268, 1345137247)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.08363366127014 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:37:02.839318
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_53_5989.jpg', 2), ('/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_47_6000.jpg', 2), ('/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_41_6014.jpg', 2), ('/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_35_6023.jpg', 2), ('/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_29_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_23_6001.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_53_5989.jpg', '/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_47_6000.jpg', '/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_41_6014.jpg', '/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_35_6023.jpg', '/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_29_6029.jpg', '/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_23_6001.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_53_5989.jpg
/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_47_6000.jpg
/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_41_6014.jpg
/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_35_6023.jpg
/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_29_6029.jpg
/home/nano/Desktop/images/18032025/14/36/image_18032025_14_36_23_6001.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345137343","1345137345","1345137348","1345137336","1345137340","1345137334"],"photo_ids_order":["1345137334","1345137336","1345137340","1345137343","1345137345","1345137348"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/007106d29a959d9cd8b24ee4dbb07d06.jpg","text":"TemporaryFile(/tmp/multipartBody6174355695971093800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305083459,"filename":"image_18032025_14_36_35_6023.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0acb7774e61d146208f22787c33e9cc3.jpg","text":"TemporaryFile(/tmp/multipartBody3480838628047234121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305083459,"filename":"image_18032025_14_36_29_6029.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/da2326ed6d88e4632c3ae10543eb5fb7.jpg","text":"TemporaryFile(/tmp/multipartBody8429743377335849055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305083459,"filename":"image_18032025_14_36_23_6001.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6d86a719771408c1c22be146c94fd5f2.jpg","text":"TemporaryFile(/tmp/multipartBody8792873533107758014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305083459,"filename":"image_18032025_14_36_47_6000.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c541b7e6e85cb60c0435f0cf5ddfef4.jpg","text":"TemporaryFile(/tmp/multipartBody7342556889575767388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305083459,"filename":"image_18032025_14_36_41_6014.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/31b5a6a23184fda89c57bec827c1985d.jpg","text":"TemporaryFile(/tmp/multipartBody4416373915226447467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305083459,"filename":"image_18032025_14_36_53_5989.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345137340","file1":"1345137336","file0":"1345137334","file4":"1345137345","file5":"1345137348","file3":"1345137343"},"map_files_photo_id_array":[{"photo_id":"1345137348","filename":"file5"},{"photo_id":"1345137340","filename":"file2"},{"photo_id":"1345137345","filename":"file4"},{"photo_id":"1345137336","filename":"file1"},{"photo_id":"1345137334","filename":"file0"},{"photo_id":"1345137343","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345137343":["hashtag1","hashtag2"]},{"1345137345":["hashtag1","hashtag2"]},{"1345137348":["hashtag1","hashtag2"]},{"1345137336":["hashtag1","hashtag2"]},{"1345137340":["hashtag1","hashtag2"]},{"1345137334":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345137343, 1345137345, 1345137348, 1345137336, 1345137340, 1345137334)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.480344772338867 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:38:02.851884
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_54_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_47_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_41_6659.jpg', 2), ('/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_35_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_29_5691.jpg', 2), ('/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_23_5893.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_54_6642.jpg', '/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_47_5629.jpg', '/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_41_6659.jpg', '/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_35_5636.jpg', '/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_29_5691.jpg', '/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_23_5893.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_54_6642.jpg
/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_47_5629.jpg
/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_41_6659.jpg
/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_35_5636.jpg
/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_29_5691.jpg
/home/nano/Desktop/images/18032025/14/37/image_18032025_14_37_23_5893.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345137405","1345137449","1345137422","1345137397","1345137401","1345137379"],"photo_ids_order":["1345137379","1345137397","1345137401","1345137405","1345137422","1345137449"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4023a21485f591acac0f7fb54f5c4dd.jpg","text":"TemporaryFile(/tmp/multipartBody3366081455233085164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305143197,"filename":"image_18032025_14_37_35_5636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dcd244c183b674e26a5717db756f88c2.jpg","text":"TemporaryFile(/tmp/multipartBody8110105975647589100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305143197,"filename":"image_18032025_14_37_23_5893.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14694279c7633fa3afb2b03dbf466be8.jpg","text":"TemporaryFile(/tmp/multipartBody2289040923758225830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305143197,"filename":"image_18032025_14_37_29_5691.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ed5cfb8bf7dfe03b8ec4fe8ae730999.jpg","text":"TemporaryFile(/tmp/multipartBody7533535054104175947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305143197,"filename":"image_18032025_14_37_47_5629.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3eacb613d264dc5d5d5c16b7dd1a35bc.jpg","text":"TemporaryFile(/tmp/multipartBody6206671743264093349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305143197,"filename":"image_18032025_14_37_41_6659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/937afb327c2366cc4ad3cddeb21edb3d.jpg","text":"TemporaryFile(/tmp/multipartBody4584047211917367147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305143197,"filename":"image_18032025_14_37_54_6642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345137401","file1":"1345137397","file0":"1345137379","file4":"1345137422","file5":"1345137449","file3":"1345137405"},"map_files_photo_id_array":[{"photo_id":"1345137449","filename":"file5"},{"photo_id":"1345137401","filename":"file2"},{"photo_id":"1345137422","filename":"file4"},{"photo_id":"1345137397","filename":"file1"},{"photo_id":"1345137379","filename":"file0"},{"photo_id":"1345137405","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345137405":["hashtag1","hashtag2"]},{"1345137449":["hashtag1","hashtag2"]},{"1345137422":["hashtag1","hashtag2"]},{"1345137397":["hashtag1","hashtag2"]},{"1345137401":["hashtag1","hashtag2"]},{"1345137379":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345137405, 1345137449, 1345137422, 1345137397, 1345137401, 1345137379)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.6816725730896 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:39:03.357414
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_54_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_47_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_41_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_35_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_29_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_23_5734.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_54_6083.jpg', '/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_47_6165.jpg', '/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_41_6150.jpg', '/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_35_5862.jpg', '/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_29_5788.jpg', '/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_23_5734.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_54_6083.jpg
/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_47_6165.jpg
/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_41_6150.jpg
/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_35_5862.jpg
/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_29_5788.jpg
/home/nano/Desktop/images/18032025/14/38/image_18032025_14_38_23_5734.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345137709","1345137714","1345137603","1345137705","1345137708","1345137664"],"photo_ids_order":["1345137603","1345137664","1345137705","1345137708","1345137709","1345137714"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a470d2c7d93f4494f1eca9e019811609.jpg","text":"TemporaryFile(/tmp/multipartBody4610708652125278690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305204013,"filename":"image_18032025_14_38_29_5788.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3566298c9555f1f4b802de7b7371aa26.jpg","text":"TemporaryFile(/tmp/multipartBody4240696782753772884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305204013,"filename":"image_18032025_14_38_23_5734.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf0c7beb29463e855c3d7ca33f4be140.jpg","text":"TemporaryFile(/tmp/multipartBody6164797987852501123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305204013,"filename":"image_18032025_14_38_54_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6f8093342fcfa68bc6ba8214fbd9df89.jpg","text":"TemporaryFile(/tmp/multipartBody1745152126555950133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305204013,"filename":"image_18032025_14_38_41_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2408473a2c74d1eba3d1326eedea9640.jpg","text":"TemporaryFile(/tmp/multipartBody5311603587656302682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305204013,"filename":"image_18032025_14_38_35_5862.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac003ae9979f0e2357134c441ae1e0e0.jpg","text":"TemporaryFile(/tmp/multipartBody4401557073461214832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305204013,"filename":"image_18032025_14_38_47_6165.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345137705","file1":"1345137664","file0":"1345137603","file4":"1345137709","file5":"1345137714","file3":"1345137708"},"map_files_photo_id_array":[{"photo_id":"1345137714","filename":"file5"},{"photo_id":"1345137705","filename":"file2"},{"photo_id":"1345137709","filename":"file4"},{"photo_id":"1345137664","filename":"file1"},{"photo_id":"1345137603","filename":"file0"},{"photo_id":"1345137708","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345137709":["hashtag1","hashtag2"]},{"1345137714":["hashtag1","hashtag2"]},{"1345137603":["hashtag1","hashtag2"]},{"1345137705":["hashtag1","hashtag2"]},{"1345137708":["hashtag1","hashtag2"]},{"1345137664":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345137709, 1345137714, 1345137603, 1345137705, 1345137708, 1345137664)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.21336579322815 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:40:03.393695
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_54_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_47_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_41_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_36_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_29_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_23_5631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_54_6616.jpg', '/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_47_5609.jpg', '/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_41_5647.jpg', '/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_36_6635.jpg', '/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_29_5622.jpg', '/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_23_5631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_54_6616.jpg
/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_47_5609.jpg
/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_41_5647.jpg
/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_36_6635.jpg
/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_29_5622.jpg
/home/nano/Desktop/images/18032025/14/39/image_18032025_14_39_23_5631.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345137975","1345137957","1345137941","1345137967","1345137955","1345137943"],"photo_ids_order":["1345137941","1345137943","1345137955","1345137957","1345137967","1345137975"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/045fc0aec8dc113e5efa03d2214620b1.jpg","text":"TemporaryFile(/tmp/multipartBody4684420838170884861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305263804,"filename":"image_18032025_14_39_23_5631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e32d330c3d1a54e2366136bff85afda.jpg","text":"TemporaryFile(/tmp/multipartBody2723935982986542370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305263804,"filename":"image_18032025_14_39_36_6635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3e648195c7ec436ff45f00ea68a15bf3.jpg","text":"TemporaryFile(/tmp/multipartBody5228225190745010636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305263804,"filename":"image_18032025_14_39_54_6616.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a8fb31e0a49ec4e9d54c8fce36ac46d.jpg","text":"TemporaryFile(/tmp/multipartBody3410498813638681026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305263804,"filename":"image_18032025_14_39_29_5622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/22645b8202a0837f0091f075f2f21168.jpg","text":"TemporaryFile(/tmp/multipartBody976721214164982264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305263804,"filename":"image_18032025_14_39_41_5647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/07448e22de5d14a9f86f2a7f897ae6ed.jpg","text":"TemporaryFile(/tmp/multipartBody8184944136071261249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305263804,"filename":"image_18032025_14_39_47_5609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345137955","file1":"1345137943","file0":"1345137941","file4":"1345137967","file5":"1345137975","file3":"1345137957"},"map_files_photo_id_array":[{"photo_id":"1345137975","filename":"file5"},{"photo_id":"1345137955","filename":"file2"},{"photo_id":"1345137967","filename":"file4"},{"photo_id":"1345137943","filename":"file1"},{"photo_id":"1345137941","filename":"file0"},{"photo_id":"1345137957","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345137975":["hashtag1","hashtag2"]},{"1345137957":["hashtag1","hashtag2"]},{"1345137941":["hashtag1","hashtag2"]},{"1345137967":["hashtag1","hashtag2"]},{"1345137955":["hashtag1","hashtag2"]},{"1345137943":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345137975, 1345137957, 1345137941, 1345137967, 1345137955, 1345137943)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.558715105056763 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:41:02.524037
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_53_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_48_6005.jpg', 2), ('/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_42_6846.jpg', 2), ('/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_35_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_29_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_24_6639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_53_5656.jpg', '/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_48_6005.jpg', '/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_42_6846.jpg', '/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_35_5635.jpg', '/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_29_5638.jpg', '/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_24_6639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_53_5656.jpg
/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_48_6005.jpg
/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_42_6846.jpg
/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_35_5635.jpg
/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_29_5638.jpg
/home/nano/Desktop/images/18032025/14/40/image_18032025_14_40_24_6639.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345138170","1345138140","1345138113","1345138097","1345138099","1345138095"],"photo_ids_order":["1345138095","1345138097","1345138099","1345138113","1345138140","1345138170"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/73a6372bab3674826a98de89caab0708.jpg","text":"TemporaryFile(/tmp/multipartBody5198467605808433417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305322891,"filename":"image_18032025_14_40_24_6639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d0c16f5697dcccc0ca167809c16d4c0.jpg","text":"TemporaryFile(/tmp/multipartBody241624375359988650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305322891,"filename":"image_18032025_14_40_29_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8591607ea91cab7e5041d21be88bcdbd.jpg","text":"TemporaryFile(/tmp/multipartBody7051367023476380404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305322891,"filename":"image_18032025_14_40_35_5635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9f77139dee06264dfa8e0028376025fe.jpg","text":"TemporaryFile(/tmp/multipartBody2398081730350246730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305322891,"filename":"image_18032025_14_40_48_6005.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/799815854d99cd911b371cf47315762d.jpg","text":"TemporaryFile(/tmp/multipartBody5161125305969413370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305322891,"filename":"image_18032025_14_40_42_6846.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2bcd09a24426c50d3e193f9579d79c76.jpg","text":"TemporaryFile(/tmp/multipartBody8508377234245841802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305322891,"filename":"image_18032025_14_40_53_5656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345138099","file1":"1345138097","file0":"1345138095","file4":"1345138140","file5":"1345138170","file3":"1345138113"},"map_files_photo_id_array":[{"photo_id":"1345138170","filename":"file5"},{"photo_id":"1345138099","filename":"file2"},{"photo_id":"1345138140","filename":"file4"},{"photo_id":"1345138097","filename":"file1"},{"photo_id":"1345138095","filename":"file0"},{"photo_id":"1345138113","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345138170":["hashtag1","hashtag2"]},{"1345138140":["hashtag1","hashtag2"]},{"1345138113":["hashtag1","hashtag2"]},{"1345138097":["hashtag1","hashtag2"]},{"1345138099":["hashtag1","hashtag2"]},{"1345138095":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345138170, 1345138140, 1345138113, 1345138097, 1345138099, 1345138095)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.334043979644775 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:42:02.505293
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_54_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_48_6867.jpg', 2), ('/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_41_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_35_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_29_5837.jpg', 2), ('/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_23_5835.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_54_5784.jpg', '/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_48_6867.jpg', '/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_41_5872.jpg', '/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_35_5780.jpg', '/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_29_5837.jpg', '/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_23_5835.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_54_5784.jpg
/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_48_6867.jpg
/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_41_5872.jpg
/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_35_5780.jpg
/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_29_5837.jpg
/home/nano/Desktop/images/18032025/14/41/image_18032025_14_41_23_5835.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345138608","1345138496","1345138547","1345138573","1345138474","1345138522"],"photo_ids_order":["1345138474","1345138496","1345138522","1345138547","1345138573","1345138608"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d867835837d0effe53bfea44fab09521.jpg","text":"TemporaryFile(/tmp/multipartBody9076874387912943772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305383070,"filename":"image_18032025_14_41_23_5835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bbb1483d3630ac7f4044000e1dc6a79e.jpg","text":"TemporaryFile(/tmp/multipartBody4979700742755196076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305383070,"filename":"image_18032025_14_41_48_6867.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84c16c3437f3d63de6c50ff93f3ea6bc.jpg","text":"TemporaryFile(/tmp/multipartBody1969994919180565824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305383070,"filename":"image_18032025_14_41_35_5780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e6772e61d63ce6dc634a4be5a0ae36a.jpg","text":"TemporaryFile(/tmp/multipartBody7423218554001916203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305383070,"filename":"image_18032025_14_41_29_5837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7f6265c9e268c27e50aa54bcfbca799c.jpg","text":"TemporaryFile(/tmp/multipartBody5791608995199807595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305383070,"filename":"image_18032025_14_41_54_5784.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9048355721dcc840f7cdde5806947024.jpg","text":"TemporaryFile(/tmp/multipartBody2813487699570932177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305383070,"filename":"image_18032025_14_41_41_5872.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345138522","file1":"1345138496","file0":"1345138474","file4":"1345138573","file5":"1345138608","file3":"1345138547"},"map_files_photo_id_array":[{"photo_id":"1345138608","filename":"file5"},{"photo_id":"1345138522","filename":"file2"},{"photo_id":"1345138573","filename":"file4"},{"photo_id":"1345138496","filename":"file1"},{"photo_id":"1345138474","filename":"file0"},{"photo_id":"1345138547","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345138608":["hashtag1","hashtag2"]},{"1345138496":["hashtag1","hashtag2"]},{"1345138547":["hashtag1","hashtag2"]},{"1345138573":["hashtag1","hashtag2"]},{"1345138474":["hashtag1","hashtag2"]},{"1345138522":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345138608, 1345138496, 1345138547, 1345138573, 1345138474, 1345138522)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.20766615867615 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:43:02.642063
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_54_6071.jpg', 2), ('/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_48_5931.jpg', 2), ('/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_42_6899.jpg', 2), ('/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_35_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_29_5932.jpg', 2), ('/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_23_5785.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_54_6071.jpg', '/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_48_5931.jpg', '/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_42_6899.jpg', '/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_35_5878.jpg', '/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_29_5932.jpg', '/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_23_5785.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_54_6071.jpg
/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_48_5931.jpg
/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_42_6899.jpg
/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_35_5878.jpg
/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_29_5932.jpg
/home/nano/Desktop/images/18032025/14/42/image_18032025_14_42_23_5785.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345139130","1345139019","1345139092","1345138940","1345139134","1345138966"],"photo_ids_order":["1345138940","1345138966","1345139019","1345139092","1345139130","1345139134"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db24a8927dfbd6f42cd329307676ab46.jpg","text":"TemporaryFile(/tmp/multipartBody5370756435746060868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305443116,"filename":"image_18032025_14_42_29_5932.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9de82b5f9baab9801a935605afa963e6.jpg","text":"TemporaryFile(/tmp/multipartBody3312365690059459002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305443116,"filename":"image_18032025_14_42_42_6899.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b426ad75ecd2611a0ea487bf7d3f5d0.jpg","text":"TemporaryFile(/tmp/multipartBody2441753413916917280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305443116,"filename":"image_18032025_14_42_35_5878.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9b69b226de45bab9a7f887695e94274e.jpg","text":"TemporaryFile(/tmp/multipartBody587650414747516242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305443116,"filename":"image_18032025_14_42_54_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1285ef81d50f607cd919a41bab35ec04.jpg","text":"TemporaryFile(/tmp/multipartBody4206731109370056117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305443116,"filename":"image_18032025_14_42_23_5785.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e55227cd2e662f41b1a6211213f1dfbd.jpg","text":"TemporaryFile(/tmp/multipartBody1259422083983624410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305443116,"filename":"image_18032025_14_42_48_5931.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345139019","file1":"1345138966","file0":"1345138940","file4":"1345139130","file5":"1345139134","file3":"1345139092"},"map_files_photo_id_array":[{"photo_id":"1345139134","filename":"file5"},{"photo_id":"1345139019","filename":"file2"},{"photo_id":"1345139130","filename":"file4"},{"photo_id":"1345138966","filename":"file1"},{"photo_id":"1345138940","filename":"file0"},{"photo_id":"1345139092","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345139130":["hashtag1","hashtag2"]},{"1345139019":["hashtag1","hashtag2"]},{"1345139092":["hashtag1","hashtag2"]},{"1345138940":["hashtag1","hashtag2"]},{"1345139134":["hashtag1","hashtag2"]},{"1345138966":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345139130, 1345139019, 1345139092, 1345138940, 1345139134, 1345138966)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.438392639160156 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:44:02.966310
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_54_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_48_6840.jpg', 2), ('/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_41_5991.jpg', 2), ('/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_35_5954.jpg', 2), ('/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_29_6065.jpg', 2), ('/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_23_5893.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_54_5810.jpg', '/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_48_6840.jpg', '/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_41_5991.jpg', '/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_35_5954.jpg', '/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_29_6065.jpg', '/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_23_5893.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_54_5810.jpg
/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_48_6840.jpg
/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_41_5991.jpg
/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_35_5954.jpg
/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_29_6065.jpg
/home/nano/Desktop/images/18032025/14/43/image_18032025_14_43_23_5893.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345139177","1345139165","1345139173","1345139170","1345139181","1345139175"],"photo_ids_order":["1345139165","1345139170","1345139173","1345139175","1345139177","1345139181"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d190c5437c662e50d3120062cae69e86.jpg","text":"TemporaryFile(/tmp/multipartBody6749661512250887709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305503574,"filename":"image_18032025_14_43_29_6065.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4585540702b58f3ccc57d9afed698880.jpg","text":"TemporaryFile(/tmp/multipartBody4819548143985577386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305503574,"filename":"image_18032025_14_43_54_5810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/25193327b109d334e0307c0d45da18de.jpg","text":"TemporaryFile(/tmp/multipartBody2788293030314782978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305503574,"filename":"image_18032025_14_43_41_5991.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e70a7739b9c919d01240685cca1b356c.jpg","text":"TemporaryFile(/tmp/multipartBody6191774548788713738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305503574,"filename":"image_18032025_14_43_48_6840.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6b57c80897355cf901c63f4d1803d0a9.jpg","text":"TemporaryFile(/tmp/multipartBody8600780277685150824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305503574,"filename":"image_18032025_14_43_23_5893.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e74c3ae021c17111b9abc737888b409f.jpg","text":"TemporaryFile(/tmp/multipartBody5148156367036331789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305503574,"filename":"image_18032025_14_43_35_5954.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345139173","file1":"1345139170","file0":"1345139165","file4":"1345139177","file5":"1345139181","file3":"1345139175"},"map_files_photo_id_array":[{"photo_id":"1345139181","filename":"file5"},{"photo_id":"1345139173","filename":"file2"},{"photo_id":"1345139177","filename":"file4"},{"photo_id":"1345139170","filename":"file1"},{"photo_id":"1345139165","filename":"file0"},{"photo_id":"1345139175","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345139177":["hashtag1","hashtag2"]},{"1345139165":["hashtag1","hashtag2"]},{"1345139173":["hashtag1","hashtag2"]},{"1345139170":["hashtag1","hashtag2"]},{"1345139181":["hashtag1","hashtag2"]},{"1345139175":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345139177, 1345139165, 1345139173, 1345139170, 1345139181, 1345139175)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.38706159591675 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:45:02.711966
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_53_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_47_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_42_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_35_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_30_6599.jpg', 2), ('/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_23_5616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_53_5655.jpg', '/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_47_5638.jpg', '/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_42_6629.jpg', '/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_35_5641.jpg', '/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_30_6599.jpg', '/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_23_5616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_53_5655.jpg
/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_47_5638.jpg
/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_42_6629.jpg
/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_35_5641.jpg
/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_30_6599.jpg
/home/nano/Desktop/images/18032025/14/44/image_18032025_14_44_23_5616.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345139447","1345139452","1345139356","1345139463","1345139457","1345139460"],"photo_ids_order":["1345139356","1345139447","1345139452","1345139457","1345139460","1345139463"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19a1574ce10168779d63fe8ba8ebf58d.jpg","text":"TemporaryFile(/tmp/multipartBody4182191426651974289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305563083,"filename":"image_18032025_14_44_47_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6d7e98fb1c213b8af75b174c36fbe00.jpg","text":"TemporaryFile(/tmp/multipartBody2775871640260411437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305563083,"filename":"image_18032025_14_44_42_6629.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/25a6970bb684c132c1a69f87026d7e73.jpg","text":"TemporaryFile(/tmp/multipartBody348883494922546261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305563083,"filename":"image_18032025_14_44_53_5655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe6461c6b8a99d773e6d98c4292eecbb.jpg","text":"TemporaryFile(/tmp/multipartBody7436062694159208977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305563083,"filename":"image_18032025_14_44_23_5616.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/328a73be7ea5f421fc9778cd7e5e9cac.jpg","text":"TemporaryFile(/tmp/multipartBody4776970913126364134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305563083,"filename":"image_18032025_14_44_35_5641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a82cdb001f1a1cbd1cdd90ed0e306ce5.jpg","text":"TemporaryFile(/tmp/multipartBody6653800317205273824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305563083,"filename":"image_18032025_14_44_30_6599.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345139452","file1":"1345139447","file0":"1345139356","file4":"1345139460","file5":"1345139463","file3":"1345139457"},"map_files_photo_id_array":[{"photo_id":"1345139463","filename":"file5"},{"photo_id":"1345139452","filename":"file2"},{"photo_id":"1345139460","filename":"file4"},{"photo_id":"1345139447","filename":"file1"},{"photo_id":"1345139356","filename":"file0"},{"photo_id":"1345139457","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345139447":["hashtag1","hashtag2"]},{"1345139452":["hashtag1","hashtag2"]},{"1345139356":["hashtag1","hashtag2"]},{"1345139463":["hashtag1","hashtag2"]},{"1345139457":["hashtag1","hashtag2"]},{"1345139460":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345139447, 1345139452, 1345139356, 1345139463, 1345139457, 1345139460)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.850042819976807 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:46:02.931056
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_54_6668.jpg', 2), ('/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_47_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_41_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_36_6622.jpg', 2), ('/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_29_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_23_5638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_54_6668.jpg', '/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_47_5642.jpg', '/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_41_5670.jpg', '/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_36_6622.jpg', '/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_29_5640.jpg', '/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_23_5638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_54_6668.jpg
/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_47_5642.jpg
/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_41_5670.jpg
/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_36_6622.jpg
/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_29_5640.jpg
/home/nano/Desktop/images/18032025/14/45/image_18032025_14_45_23_5638.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345139696","1345139657","1345139717","1345139545","1345139632","1345139533"],"photo_ids_order":["1345139533","1345139545","1345139632","1345139657","1345139696","1345139717"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d41180d8031e045105660b4f4aa6e3f.jpg","text":"TemporaryFile(/tmp/multipartBody4063938991872421189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305623299,"filename":"image_18032025_14_45_29_5640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/34523a29c2b3a106b616289ee71fc9da.jpg","text":"TemporaryFile(/tmp/multipartBody6371154535475608539asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305623299,"filename":"image_18032025_14_45_36_6622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4a3492a6829ee6ee27fc6344d221e806.jpg","text":"TemporaryFile(/tmp/multipartBody3209811739656727916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305623299,"filename":"image_18032025_14_45_23_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d2fa7a7ef2749584247977c19989ac1e.jpg","text":"TemporaryFile(/tmp/multipartBody8174228973844052675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305623299,"filename":"image_18032025_14_45_47_5642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9412eafec52753980e11e1a23d73a827.jpg","text":"TemporaryFile(/tmp/multipartBody5809254031632887514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305623299,"filename":"image_18032025_14_45_41_5670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c57f581f3b39ab956d5237671f06782.jpg","text":"TemporaryFile(/tmp/multipartBody811009804913907082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305623299,"filename":"image_18032025_14_45_54_6668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345139632","file1":"1345139545","file0":"1345139533","file4":"1345139696","file5":"1345139717","file3":"1345139657"},"map_files_photo_id_array":[{"photo_id":"1345139717","filename":"file5"},{"photo_id":"1345139632","filename":"file2"},{"photo_id":"1345139696","filename":"file4"},{"photo_id":"1345139545","filename":"file1"},{"photo_id":"1345139533","filename":"file0"},{"photo_id":"1345139657","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345139696":["hashtag1","hashtag2"]},{"1345139657":["hashtag1","hashtag2"]},{"1345139717":["hashtag1","hashtag2"]},{"1345139545":["hashtag1","hashtag2"]},{"1345139632":["hashtag1","hashtag2"]},{"1345139533":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345139696, 1345139657, 1345139717, 1345139545, 1345139632, 1345139533)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.12291765213013 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:47:03.178885
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_53_5698.jpg', 2), ('/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_47_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_42_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_35_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_29_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_24_6635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_53_5698.jpg', '/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_47_5649.jpg', '/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_42_6632.jpg', '/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_35_5645.jpg', '/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_29_5621.jpg', '/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_24_6635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_53_5698.jpg
/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_47_5649.jpg
/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_42_6632.jpg
/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_35_5645.jpg
/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_29_5621.jpg
/home/nano/Desktop/images/18032025/14/46/image_18032025_14_46_24_6635.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345139765","1345139756","1345139761","1345139758","1345139767","1345139763"],"photo_ids_order":["1345139756","1345139758","1345139761","1345139763","1345139765","1345139767"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b0a6ad385b9a98f5b7b8b7a7773b3f45.jpg","text":"TemporaryFile(/tmp/multipartBody4742794778281334619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305683539,"filename":"image_18032025_14_46_29_5621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10eac4c272a7885da8fb903d304b68d9.jpg","text":"TemporaryFile(/tmp/multipartBody9119692069178190829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305683539,"filename":"image_18032025_14_46_53_5698.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1c2ee2a967e3bd35203813e56b85df20.jpg","text":"TemporaryFile(/tmp/multipartBody7825835045468359614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305683539,"filename":"image_18032025_14_46_42_6632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5526fc5c811fe0bd69500e052929a51.jpg","text":"TemporaryFile(/tmp/multipartBody6030708926401262847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305683539,"filename":"image_18032025_14_46_47_5649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/25687df0ee5e16534fedfd3df77a5db6.jpg","text":"TemporaryFile(/tmp/multipartBody6903446361748233903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305683539,"filename":"image_18032025_14_46_24_6635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/34339dcca7e925703f3a3bd545a34038.jpg","text":"TemporaryFile(/tmp/multipartBody3460095125421718120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305683539,"filename":"image_18032025_14_46_35_5645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345139761","file1":"1345139758","file0":"1345139756","file4":"1345139765","file5":"1345139767","file3":"1345139763"},"map_files_photo_id_array":[{"photo_id":"1345139767","filename":"file5"},{"photo_id":"1345139761","filename":"file2"},{"photo_id":"1345139765","filename":"file4"},{"photo_id":"1345139758","filename":"file1"},{"photo_id":"1345139756","filename":"file0"},{"photo_id":"1345139763","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345139765":["hashtag1","hashtag2"]},{"1345139756":["hashtag1","hashtag2"]},{"1345139761":["hashtag1","hashtag2"]},{"1345139758":["hashtag1","hashtag2"]},{"1345139767":["hashtag1","hashtag2"]},{"1345139763":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345139765, 1345139756, 1345139761, 1345139758, 1345139767, 1345139763)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.442728996276855 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:48:03.088407
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_54_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_48_6773.jpg', 2), ('/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_41_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_35_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_29_5717.jpg', 2), ('/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_24_6763.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_54_5808.jpg', '/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_48_6773.jpg', '/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_41_5755.jpg', '/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_35_5834.jpg', '/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_29_5717.jpg', '/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_24_6763.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_54_5808.jpg
/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_48_6773.jpg
/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_41_5755.jpg
/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_35_5834.jpg
/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_29_5717.jpg
/home/nano/Desktop/images/18032025/14/47/image_18032025_14_47_24_6763.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345139805","1345139801","1345139794","1345139797","1345139815","1345139809"],"photo_ids_order":["1345139794","1345139797","1345139801","1345139805","1345139809","1345139815"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a411e624ee696d799715b1f76ddb4d56.jpg","text":"TemporaryFile(/tmp/multipartBody5464950508262780669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305743502,"filename":"image_18032025_14_47_35_5834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90448b6c0f02134b3aa430412d280a41.jpg","text":"TemporaryFile(/tmp/multipartBody8844633952240689440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305743502,"filename":"image_18032025_14_47_41_5755.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85ac2ff40c0193980ceafbbd8738de83.jpg","text":"TemporaryFile(/tmp/multipartBody7130110942466743363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305743502,"filename":"image_18032025_14_47_54_5808.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/631fc3310e12885e27ceb0a52f7f3743.jpg","text":"TemporaryFile(/tmp/multipartBody3575609808839902824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305743502,"filename":"image_18032025_14_47_48_6773.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/237831d1c3518e19cfcc20a2362fb4ce.jpg","text":"TemporaryFile(/tmp/multipartBody8587071819484923988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305743502,"filename":"image_18032025_14_47_24_6763.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/573dd4b9e984fa5de5ea67115b5ac274.jpg","text":"TemporaryFile(/tmp/multipartBody5814030157235252108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305743502,"filename":"image_18032025_14_47_29_5717.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345139801","file1":"1345139797","file0":"1345139794","file4":"1345139809","file5":"1345139815","file3":"1345139805"},"map_files_photo_id_array":[{"photo_id":"1345139815","filename":"file5"},{"photo_id":"1345139801","filename":"file2"},{"photo_id":"1345139809","filename":"file4"},{"photo_id":"1345139797","filename":"file1"},{"photo_id":"1345139794","filename":"file0"},{"photo_id":"1345139805","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345139805":["hashtag1","hashtag2"]},{"1345139801":["hashtag1","hashtag2"]},{"1345139794":["hashtag1","hashtag2"]},{"1345139797":["hashtag1","hashtag2"]},{"1345139815":["hashtag1","hashtag2"]},{"1345139809":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345139805, 1345139801, 1345139794, 1345139797, 1345139815, 1345139809)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.472297191619873 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:49:03.336981
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_53_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_47_5757.jpg', 2), ('/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_42_6809.jpg', 2), ('/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_35_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_29_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_23_5802.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_53_5646.jpg', '/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_47_5757.jpg', '/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_42_6809.jpg', '/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_35_5794.jpg', '/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_29_5738.jpg', '/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_23_5802.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_53_5646.jpg
/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_47_5757.jpg
/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_42_6809.jpg
/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_35_5794.jpg
/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_29_5738.jpg
/home/nano/Desktop/images/18032025/14/48/image_18032025_14_48_23_5802.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345139840","1345139834","1345139872","1345139859","1345139850","1345139844"],"photo_ids_order":["1345139834","1345139840","1345139844","1345139850","1345139859","1345139872"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18bb41c949bf5711f4aa550c9cd592c9.jpg","text":"TemporaryFile(/tmp/multipartBody2576334213092445464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305803824,"filename":"image_18032025_14_48_47_5757.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf67d6663f19ace16d383e7ee13aa66b.jpg","text":"TemporaryFile(/tmp/multipartBody2238242847133236943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305803824,"filename":"image_18032025_14_48_53_5646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ea7b414fe9763ef823b777e25e155ff3.jpg","text":"TemporaryFile(/tmp/multipartBody3056429538138180266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305803824,"filename":"image_18032025_14_48_23_5802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c05b34180949d65d0796a8fb8132f08.jpg","text":"TemporaryFile(/tmp/multipartBody1639335735199193446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305803824,"filename":"image_18032025_14_48_29_5738.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4fa62344c87a67db8cd584d778c92b24.jpg","text":"TemporaryFile(/tmp/multipartBody7090824904769733914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305803824,"filename":"image_18032025_14_48_35_5794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b35f092f31389f2f43613b545b43ad08.jpg","text":"TemporaryFile(/tmp/multipartBody7364902973489387258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305803824,"filename":"image_18032025_14_48_42_6809.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345139844","file1":"1345139840","file0":"1345139834","file4":"1345139859","file5":"1345139872","file3":"1345139850"},"map_files_photo_id_array":[{"photo_id":"1345139872","filename":"file5"},{"photo_id":"1345139844","filename":"file2"},{"photo_id":"1345139859","filename":"file4"},{"photo_id":"1345139840","filename":"file1"},{"photo_id":"1345139834","filename":"file0"},{"photo_id":"1345139850","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345139840":["hashtag1","hashtag2"]},{"1345139834":["hashtag1","hashtag2"]},{"1345139872":["hashtag1","hashtag2"]},{"1345139859":["hashtag1","hashtag2"]},{"1345139850":["hashtag1","hashtag2"]},{"1345139844":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345139840, 1345139834, 1345139872, 1345139859, 1345139850, 1345139844)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.994948863983154 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:50:02.458977
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_53_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_48_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_41_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_36_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_29_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_23_5621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_53_5615.jpg', '/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_48_6640.jpg', '/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_41_5624.jpg', '/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_36_6643.jpg', '/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_29_5630.jpg', '/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_23_5621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_53_5615.jpg
/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_48_6640.jpg
/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_41_5624.jpg
/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_36_6643.jpg
/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_29_5630.jpg
/home/nano/Desktop/images/18032025/14/49/image_18032025_14_49_23_5621.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345139971","1345139980","1345139974","1345139983","1345139977","1345139988"],"photo_ids_order":["1345139971","1345139974","1345139977","1345139980","1345139983","1345139988"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1467c51bf96dddd242efcf520d0bc349.jpg","text":"TemporaryFile(/tmp/multipartBody155176284410425873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305862817,"filename":"image_18032025_14_49_53_5615.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1457735fb05c3d8cff3707b8e7354e89.jpg","text":"TemporaryFile(/tmp/multipartBody5830140368281775107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305862817,"filename":"image_18032025_14_49_36_6643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7a97bbd11d0628304c4c5d70be85067a.jpg","text":"TemporaryFile(/tmp/multipartBody4088065991660830562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305862817,"filename":"image_18032025_14_49_48_6640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/37f5e8f004b16044cdf9d7fdb91154e1.jpg","text":"TemporaryFile(/tmp/multipartBody1471120520735104957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305862817,"filename":"image_18032025_14_49_29_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aa9e3020af9ead046ec812c543d5dccf.jpg","text":"TemporaryFile(/tmp/multipartBody4569205223934025479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305862817,"filename":"image_18032025_14_49_41_5624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d022f587ad584129474033274f6983f9.jpg","text":"TemporaryFile(/tmp/multipartBody3845303247038722196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305862817,"filename":"image_18032025_14_49_23_5621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345139977","file1":"1345139974","file0":"1345139971","file4":"1345139983","file5":"1345139988","file3":"1345139980"},"map_files_photo_id_array":[{"photo_id":"1345139988","filename":"file5"},{"photo_id":"1345139977","filename":"file2"},{"photo_id":"1345139983","filename":"file4"},{"photo_id":"1345139974","filename":"file1"},{"photo_id":"1345139971","filename":"file0"},{"photo_id":"1345139980","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345139971":["hashtag1","hashtag2"]},{"1345139980":["hashtag1","hashtag2"]},{"1345139974":["hashtag1","hashtag2"]},{"1345139983":["hashtag1","hashtag2"]},{"1345139977":["hashtag1","hashtag2"]},{"1345139988":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345139971, 1345139980, 1345139974, 1345139983, 1345139977, 1345139988)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.832759618759155 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:51:02.554028
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_53_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_47_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_41_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_35_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_30_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_24_6826.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_53_5660.jpg', '/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_47_6632.jpg', '/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_41_5631.jpg', '/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_35_5635.jpg', '/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_30_5776.jpg', '/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_24_6826.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_53_5660.jpg
/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_47_6632.jpg
/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_41_5631.jpg
/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_35_5635.jpg
/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_30_5776.jpg
/home/nano/Desktop/images/18032025/14/50/image_18032025_14_50_24_6826.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345140021","1345140015","1345140030","1345140024","1345140018","1345140012"],"photo_ids_order":["1345140012","1345140015","1345140018","1345140021","1345140024","1345140030"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e1918771ddd48f355b29c966d6d9ada.jpg","text":"TemporaryFile(/tmp/multipartBody7014243655839160520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305922908,"filename":"image_18032025_14_50_35_5635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8358303cc06082cc588416b0fee088a4.jpg","text":"TemporaryFile(/tmp/multipartBody6249986832919238943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305922908,"filename":"image_18032025_14_50_47_6632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/05e5e1349d9c12339361531415337b2b.jpg","text":"TemporaryFile(/tmp/multipartBody8595491928510442912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305922908,"filename":"image_18032025_14_50_24_6826.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f102995b85df6e159f26608058dfb7ef.jpg","text":"TemporaryFile(/tmp/multipartBody8953160476556823151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305922908,"filename":"image_18032025_14_50_30_5776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/38dfc223ef39d7da48cc367c60acc4bb.jpg","text":"TemporaryFile(/tmp/multipartBody8153628335398391077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305922908,"filename":"image_18032025_14_50_41_5631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bfcff1ee658412b0389e8c8e74ffd9c9.jpg","text":"TemporaryFile(/tmp/multipartBody99810184848614693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305922908,"filename":"image_18032025_14_50_53_5660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345140018","file1":"1345140015","file0":"1345140012","file4":"1345140024","file5":"1345140030","file3":"1345140021"},"map_files_photo_id_array":[{"photo_id":"1345140030","filename":"file5"},{"photo_id":"1345140018","filename":"file2"},{"photo_id":"1345140024","filename":"file4"},{"photo_id":"1345140015","filename":"file1"},{"photo_id":"1345140012","filename":"file0"},{"photo_id":"1345140021","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345140021":["hashtag1","hashtag2"]},{"1345140015":["hashtag1","hashtag2"]},{"1345140030":["hashtag1","hashtag2"]},{"1345140024":["hashtag1","hashtag2"]},{"1345140018":["hashtag1","hashtag2"]},{"1345140012":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345140021, 1345140015, 1345140030, 1345140024, 1345140018, 1345140012)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.794742822647095 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:52:02.771754
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_53_5912.jpg', 2), ('/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_47_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_41_5726.jpg', 2), ('/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_36_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_29_5607.jpg', 2), ('/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_23_5630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_53_5912.jpg', '/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_47_5750.jpg', '/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_41_5726.jpg', '/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_36_6655.jpg', '/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_29_5607.jpg', '/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_23_5630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_53_5912.jpg
/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_47_5750.jpg
/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_41_5726.jpg
/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_36_6655.jpg
/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_29_5607.jpg
/home/nano/Desktop/images/18032025/14/51/image_18032025_14_51_23_5630.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345140062","1345140056","1345140065","1345140059","1345140053","1345140049"],"photo_ids_order":["1345140049","1345140053","1345140056","1345140059","1345140062","1345140065"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c0e88630d8fbfb2003d35e45c911c91.jpg","text":"TemporaryFile(/tmp/multipartBody6336347062136198689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305983166,"filename":"image_18032025_14_51_29_5607.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad6cb65832534aa6cf647255271d81a3.jpg","text":"TemporaryFile(/tmp/multipartBody4223991479482768757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305983166,"filename":"image_18032025_14_51_41_5726.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2bc51ee80f9d02942a07b44e76561b94.jpg","text":"TemporaryFile(/tmp/multipartBody8741449640766011933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305983166,"filename":"image_18032025_14_51_23_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3189ead1510e87357799c6687ae348b.jpg","text":"TemporaryFile(/tmp/multipartBody7110499862413931285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305983166,"filename":"image_18032025_14_51_36_6655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f4db0fb7bda725ad8f2771a3281d1319.jpg","text":"TemporaryFile(/tmp/multipartBody1087224926382149881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305983166,"filename":"image_18032025_14_51_47_5750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/227065c3c9b382a762ef6209a0f5536a.jpg","text":"TemporaryFile(/tmp/multipartBody4603431210814731887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742305983166,"filename":"image_18032025_14_51_53_5912.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345140056","file1":"1345140053","file0":"1345140049","file4":"1345140062","file5":"1345140065","file3":"1345140059"},"map_files_photo_id_array":[{"photo_id":"1345140065","filename":"file5"},{"photo_id":"1345140056","filename":"file2"},{"photo_id":"1345140062","filename":"file4"},{"photo_id":"1345140053","filename":"file1"},{"photo_id":"1345140049","filename":"file0"},{"photo_id":"1345140059","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345140062":["hashtag1","hashtag2"]},{"1345140056":["hashtag1","hashtag2"]},{"1345140065":["hashtag1","hashtag2"]},{"1345140059":["hashtag1","hashtag2"]},{"1345140053":["hashtag1","hashtag2"]},{"1345140049":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345140062, 1345140056, 1345140065, 1345140059, 1345140053, 1345140049)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.413862466812134 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:53:02.657227
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_53_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_48_5816.jpg', 2), ('/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_42_6822.jpg', 2), ('/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_35_5774.jpg', 2), ('/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_29_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_23_6013.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_53_5881.jpg', '/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_48_5816.jpg', '/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_42_6822.jpg', '/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_35_5774.jpg', '/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_29_5805.jpg', '/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_23_6013.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_53_5881.jpg
/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_48_5816.jpg
/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_42_6822.jpg
/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_35_5774.jpg
/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_29_5805.jpg
/home/nano/Desktop/images/18032025/14/52/image_18032025_14_52_23_6013.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345140087","1345140091","1345140104","1345140094","1345140097","1345140100"],"photo_ids_order":["1345140087","1345140091","1345140094","1345140097","1345140100","1345140104"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2ca519b9333dfd4233321de4cdaec04.jpg","text":"TemporaryFile(/tmp/multipartBody156587430630369894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306043225,"filename":"image_18032025_14_52_53_5881.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/66a64dd90311d3f4569d9816bf8d0a97.jpg","text":"TemporaryFile(/tmp/multipartBody163034176728594653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306043225,"filename":"image_18032025_14_52_48_5816.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2dff00535b289c35863d6660f9da68e7.jpg","text":"TemporaryFile(/tmp/multipartBody7400266200369827578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306043225,"filename":"image_18032025_14_52_23_6013.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/88c20db80ff2c9b75cb2c232e1cf310c.jpg","text":"TemporaryFile(/tmp/multipartBody3345711436009230769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306043225,"filename":"image_18032025_14_52_42_6822.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b7576783edebb4e6905f204d15cd6da2.jpg","text":"TemporaryFile(/tmp/multipartBody6690695928365478521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306043225,"filename":"image_18032025_14_52_35_5774.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49733272ea204ae2d4f3d5ef0460cd5d.jpg","text":"TemporaryFile(/tmp/multipartBody4408427334767590253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306043225,"filename":"image_18032025_14_52_29_5805.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345140094","file1":"1345140091","file0":"1345140087","file4":"1345140100","file5":"1345140104","file3":"1345140097"},"map_files_photo_id_array":[{"photo_id":"1345140104","filename":"file5"},{"photo_id":"1345140094","filename":"file2"},{"photo_id":"1345140100","filename":"file4"},{"photo_id":"1345140091","filename":"file1"},{"photo_id":"1345140087","filename":"file0"},{"photo_id":"1345140097","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345140087":["hashtag1","hashtag2"]},{"1345140091":["hashtag1","hashtag2"]},{"1345140104":["hashtag1","hashtag2"]},{"1345140094":["hashtag1","hashtag2"]},{"1345140097":["hashtag1","hashtag2"]},{"1345140100":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345140087, 1345140091, 1345140104, 1345140094, 1345140097, 1345140100)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.113579511642456 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:54:03.275553
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_53_5762.jpg', 2), ('/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_48_6766.jpg', 2), ('/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_41_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_35_5826.jpg', 2), ('/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_29_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_23_5855.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_53_5762.jpg', '/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_48_6766.jpg', '/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_41_6091.jpg', '/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_35_5826.jpg', '/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_29_5847.jpg', '/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_23_5855.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_53_5762.jpg
/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_48_6766.jpg
/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_41_6091.jpg
/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_35_5826.jpg
/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_29_5847.jpg
/home/nano/Desktop/images/18032025/14/53/image_18032025_14_53_23_5855.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.5299630165100098 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:54:32.370416
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_48_5849.jpg', 2), ('/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_42_6756.jpg', 2), ('/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_35_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_29_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_23_6004.jpg', 2), ('/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_17_6115.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_48_5849.jpg', '/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_42_6756.jpg', '/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_35_5779.jpg', '/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_29_5819.jpg', '/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_23_6004.jpg', '/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_17_6115.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_48_5849.jpg
/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_42_6756.jpg
/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_35_5779.jpg
/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_29_5819.jpg
/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_23_6004.jpg
/home/nano/Desktop/images/18032025/14/54/image_18032025_14_54_17_6115.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345140150","1345140147","1345140173","1345140176","1345140169","1345140178"],"photo_ids_order":["1345140147","1345140150","1345140169","1345140173","1345140176","1345140178"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8d3d37f2e04213ccf6d0e9f100cd03d.jpg","text":"TemporaryFile(/tmp/multipartBody6848892053649909146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306132803,"filename":"image_18032025_14_54_42_6756.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a6308519c50f136205583590ed5fd2b.jpg","text":"TemporaryFile(/tmp/multipartBody30222669964561687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306132803,"filename":"image_18032025_14_54_48_5849.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cc57ab104b42d66dddc2a15a09c2ada1.jpg","text":"TemporaryFile(/tmp/multipartBody7983610236077277878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306132803,"filename":"image_18032025_14_54_29_5819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2a0275572907b187a58843b9b9e3a7e.jpg","text":"TemporaryFile(/tmp/multipartBody524670904549515890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306132803,"filename":"image_18032025_14_54_23_6004.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f0e7faebb006732ff361f2c607f305b.jpg","text":"TemporaryFile(/tmp/multipartBody7679134654208157016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306132803,"filename":"image_18032025_14_54_35_5779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d08c25ad0b569a05cb22a766c7d2d3c.jpg","text":"TemporaryFile(/tmp/multipartBody4413419414367859325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306132803,"filename":"image_18032025_14_54_17_6115.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345140169","file1":"1345140150","file0":"1345140147","file4":"1345140176","file5":"1345140178","file3":"1345140173"},"map_files_photo_id_array":[{"photo_id":"1345140178","filename":"file5"},{"photo_id":"1345140169","filename":"file2"},{"photo_id":"1345140176","filename":"file4"},{"photo_id":"1345140150","filename":"file1"},{"photo_id":"1345140147","filename":"file0"},{"photo_id":"1345140173","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345140150":["hashtag1","hashtag2"]},{"1345140147":["hashtag1","hashtag2"]},{"1345140173":["hashtag1","hashtag2"]},{"1345140176":["hashtag1","hashtag2"]},{"1345140169":["hashtag1","hashtag2"]},{"1345140178":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345140150, 1345140147, 1345140173, 1345140176, 1345140169, 1345140178)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.14127850532532 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:55:32.456413
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_54_5922.jpg', 2), ('/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_48_6708.jpg', 2), ('/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_41_5708.jpg', 2), ('/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_35_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_30_6685.jpg', 2), ('/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_23_5641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_54_5922.jpg', '/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_48_6708.jpg', '/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_41_5708.jpg', '/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_35_5633.jpg', '/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_30_6685.jpg', '/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_23_5641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_54_5922.jpg
/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_48_6708.jpg
/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_41_5708.jpg
/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_35_5633.jpg
/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_30_6685.jpg
/home/nano/Desktop/images/18032025/14/55/image_18032025_14_55_23_5641.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345140246","1345140240","1345140234","1345140254","1345140256","1345140250"],"photo_ids_order":["1345140234","1345140240","1345140246","1345140250","1345140254","1345140256"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/09c0edc24133b878872c2346aa8fe632.jpg","text":"TemporaryFile(/tmp/multipartBody5153997606687382735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306192855,"filename":"image_18032025_14_55_41_5708.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/80ac54a9ad905472cbd5ffef09402bc1.jpg","text":"TemporaryFile(/tmp/multipartBody1018551571999060848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306192855,"filename":"image_18032025_14_55_48_6708.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6734a81d0d1c46147e9f25d2482d2016.jpg","text":"TemporaryFile(/tmp/multipartBody3797652196307401543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306192855,"filename":"image_18032025_14_55_54_5922.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be7ebca9b9f6f7c602d8483944b1dc44.jpg","text":"TemporaryFile(/tmp/multipartBody3089168686961717161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306192855,"filename":"image_18032025_14_55_30_6685.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19356165a75f51c0550c254c6d7ed968.jpg","text":"TemporaryFile(/tmp/multipartBody4418318009206495191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306192855,"filename":"image_18032025_14_55_23_5641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a97110df592a7728a13796e30e373a0.jpg","text":"TemporaryFile(/tmp/multipartBody4324949861384289377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306192855,"filename":"image_18032025_14_55_35_5633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345140246","file1":"1345140240","file0":"1345140234","file4":"1345140254","file5":"1345140256","file3":"1345140250"},"map_files_photo_id_array":[{"photo_id":"1345140256","filename":"file5"},{"photo_id":"1345140246","filename":"file2"},{"photo_id":"1345140254","filename":"file4"},{"photo_id":"1345140240","filename":"file1"},{"photo_id":"1345140234","filename":"file0"},{"photo_id":"1345140250","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345140246":["hashtag1","hashtag2"]},{"1345140240":["hashtag1","hashtag2"]},{"1345140234":["hashtag1","hashtag2"]},{"1345140254":["hashtag1","hashtag2"]},{"1345140256":["hashtag1","hashtag2"]},{"1345140250":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345140246, 1345140240, 1345140234, 1345140254, 1345140256, 1345140250)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.49688172340393 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:56:32.577840
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_53_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_47_5900.jpg', 2), ('/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_41_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_35_5783.jpg', 2), ('/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_29_6049.jpg', 2), ('/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_23_5844.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_53_6042.jpg', '/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_47_5900.jpg', '/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_41_5920.jpg', '/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_35_5783.jpg', '/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_29_6049.jpg', '/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_23_5844.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_53_6042.jpg
/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_47_5900.jpg
/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_41_5920.jpg
/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_35_5783.jpg
/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_29_6049.jpg
/home/nano/Desktop/images/18032025/14/56/image_18032025_14_56_23_5844.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345140279","1345140287","1345140283","1345140337","1345140319","1345140288"],"photo_ids_order":["1345140279","1345140283","1345140287","1345140288","1345140319","1345140337"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad963b95e7d55c16bed40b71b45c9ab8.jpg","text":"TemporaryFile(/tmp/multipartBody571346333950052029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306253051,"filename":"image_18032025_14_56_53_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5bc4341c49bbcf54ea847f3b3d617bce.jpg","text":"TemporaryFile(/tmp/multipartBody2883347603957359914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306253051,"filename":"image_18032025_14_56_41_5920.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d46b4fd79f7b2b5397ea1cc0193cd9c8.jpg","text":"TemporaryFile(/tmp/multipartBody6236474146201965240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306253051,"filename":"image_18032025_14_56_47_5900.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0d7c16f1b73a8910c91a4f367b33b31.jpg","text":"TemporaryFile(/tmp/multipartBody1444040985904509685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306253051,"filename":"image_18032025_14_56_23_5844.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52bbdd12306c4cb54a68e4dd4e3109ab.jpg","text":"TemporaryFile(/tmp/multipartBody3922461728802811464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306253051,"filename":"image_18032025_14_56_29_6049.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cb13648bac79f14f6018c8e735cab9e8.jpg","text":"TemporaryFile(/tmp/multipartBody433617354774521936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306253051,"filename":"image_18032025_14_56_35_5783.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345140287","file1":"1345140283","file0":"1345140279","file4":"1345140319","file5":"1345140337","file3":"1345140288"},"map_files_photo_id_array":[{"photo_id":"1345140337","filename":"file5"},{"photo_id":"1345140287","filename":"file2"},{"photo_id":"1345140319","filename":"file4"},{"photo_id":"1345140283","filename":"file1"},{"photo_id":"1345140279","filename":"file0"},{"photo_id":"1345140288","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345140279":["hashtag1","hashtag2"]},{"1345140287":["hashtag1","hashtag2"]},{"1345140283":["hashtag1","hashtag2"]},{"1345140337":["hashtag1","hashtag2"]},{"1345140319":["hashtag1","hashtag2"]},{"1345140288":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345140279, 1345140287, 1345140283, 1345140337, 1345140319, 1345140288)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.95747637748718 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:57:32.737619
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_53_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_48_5842.jpg', 2), ('/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_42_6751.jpg', 2), ('/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_35_5824.jpg', 2), ('/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_29_5912.jpg', 2), ('/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_23_5961.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_53_5810.jpg', '/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_48_5842.jpg', '/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_42_6751.jpg', '/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_35_5824.jpg', '/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_29_5912.jpg', '/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_23_5961.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_53_5810.jpg
/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_48_5842.jpg
/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_42_6751.jpg
/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_35_5824.jpg
/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_29_5912.jpg
/home/nano/Desktop/images/18032025/14/57/image_18032025_14_57_23_5961.jpg
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 14:59:03.244051
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_53_5944.jpg', 2), ('/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_47_5903.jpg', 2), ('/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_41_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_36_5951.jpg', 2), ('/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_30_6082.jpg', 2), ('/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_24_6791.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_53_5944.jpg', '/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_47_5903.jpg', '/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_41_5656.jpg', '/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_36_5951.jpg', '/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_30_6082.jpg', '/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_24_6791.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_53_5944.jpg
/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_47_5903.jpg
/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_41_5656.jpg
/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_36_5951.jpg
/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_30_6082.jpg
/home/nano/Desktop/images/18032025/14/58/image_18032025_14_58_24_6791.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345141829","1345141844","1345141838","1345141802","1345141884","1345141851"],"photo_ids_order":["1345141802","1345141829","1345141838","1345141844","1345141851","1345141884"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8575dd3d6745f57840f8d67f8ae988e5.jpg","text":"TemporaryFile(/tmp/multipartBody4973003135161156789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306403655,"filename":"image_18032025_14_58_47_5903.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd92339b31f15d9d8c664929d05bd26d.jpg","text":"TemporaryFile(/tmp/multipartBody7800945146405465577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306403655,"filename":"image_18032025_14_58_36_5951.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/48153ba927a21a0178a49364d32111da.jpg","text":"TemporaryFile(/tmp/multipartBody7810190896123044736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306403655,"filename":"image_18032025_14_58_41_5656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12ec4d566a8d714fa52f0ae9c8c6905f.jpg","text":"TemporaryFile(/tmp/multipartBody44691984421955485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306403655,"filename":"image_18032025_14_58_53_5944.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84447af3928a5cd394ae4191604d5d20.jpg","text":"TemporaryFile(/tmp/multipartBody627069464933558425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306403655,"filename":"image_18032025_14_58_24_6791.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/995024d2ade53330cf146242af07a65a.jpg","text":"TemporaryFile(/tmp/multipartBody3013550541977174992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306403655,"filename":"image_18032025_14_58_30_6082.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345141838","file1":"1345141829","file0":"1345141802","file4":"1345141851","file5":"1345141884","file3":"1345141844"},"map_files_photo_id_array":[{"photo_id":"1345141884","filename":"file5"},{"photo_id":"1345141838","filename":"file2"},{"photo_id":"1345141851","filename":"file4"},{"photo_id":"1345141829","filename":"file1"},{"photo_id":"1345141802","filename":"file0"},{"photo_id":"1345141844","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345141829":["hashtag1","hashtag2"]},{"1345141844":["hashtag1","hashtag2"]},{"1345141838":["hashtag1","hashtag2"]},{"1345141802":["hashtag1","hashtag2"]},{"1345141884":["hashtag1","hashtag2"]},{"1345141851":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345141829, 1345141844, 1345141838, 1345141802, 1345141884, 1345141851)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.46390128135681 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:00:03.070934
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_53_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_48_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_41_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_36_6653.jpg', 2), ('/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_29_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_23_5631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_53_5665.jpg', '/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_48_6640.jpg', '/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_41_5611.jpg', '/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_36_6653.jpg', '/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_29_5639.jpg', '/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_23_5631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_53_5665.jpg
/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_48_6640.jpg
/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_41_5611.jpg
/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_36_6653.jpg
/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_29_5639.jpg
/home/nano/Desktop/images/18032025/14/59/image_18032025_14_59_23_5631.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345142027","1345142036","1345142020","1345142023","1345142031","1345142016"],"photo_ids_order":["1345142016","1345142020","1345142023","1345142027","1345142031","1345142036"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cfeb20623909bb53ad767db8e3d1bc9f.jpg","text":"TemporaryFile(/tmp/multipartBody8435493411674095357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306463420,"filename":"image_18032025_14_59_36_6653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/075eee9d434a9e9df65479ef2c9b60b5.jpg","text":"TemporaryFile(/tmp/multipartBody8489712720839403844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306463420,"filename":"image_18032025_14_59_23_5631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7cb2e1abe31a7a07bfe4daf497dcb298.jpg","text":"TemporaryFile(/tmp/multipartBody3710286361010798620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306463420,"filename":"image_18032025_14_59_48_6640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/157480ffd1cec3e16e461119b77965fb.jpg","text":"TemporaryFile(/tmp/multipartBody7805677759181732460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306463420,"filename":"image_18032025_14_59_41_5611.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18ce69d074117f4cf069f8c4c75ecf2e.jpg","text":"TemporaryFile(/tmp/multipartBody8218500133749233558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306463420,"filename":"image_18032025_14_59_29_5639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bb49d0975992b14cfc503077a597010c.jpg","text":"TemporaryFile(/tmp/multipartBody6589886321299339671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306463420,"filename":"image_18032025_14_59_53_5665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345142023","file1":"1345142020","file0":"1345142016","file4":"1345142031","file5":"1345142036","file3":"1345142027"},"map_files_photo_id_array":[{"photo_id":"1345142036","filename":"file5"},{"photo_id":"1345142023","filename":"file2"},{"photo_id":"1345142031","filename":"file4"},{"photo_id":"1345142020","filename":"file1"},{"photo_id":"1345142016","filename":"file0"},{"photo_id":"1345142027","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345142027":["hashtag1","hashtag2"]},{"1345142036":["hashtag1","hashtag2"]},{"1345142020":["hashtag1","hashtag2"]},{"1345142023":["hashtag1","hashtag2"]},{"1345142031":["hashtag1","hashtag2"]},{"1345142016":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345142027, 1345142036, 1345142020, 1345142023, 1345142031, 1345142016)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.20667219161987 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:01:02.205438
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_53_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_47_5702.jpg', 2), ('/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_42_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_35_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_29_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_24_6670.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_53_5782.jpg', '/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_47_5702.jpg', '/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_42_6641.jpg', '/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_35_5614.jpg', '/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_29_5622.jpg', '/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_24_6670.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_53_5782.jpg
/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_47_5702.jpg
/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_42_6641.jpg
/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_35_5614.jpg
/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_29_5622.jpg
/home/nano/Desktop/images/18032025/15/00/image_18032025_15_00_24_6670.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345142054","1345142155","1345142071","1345142128","1345142190","1345142100"],"photo_ids_order":["1345142054","1345142071","1345142100","1345142128","1345142155","1345142190"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a6913bf4989760965a1d6641098e7f7c.jpg","text":"TemporaryFile(/tmp/multipartBody7043229911724745427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306522567,"filename":"image_18032025_15_00_53_5782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f06afefdbe6b5c1a23746c48dea3bec2.jpg","text":"TemporaryFile(/tmp/multipartBody1004405435667911627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306522567,"filename":"image_18032025_15_00_29_5622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e7652f03a826868d39706ee2a93b1cf6.jpg","text":"TemporaryFile(/tmp/multipartBody4078464129705068727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306522567,"filename":"image_18032025_15_00_47_5702.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e0c4ce2eb60af3c857c5bfa7ce26f2a.jpg","text":"TemporaryFile(/tmp/multipartBody2651381458438748793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306522567,"filename":"image_18032025_15_00_35_5614.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/57d777ad121f349fa1c4d95018e01f42.jpg","text":"TemporaryFile(/tmp/multipartBody351153980490521865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306522567,"filename":"image_18032025_15_00_24_6670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5043c9b8211fc353f1d777c6244806d9.jpg","text":"TemporaryFile(/tmp/multipartBody3634060290293643025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306522567,"filename":"image_18032025_15_00_42_6641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345142100","file1":"1345142071","file0":"1345142054","file4":"1345142155","file5":"1345142190","file3":"1345142128"},"map_files_photo_id_array":[{"photo_id":"1345142190","filename":"file5"},{"photo_id":"1345142100","filename":"file2"},{"photo_id":"1345142155","filename":"file4"},{"photo_id":"1345142071","filename":"file1"},{"photo_id":"1345142054","filename":"file0"},{"photo_id":"1345142128","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345142054":["hashtag1","hashtag2"]},{"1345142155":["hashtag1","hashtag2"]},{"1345142071":["hashtag1","hashtag2"]},{"1345142128":["hashtag1","hashtag2"]},{"1345142190":["hashtag1","hashtag2"]},{"1345142100":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345142054, 1345142155, 1345142071, 1345142128, 1345142190, 1345142100)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.72330141067505 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:02:02.360437
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_53_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_47_5989.jpg', 2), ('/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_41_5897.jpg', 2), ('/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_36_5982.jpg', 2), ('/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_30_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_24_6766.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_53_5749.jpg', '/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_47_5989.jpg', '/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_41_5897.jpg', '/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_36_5982.jpg', '/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_30_5741.jpg', '/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_24_6766.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_53_5749.jpg
/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_47_5989.jpg
/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_41_5897.jpg
/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_36_5982.jpg
/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_30_5741.jpg
/home/nano/Desktop/images/18032025/15/01/image_18032025_15_01_24_6766.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345142660","1345142630","1345142603","1345142554","1345142496","1345142445"],"photo_ids_order":["1345142445","1345142496","1345142554","1345142603","1345142630","1345142660"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0aa90325387144628b3cfb1f94f536fb.jpg","text":"TemporaryFile(/tmp/multipartBody2469521904501012638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306582851,"filename":"image_18032025_15_01_24_6766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/318df9c367d92108e65b363beb4db28e.jpg","text":"TemporaryFile(/tmp/multipartBody3704236091823701127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306582851,"filename":"image_18032025_15_01_30_5741.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3b9afe650284d10fe8574cb95e9579e7.jpg","text":"TemporaryFile(/tmp/multipartBody3977034167876369355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306582851,"filename":"image_18032025_15_01_36_5982.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/118db0896b47be5b8578fa7d3ea6cdea.jpg","text":"TemporaryFile(/tmp/multipartBody7792736070992402738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306582851,"filename":"image_18032025_15_01_41_5897.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a5fc55fc99653f05d84d3684614ea10.jpg","text":"TemporaryFile(/tmp/multipartBody5580262390578923369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306582851,"filename":"image_18032025_15_01_47_5989.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/767e004af156f4dc6050663a80af046f.jpg","text":"TemporaryFile(/tmp/multipartBody8814576345705057950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306582851,"filename":"image_18032025_15_01_53_5749.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345142554","file1":"1345142496","file0":"1345142445","file4":"1345142630","file5":"1345142660","file3":"1345142603"},"map_files_photo_id_array":[{"photo_id":"1345142660","filename":"file5"},{"photo_id":"1345142554","filename":"file2"},{"photo_id":"1345142630","filename":"file4"},{"photo_id":"1345142496","filename":"file1"},{"photo_id":"1345142445","filename":"file0"},{"photo_id":"1345142603","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345142660":["hashtag1","hashtag2"]},{"1345142630":["hashtag1","hashtag2"]},{"1345142603":["hashtag1","hashtag2"]},{"1345142554":["hashtag1","hashtag2"]},{"1345142496":["hashtag1","hashtag2"]},{"1345142445":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345142660, 1345142630, 1345142603, 1345142554, 1345142496, 1345142445)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.33727741241455 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:03:02.500501
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_53_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_48_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_42_6727.jpg', 2), ('/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_35_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_23_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_17_5798.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_53_5773.jpg', '/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_48_5776.jpg', '/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_42_6727.jpg', '/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_35_5908.jpg', '/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_23_5748.jpg', '/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_17_5798.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_53_5773.jpg
/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_48_5776.jpg
/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_42_6727.jpg
/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_35_5908.jpg
/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_23_5748.jpg
/home/nano/Desktop/images/18032025/15/02/image_18032025_15_02_17_5798.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345142861","1345142803","1345142901","1345142894","1345142832","1345142907"],"photo_ids_order":["1345142803","1345142832","1345142861","1345142894","1345142901","1345142907"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe3dc96ab4d644117d36f1826a0f5787.jpg","text":"TemporaryFile(/tmp/multipartBody3925884379726130989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306642913,"filename":"image_18032025_15_02_42_6727.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d48d89361a4d17154cb62cba10e9d21f.jpg","text":"TemporaryFile(/tmp/multipartBody1716448330173527450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306642913,"filename":"image_18032025_15_02_53_5773.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f13669157c9c04082d34045ecd56ae1.jpg","text":"TemporaryFile(/tmp/multipartBody853647715046839137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306642913,"filename":"image_18032025_15_02_23_5748.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/25d90f9fc7e80f1085b61b616838fa3f.jpg","text":"TemporaryFile(/tmp/multipartBody1351714353751893669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306642913,"filename":"image_18032025_15_02_35_5908.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/54e5109a37ea2ad7c7396200804687ad.jpg","text":"TemporaryFile(/tmp/multipartBody4453856367821208408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306642913,"filename":"image_18032025_15_02_48_5776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bc7203e6b9f2089ec4e25dd9695b9ab5.jpg","text":"TemporaryFile(/tmp/multipartBody768217584048930770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306642913,"filename":"image_18032025_15_02_17_5798.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345142861","file1":"1345142832","file0":"1345142803","file4":"1345142901","file5":"1345142907","file3":"1345142894"},"map_files_photo_id_array":[{"photo_id":"1345142907","filename":"file5"},{"photo_id":"1345142861","filename":"file2"},{"photo_id":"1345142901","filename":"file4"},{"photo_id":"1345142832","filename":"file1"},{"photo_id":"1345142803","filename":"file0"},{"photo_id":"1345142894","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345142861":["hashtag1","hashtag2"]},{"1345142803":["hashtag1","hashtag2"]},{"1345142901":["hashtag1","hashtag2"]},{"1345142894":["hashtag1","hashtag2"]},{"1345142832":["hashtag1","hashtag2"]},{"1345142907":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345142861, 1345142803, 1345142901, 1345142894, 1345142832, 1345142907)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.477723360061646 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:04:02.868063
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_53_5610.jpg', 2), ('/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_48_6735.jpg', 2), ('/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_41_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_29_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_23_5762.jpg', 2), ('/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_18_6794.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_53_5610.jpg', '/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_48_6735.jpg', '/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_41_5834.jpg', '/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_29_5754.jpg', '/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_23_5762.jpg', '/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_18_6794.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_53_5610.jpg
/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_48_6735.jpg
/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_41_5834.jpg
/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_29_5754.jpg
/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_23_5762.jpg
/home/nano/Desktop/images/18032025/15/03/image_18032025_15_03_18_6794.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345142966","1345142939","1345142924","1345142947","1345142928","1345142931"],"photo_ids_order":["1345142924","1345142928","1345142931","1345142939","1345142947","1345142966"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9e2c05bda28a947198439b0135c01068.jpg","text":"TemporaryFile(/tmp/multipartBody8127091716220746143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306703234,"filename":"image_18032025_15_03_18_6794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a44dce0b30e17d588eb54855c968bc24.jpg","text":"TemporaryFile(/tmp/multipartBody434118778513197840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306703234,"filename":"image_18032025_15_03_29_5754.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e1362c01e412c492fbaf4a917a3d1f27.jpg","text":"TemporaryFile(/tmp/multipartBody3199884648514528883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306703234,"filename":"image_18032025_15_03_53_5610.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f211ee4f10af7525d3895fff54c3a772.jpg","text":"TemporaryFile(/tmp/multipartBody8811319039497429668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306703234,"filename":"image_18032025_15_03_23_5762.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7d9d100ba7290151e3e918f803b780ae.jpg","text":"TemporaryFile(/tmp/multipartBody944328407193023121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306703234,"filename":"image_18032025_15_03_48_6735.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/50abedceb4fcda428d9521ffc2c7ef32.jpg","text":"TemporaryFile(/tmp/multipartBody7449005315150522149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306703234,"filename":"image_18032025_15_03_41_5834.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345142931","file1":"1345142928","file0":"1345142924","file4":"1345142947","file5":"1345142966","file3":"1345142939"},"map_files_photo_id_array":[{"photo_id":"1345142966","filename":"file5"},{"photo_id":"1345142931","filename":"file2"},{"photo_id":"1345142947","filename":"file4"},{"photo_id":"1345142928","filename":"file1"},{"photo_id":"1345142924","filename":"file0"},{"photo_id":"1345142939","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345142966":["hashtag1","hashtag2"]},{"1345142939":["hashtag1","hashtag2"]},{"1345142924":["hashtag1","hashtag2"]},{"1345142947":["hashtag1","hashtag2"]},{"1345142928":["hashtag1","hashtag2"]},{"1345142931":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345142966, 1345142939, 1345142924, 1345142947, 1345142928, 1345142931)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.4852135181427 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:05:02.674810
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_54_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_47_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_41_5599.jpg', 2), ('/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_36_6668.jpg', 2), ('/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_29_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_23_5628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_54_6636.jpg', '/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_47_5612.jpg', '/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_41_5599.jpg', '/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_36_6668.jpg', '/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_29_5676.jpg', '/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_23_5628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_54_6636.jpg
/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_47_5612.jpg
/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_41_5599.jpg
/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_36_6668.jpg
/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_29_5676.jpg
/home/nano/Desktop/images/18032025/15/04/image_18032025_15_04_23_5628.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345143066","1345143036","1345143068","1345143077","1345143059","1345143047"],"photo_ids_order":["1345143036","1345143047","1345143059","1345143066","1345143068","1345143077"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/03be421ae21d1693d63e17a112548a02.jpg","text":"TemporaryFile(/tmp/multipartBody544251228970672196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306763082,"filename":"image_18032025_15_04_36_6668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a30ee662e5e0f1fb3c7ac2e6de0d0bb2.jpg","text":"TemporaryFile(/tmp/multipartBody5321584175429160402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306763082,"filename":"image_18032025_15_04_54_6636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c7ef4551761f94ae33794a882a6dee66.jpg","text":"TemporaryFile(/tmp/multipartBody2577666967587591831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306763082,"filename":"image_18032025_15_04_29_5676.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10c1ec3c0869a090f4ac2094546b4aa2.jpg","text":"TemporaryFile(/tmp/multipartBody2955011976443541191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306763082,"filename":"image_18032025_15_04_23_5628.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c2608c80c2781f8ac90ca365d5b32b70.jpg","text":"TemporaryFile(/tmp/multipartBody1730173159525641661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306763082,"filename":"image_18032025_15_04_41_5599.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db97826e62a489a37d4f526498decf91.jpg","text":"TemporaryFile(/tmp/multipartBody7008939962317956106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306763082,"filename":"image_18032025_15_04_47_5612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345143059","file1":"1345143047","file0":"1345143036","file4":"1345143068","file5":"1345143077","file3":"1345143066"},"map_files_photo_id_array":[{"photo_id":"1345143077","filename":"file5"},{"photo_id":"1345143059","filename":"file2"},{"photo_id":"1345143068","filename":"file4"},{"photo_id":"1345143047","filename":"file1"},{"photo_id":"1345143036","filename":"file0"},{"photo_id":"1345143066","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345143066":["hashtag1","hashtag2"]},{"1345143036":["hashtag1","hashtag2"]},{"1345143068":["hashtag1","hashtag2"]},{"1345143077":["hashtag1","hashtag2"]},{"1345143059":["hashtag1","hashtag2"]},{"1345143047":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345143066, 1345143036, 1345143068, 1345143077, 1345143059, 1345143047)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.990734100341797 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:06:02.714340
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_53_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_47_5603.jpg', 2), ('/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_42_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_35_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_29_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_24_6620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_53_5614.jpg', '/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_47_5603.jpg', '/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_42_6648.jpg', '/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_35_5641.jpg', '/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_29_5652.jpg', '/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_24_6620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_53_5614.jpg
/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_47_5603.jpg
/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_42_6648.jpg
/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_35_5641.jpg
/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_29_5652.jpg
/home/nano/Desktop/images/18032025/15/05/image_18032025_15_05_24_6620.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345143148","1345143165","1345143150","1345143153","1345143156","1345143129"],"photo_ids_order":["1345143129","1345143148","1345143150","1345143153","1345143156","1345143165"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a4756b0c866b2e51b609ae8854f97070.jpg","text":"TemporaryFile(/tmp/multipartBody187156776306603673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306823134,"filename":"image_18032025_15_05_47_5603.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3a7e25a22cf00c26053c304645a57237.jpg","text":"TemporaryFile(/tmp/multipartBody350655422718042101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306823134,"filename":"image_18032025_15_05_24_6620.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c86adf1652c2aa47f01b7fcd3f2c64e.jpg","text":"TemporaryFile(/tmp/multipartBody5326259983563082457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306823134,"filename":"image_18032025_15_05_42_6648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4a7da5ae18442f911c0c44a991c112c3.jpg","text":"TemporaryFile(/tmp/multipartBody4042922904618562257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306823134,"filename":"image_18032025_15_05_35_5641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b94f8bf3c0865d9519c992972d37eedf.jpg","text":"TemporaryFile(/tmp/multipartBody4636859256018074182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306823134,"filename":"image_18032025_15_05_29_5652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0af7edf35fda2f09a7476618affb496b.jpg","text":"TemporaryFile(/tmp/multipartBody4620550670594168623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306823134,"filename":"image_18032025_15_05_53_5614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345143150","file1":"1345143148","file0":"1345143129","file4":"1345143156","file5":"1345143165","file3":"1345143153"},"map_files_photo_id_array":[{"photo_id":"1345143165","filename":"file5"},{"photo_id":"1345143150","filename":"file2"},{"photo_id":"1345143156","filename":"file4"},{"photo_id":"1345143148","filename":"file1"},{"photo_id":"1345143129","filename":"file0"},{"photo_id":"1345143153","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345143148":["hashtag1","hashtag2"]},{"1345143165":["hashtag1","hashtag2"]},{"1345143150":["hashtag1","hashtag2"]},{"1345143153":["hashtag1","hashtag2"]},{"1345143156":["hashtag1","hashtag2"]},{"1345143129":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345143148, 1345143165, 1345143150, 1345143153, 1345143156, 1345143129)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.07776665687561 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:07:02.955048
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_05_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_54_6839.jpg', 2), ('/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_47_5745.jpg', 2), ('/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_41_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_35_5801.jpg', 2), ('/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_30_6658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_05_5772.jpg', '/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_54_6839.jpg', '/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_47_5745.jpg', '/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_41_5706.jpg', '/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_35_5801.jpg', '/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_30_6658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_05_5772.jpg
/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_54_6839.jpg
/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_47_5745.jpg
/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_41_5706.jpg
/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_35_5801.jpg
/home/nano/Desktop/images/18032025/15/06/image_18032025_15_06_30_6658.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345143268","1345143264","1345143258","1345143252","1345143315","1345143290"],"photo_ids_order":["1345143252","1345143258","1345143264","1345143268","1345143290","1345143315"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3a8194ef7ff3c3f02a333bb6ea0ef7b.jpg","text":"TemporaryFile(/tmp/multipartBody2144108108942626362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306883346,"filename":"image_18032025_15_06_41_5706.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cdc13cd8571404f96db1dfd9693df5a4.jpg","text":"TemporaryFile(/tmp/multipartBody5935456421051843933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306883346,"filename":"image_18032025_15_06_47_5745.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62574612bdfd162b1828e0164b92a1f6.jpg","text":"TemporaryFile(/tmp/multipartBody7850748630785241739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306883346,"filename":"image_18032025_15_06_54_6839.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a8abc3bc4c02484a6ef3877ea116369d.jpg","text":"TemporaryFile(/tmp/multipartBody1707423230917945499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306883346,"filename":"image_18032025_15_07_05_5772.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c1216fc85989f8636d04269fe198d798.jpg","text":"TemporaryFile(/tmp/multipartBody5521829202512789061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306883346,"filename":"image_18032025_15_06_30_6658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2e08a1ae45fecd7a85d138097fd635d9.jpg","text":"TemporaryFile(/tmp/multipartBody7070983831158430397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306883346,"filename":"image_18032025_15_06_35_5801.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345143264","file1":"1345143258","file0":"1345143252","file4":"1345143290","file5":"1345143315","file3":"1345143268"},"map_files_photo_id_array":[{"photo_id":"1345143315","filename":"file5"},{"photo_id":"1345143264","filename":"file2"},{"photo_id":"1345143290","filename":"file4"},{"photo_id":"1345143258","filename":"file1"},{"photo_id":"1345143252","filename":"file0"},{"photo_id":"1345143268","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345143268":["hashtag1","hashtag2"]},{"1345143264":["hashtag1","hashtag2"]},{"1345143258":["hashtag1","hashtag2"]},{"1345143252":["hashtag1","hashtag2"]},{"1345143315":["hashtag1","hashtag2"]},{"1345143290":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345143268, 1345143264, 1345143258, 1345143252, 1345143315, 1345143290)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.53927278518677 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:08:03.080499
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_53_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_47_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_41_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_36_6702.jpg', 2), ('/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_29_5762.jpg', 2), ('/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_23_6078.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_53_6643.jpg', '/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_47_5613.jpg', '/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_41_5631.jpg', '/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_36_6702.jpg', '/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_29_5762.jpg', '/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_23_6078.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_53_6643.jpg
/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_47_5613.jpg
/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_41_5631.jpg
/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_36_6702.jpg
/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_29_5762.jpg
/home/nano/Desktop/images/18032025/15/07/image_18032025_15_07_23_6078.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345143676","1345143559","1345143613","1345143588","1345143551","1345143569"],"photo_ids_order":["1345143551","1345143559","1345143569","1345143588","1345143613","1345143676"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b181e01933e0e5fe38c0a28af28c7bc4.jpg","text":"TemporaryFile(/tmp/multipartBody7839389524391209834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306943514,"filename":"image_18032025_15_07_23_6078.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ae93fc86d7e5371a1a49d43de7e8901e.jpg","text":"TemporaryFile(/tmp/multipartBody2877763012097607641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306943514,"filename":"image_18032025_15_07_47_5613.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69ad4e455f2d0419cd894617a9af7397.jpg","text":"TemporaryFile(/tmp/multipartBody2697126093722789512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306943514,"filename":"image_18032025_15_07_29_5762.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7eb0409480f947be5e4c6e252d343d04.jpg","text":"TemporaryFile(/tmp/multipartBody1346097817935264993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306943514,"filename":"image_18032025_15_07_36_6702.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/15d3e9eeaccb0e3c1f1035383b2e7da3.jpg","text":"TemporaryFile(/tmp/multipartBody7925370830136829703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306943514,"filename":"image_18032025_15_07_53_6643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/98041752df643999004f5006e6a957f3.jpg","text":"TemporaryFile(/tmp/multipartBody1671351791663764584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742306943514,"filename":"image_18032025_15_07_41_5631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345143569","file1":"1345143559","file0":"1345143551","file4":"1345143613","file5":"1345143676","file3":"1345143588"},"map_files_photo_id_array":[{"photo_id":"1345143676","filename":"file5"},{"photo_id":"1345143569","filename":"file2"},{"photo_id":"1345143613","filename":"file4"},{"photo_id":"1345143559","filename":"file1"},{"photo_id":"1345143551","filename":"file0"},{"photo_id":"1345143588","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345143676":["hashtag1","hashtag2"]},{"1345143559":["hashtag1","hashtag2"]},{"1345143613":["hashtag1","hashtag2"]},{"1345143588":["hashtag1","hashtag2"]},{"1345143551":["hashtag1","hashtag2"]},{"1345143569":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345143676, 1345143559, 1345143613, 1345143588, 1345143551, 1345143569)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.949639558792114 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:09:03.395965
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_53_6001.jpg', 2), ('/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_47_5954.jpg', 2), ('/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_41_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_36_6833.jpg', 2), ('/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_29_5740.jpg', 2), ('/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_23_6019.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_53_6001.jpg', '/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_47_5954.jpg', '/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_41_5782.jpg', '/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_36_6833.jpg', '/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_29_5740.jpg', '/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_23_6019.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_53_6001.jpg
/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_47_5954.jpg
/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_41_5782.jpg
/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_36_6833.jpg
/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_29_5740.jpg
/home/nano/Desktop/images/18032025/15/08/image_18032025_15_08_23_6019.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345143889","1345144005","1345143954","1345143986","1345143923","1345144001"],"photo_ids_order":["1345143889","1345143923","1345143954","1345143986","1345144001","1345144005"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4260688ebf2df60e2e885605bb1165a9.jpg","text":"TemporaryFile(/tmp/multipartBody4390416275784711246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307004013,"filename":"image_18032025_15_08_53_6001.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/13c27db67552be84c1923f8a51023ca9.jpg","text":"TemporaryFile(/tmp/multipartBody6418655317001541285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307004013,"filename":"image_18032025_15_08_23_6019.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b1ea320b64c96339d1ac654c08744082.jpg","text":"TemporaryFile(/tmp/multipartBody1141225338998481156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307004013,"filename":"image_18032025_15_08_41_5782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b825de62a3c93220fedbd6688eff9a29.jpg","text":"TemporaryFile(/tmp/multipartBody4604923010129962471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307004013,"filename":"image_18032025_15_08_36_6833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e497416bf25f9cfcef00abf55bd34d9.jpg","text":"TemporaryFile(/tmp/multipartBody8821988300689484517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307004013,"filename":"image_18032025_15_08_47_5954.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8efc4166b16c4722fc76d3e6f99181fc.jpg","text":"TemporaryFile(/tmp/multipartBody2509788036878132320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307004013,"filename":"image_18032025_15_08_29_5740.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345143954","file1":"1345143923","file0":"1345143889","file4":"1345144001","file5":"1345144005","file3":"1345143986"},"map_files_photo_id_array":[{"photo_id":"1345144005","filename":"file5"},{"photo_id":"1345143954","filename":"file2"},{"photo_id":"1345144001","filename":"file4"},{"photo_id":"1345143923","filename":"file1"},{"photo_id":"1345143889","filename":"file0"},{"photo_id":"1345143986","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345143889":["hashtag1","hashtag2"]},{"1345144005":["hashtag1","hashtag2"]},{"1345143954":["hashtag1","hashtag2"]},{"1345143986":["hashtag1","hashtag2"]},{"1345143923":["hashtag1","hashtag2"]},{"1345144001":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345143889, 1345144005, 1345143954, 1345143986, 1345143923, 1345144001)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.897575855255127 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:10:02.163752
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_54_6963.jpg', 2), ('/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_47_5055.jpg', 2), ('/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_42_6961.jpg', 2), ('/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_35_5969.jpg', 2), ('/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_24_6863.jpg', 2), ('/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_05_5776.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_54_6963.jpg', '/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_47_5055.jpg', '/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_42_6961.jpg', '/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_35_5969.jpg', '/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_24_6863.jpg', '/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_05_5776.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_54_6963.jpg
/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_47_5055.jpg
/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_42_6961.jpg
/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_35_5969.jpg
/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_24_6863.jpg
/home/nano/Desktop/images/18032025/15/09/image_18032025_15_09_05_5776.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345144105","1345144107","1345144085","1345144079","1345144081","1345144109"],"photo_ids_order":["1345144079","1345144081","1345144085","1345144105","1345144107","1345144109"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/64d63e12a0e2035e99eada4a5bb91ae0.jpg","text":"TemporaryFile(/tmp/multipartBody2666112614005696675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307062584,"filename":"image_18032025_15_09_35_5969.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9b599bb35c5371b9a91fe85a78147bec.jpg","text":"TemporaryFile(/tmp/multipartBody690686061535852621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307062584,"filename":"image_18032025_15_09_24_6863.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/78d735348be1511b6ed95175249d7fd4.jpg","text":"TemporaryFile(/tmp/multipartBody2202231308257060762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307062584,"filename":"image_18032025_15_09_42_6961.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f091c943c06700d4460dc5939deb788.jpg","text":"TemporaryFile(/tmp/multipartBody2944985116544727174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307062584,"filename":"image_18032025_15_09_54_6963.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4182aefb0c31538f0590e75bf6284642.jpg","text":"TemporaryFile(/tmp/multipartBody6565642990161281499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307062584,"filename":"image_18032025_15_09_47_5055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7ff17a71b865cbe21bf33128610820a1.jpg","text":"TemporaryFile(/tmp/multipartBody7769496397935802680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307062584,"filename":"image_18032025_15_09_05_5776.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345144085","file1":"1345144081","file0":"1345144079","file4":"1345144107","file5":"1345144109","file3":"1345144105"},"map_files_photo_id_array":[{"photo_id":"1345144109","filename":"file5"},{"photo_id":"1345144085","filename":"file2"},{"photo_id":"1345144107","filename":"file4"},{"photo_id":"1345144081","filename":"file1"},{"photo_id":"1345144079","filename":"file0"},{"photo_id":"1345144105","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345144105":["hashtag1","hashtag2"]},{"1345144107":["hashtag1","hashtag2"]},{"1345144085":["hashtag1","hashtag2"]},{"1345144079":["hashtag1","hashtag2"]},{"1345144081":["hashtag1","hashtag2"]},{"1345144109":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345144105, 1345144107, 1345144085, 1345144079, 1345144081, 1345144109)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.3953857421875 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:11:02.294090
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_54_5877.jpg', 2), ('/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_41_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_35_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_29_5903.jpg', 2), ('/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_23_5985.jpg', 2), ('/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_18_5882.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_54_5877.jpg', '/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_41_5673.jpg', '/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_35_5812.jpg', '/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_29_5903.jpg', '/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_23_5985.jpg', '/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_18_5882.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_54_5877.jpg
/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_41_5673.jpg
/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_35_5812.jpg
/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_29_5903.jpg
/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_23_5985.jpg
/home/nano/Desktop/images/18032025/15/10/image_18032025_15_10_18_5882.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345144228","1345144146","1345144209","1345144172","1345144262","1345144142"],"photo_ids_order":["1345144142","1345144146","1345144172","1345144209","1345144228","1345144262"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e16ac89f464d11a259e7f5aa9183fa92.jpg","text":"TemporaryFile(/tmp/multipartBody9188761459104724709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307122680,"filename":"image_18032025_15_10_23_5985.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/966ebc9b2d7955d21aca232da96e9418.jpg","text":"TemporaryFile(/tmp/multipartBody2360612632825032139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307122680,"filename":"image_18032025_15_10_41_5673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca81e19694f2cd40e7cb08db1c1337a7.jpg","text":"TemporaryFile(/tmp/multipartBody8618405483303650443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307122680,"filename":"image_18032025_15_10_29_5903.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ba4918e92cfbaef04da02982c5f8c723.jpg","text":"TemporaryFile(/tmp/multipartBody6026637285530921231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307122680,"filename":"image_18032025_15_10_35_5812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/54ed265505d58aaef9a74dffdbfdcafb.jpg","text":"TemporaryFile(/tmp/multipartBody727280565523111267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307122680,"filename":"image_18032025_15_10_18_5882.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b1d22fc71973edb8ccf8032c886914ad.jpg","text":"TemporaryFile(/tmp/multipartBody4769970247168772070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307122680,"filename":"image_18032025_15_10_54_5877.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345144172","file1":"1345144146","file0":"1345144142","file4":"1345144228","file5":"1345144262","file3":"1345144209"},"map_files_photo_id_array":[{"photo_id":"1345144262","filename":"file5"},{"photo_id":"1345144172","filename":"file2"},{"photo_id":"1345144228","filename":"file4"},{"photo_id":"1345144146","filename":"file1"},{"photo_id":"1345144142","filename":"file0"},{"photo_id":"1345144209","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345144228":["hashtag1","hashtag2"]},{"1345144146":["hashtag1","hashtag2"]},{"1345144209":["hashtag1","hashtag2"]},{"1345144172":["hashtag1","hashtag2"]},{"1345144262":["hashtag1","hashtag2"]},{"1345144142":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345144228, 1345144146, 1345144209, 1345144172, 1345144262, 1345144142)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.03468942642212 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:12:02.425163
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_54_6773.jpg', 2), ('/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_47_5999.jpg', 2), ('/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_41_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_35_5943.jpg', 2), ('/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_29_5933.jpg', 2), ('/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_23_5858.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_54_6773.jpg', '/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_47_5999.jpg', '/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_41_5844.jpg', '/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_35_5943.jpg', '/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_29_5933.jpg', '/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_23_5858.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_54_6773.jpg
/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_47_5999.jpg
/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_41_5844.jpg
/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_35_5943.jpg
/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_29_5933.jpg
/home/nano/Desktop/images/18032025/15/11/image_18032025_15_11_23_5858.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345144504","1345144488","1345144467","1345144452","1345144428","1345144523"],"photo_ids_order":["1345144428","1345144452","1345144467","1345144488","1345144504","1345144523"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c433da4a7067a75b6b0f1e0062b9f02.jpg","text":"TemporaryFile(/tmp/multipartBody8903321352954692903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307182846,"filename":"image_18032025_15_11_29_5933.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12f2ed901077d08fe79ba51f31678bae.jpg","text":"TemporaryFile(/tmp/multipartBody2530539041095523580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307182846,"filename":"image_18032025_15_11_35_5943.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6137b2803b96e086c044410fcc90b85.jpg","text":"TemporaryFile(/tmp/multipartBody225423341513803833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307182846,"filename":"image_18032025_15_11_41_5844.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/192579efcfcae114948c071bf5d34b6a.jpg","text":"TemporaryFile(/tmp/multipartBody3026377415185519647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307182846,"filename":"image_18032025_15_11_47_5999.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3d6d1a4151e04f5e7d6d0f0390499f2.jpg","text":"TemporaryFile(/tmp/multipartBody8687582642488083854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307182846,"filename":"image_18032025_15_11_54_6773.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/297e38f011dced05cb7934a8c1519429.jpg","text":"TemporaryFile(/tmp/multipartBody9102468490162251720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307182846,"filename":"image_18032025_15_11_23_5858.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345144467","file1":"1345144452","file0":"1345144428","file4":"1345144504","file5":"1345144523","file3":"1345144488"},"map_files_photo_id_array":[{"photo_id":"1345144523","filename":"file5"},{"photo_id":"1345144467","filename":"file2"},{"photo_id":"1345144504","filename":"file4"},{"photo_id":"1345144452","filename":"file1"},{"photo_id":"1345144428","filename":"file0"},{"photo_id":"1345144488","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345144504":["hashtag1","hashtag2"]},{"1345144488":["hashtag1","hashtag2"]},{"1345144467":["hashtag1","hashtag2"]},{"1345144452":["hashtag1","hashtag2"]},{"1345144428":["hashtag1","hashtag2"]},{"1345144523":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345144504, 1345144488, 1345144467, 1345144452, 1345144428, 1345144523)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.8801007270813 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:13:02.684143
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_06_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_53_5824.jpg', 2), ('/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_48_5822.jpg', 2), ('/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_42_6718.jpg', 2), ('/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_29_6083.jpg', 2), ('/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_23_6005.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_06_6109.jpg', '/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_53_5824.jpg', '/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_48_5822.jpg', '/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_42_6718.jpg', '/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_29_6083.jpg', '/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_23_6005.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_06_6109.jpg
/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_53_5824.jpg
/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_48_5822.jpg
/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_42_6718.jpg
/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_29_6083.jpg
/home/nano/Desktop/images/18032025/15/12/image_18032025_15_12_23_6005.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345144768","1345144810","1345144740","1345144793","1345144721","1345144703"],"photo_ids_order":["1345144703","1345144721","1345144740","1345144768","1345144793","1345144810"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/808ac233060e02d17783f9c1961b6cc0.jpg","text":"TemporaryFile(/tmp/multipartBody833383012076895412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307243104,"filename":"image_18032025_15_12_42_6718.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19a84eb7a7f21d8bacd9b3beef88e75f.jpg","text":"TemporaryFile(/tmp/multipartBody7157212550505008461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307243104,"filename":"image_18032025_15_12_23_6005.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4608bf07b6a3054843172f6a81b28bd9.jpg","text":"TemporaryFile(/tmp/multipartBody3399618214775503435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307243104,"filename":"image_18032025_15_12_48_5822.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4674613978eec6eb7aaadff2e2b1b202.jpg","text":"TemporaryFile(/tmp/multipartBody135767323227369213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307243104,"filename":"image_18032025_15_12_29_6083.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e858c82e899071428515df6e185976b.jpg","text":"TemporaryFile(/tmp/multipartBody6532739634405541296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307243104,"filename":"image_18032025_15_12_53_5824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aea233c352866f1d6860b1d69b304e99.jpg","text":"TemporaryFile(/tmp/multipartBody8875375707252610091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307243104,"filename":"image_18032025_15_13_06_6109.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345144740","file1":"1345144721","file0":"1345144703","file4":"1345144793","file5":"1345144810","file3":"1345144768"},"map_files_photo_id_array":[{"photo_id":"1345144810","filename":"file5"},{"photo_id":"1345144740","filename":"file2"},{"photo_id":"1345144793","filename":"file4"},{"photo_id":"1345144721","filename":"file1"},{"photo_id":"1345144703","filename":"file0"},{"photo_id":"1345144768","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345144768":["hashtag1","hashtag2"]},{"1345144810":["hashtag1","hashtag2"]},{"1345144740":["hashtag1","hashtag2"]},{"1345144793":["hashtag1","hashtag2"]},{"1345144721":["hashtag1","hashtag2"]},{"1345144703":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345144768, 1345144810, 1345144740, 1345144793, 1345144721, 1345144703)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.14869046211243 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:14:02.940360
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_54_6694.jpg', 2), ('/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_47_6035.jpg', 2), ('/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_41_5972.jpg', 2), ('/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_35_5861.jpg', 2), ('/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_29_5971.jpg', 2), ('/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_23_5974.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_54_6694.jpg', '/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_47_6035.jpg', '/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_41_5972.jpg', '/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_35_5861.jpg', '/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_29_5971.jpg', '/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_23_5974.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_54_6694.jpg
/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_47_6035.jpg
/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_41_5972.jpg
/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_35_5861.jpg
/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_29_5971.jpg
/home/nano/Desktop/images/18032025/15/13/image_18032025_15_13_23_5974.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3139786720275879 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:14:32.340388
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_53_5702.jpg', 2), ('/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_47_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_41_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_35_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_29_5970.jpg', 2), ('/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_23_6100.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_53_5702.jpg', '/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_47_5890.jpg', '/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_41_6116.jpg', '/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_35_5894.jpg', '/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_29_5970.jpg', '/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_23_6100.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_53_5702.jpg
/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_47_5890.jpg
/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_41_6116.jpg
/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_35_5894.jpg
/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_29_5970.jpg
/home/nano/Desktop/images/18032025/15/14/image_18032025_15_14_23_6100.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345144933","1345144899","1345144890","1345144896","1345144884","1345144905"],"photo_ids_order":["1345144884","1345144890","1345144896","1345144899","1345144905","1345144933"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dcf6746ca448c9255df4787008d86ebf.jpg","text":"TemporaryFile(/tmp/multipartBody8521281203142982829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307332850,"filename":"image_18032025_15_14_23_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4252b6c7ca66a0ea6ac93232cf1286e8.jpg","text":"TemporaryFile(/tmp/multipartBody4496653159538031926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307332850,"filename":"image_18032025_15_14_35_5894.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/40a07d767473b8b615ff7e68277dcd87.jpg","text":"TemporaryFile(/tmp/multipartBody8794472158900234887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307332850,"filename":"image_18032025_15_14_47_5890.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10141c05eb6cdcd8a8df3ba08cc7c6e6.jpg","text":"TemporaryFile(/tmp/multipartBody1450444860194459211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307332850,"filename":"image_18032025_15_14_41_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/08978aba7da0756e9345d6bd8116dce7.jpg","text":"TemporaryFile(/tmp/multipartBody9211979921248224855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307332850,"filename":"image_18032025_15_14_53_5702.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf855c5ac3f6df9a7f0a7b387441ffa6.jpg","text":"TemporaryFile(/tmp/multipartBody7260248947654056806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307332850,"filename":"image_18032025_15_14_29_5970.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345144896","file1":"1345144890","file0":"1345144884","file4":"1345144905","file5":"1345144933","file3":"1345144899"},"map_files_photo_id_array":[{"photo_id":"1345144933","filename":"file5"},{"photo_id":"1345144896","filename":"file2"},{"photo_id":"1345144905","filename":"file4"},{"photo_id":"1345144890","filename":"file1"},{"photo_id":"1345144884","filename":"file0"},{"photo_id":"1345144899","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345144933":["hashtag1","hashtag2"]},{"1345144899":["hashtag1","hashtag2"]},{"1345144890":["hashtag1","hashtag2"]},{"1345144896":["hashtag1","hashtag2"]},{"1345144884":["hashtag1","hashtag2"]},{"1345144905":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345144933, 1345144899, 1345144890, 1345144896, 1345144884, 1345144905)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.251413106918335 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:15:32.431779
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_54_5921.jpg', 2), ('/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_48_5965.jpg', 2), ('/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_42_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_36_6766.jpg', 2), ('/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_29_5946.jpg', 2), ('/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_23_6155.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_54_5921.jpg', '/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_48_5965.jpg', '/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_42_6045.jpg', '/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_36_6766.jpg', '/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_29_5946.jpg', '/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_23_6155.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_54_5921.jpg
/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_48_5965.jpg
/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_42_6045.jpg
/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_36_6766.jpg
/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_29_5946.jpg
/home/nano/Desktop/images/18032025/15/15/image_18032025_15_15_23_6155.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345145020","1345145082","1345145075","1345145060","1345145054","1345145080"],"photo_ids_order":["1345145020","1345145054","1345145060","1345145075","1345145080","1345145082"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ca1dbddf8ea3b880519d7d395dc6215.jpg","text":"TemporaryFile(/tmp/multipartBody8841146197546415095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307392887,"filename":"image_18032025_15_15_54_5921.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db44d43b8f386c7125332ec2a274be3e.jpg","text":"TemporaryFile(/tmp/multipartBody3000363503168025240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307392887,"filename":"image_18032025_15_15_23_6155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1aa97c6ac8e68cab401d11c84b01cc26.jpg","text":"TemporaryFile(/tmp/multipartBody7468964263329438102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307392887,"filename":"image_18032025_15_15_36_6766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5df20749255e796bb57fa7abcfd58636.jpg","text":"TemporaryFile(/tmp/multipartBody3891955086639273075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307392887,"filename":"image_18032025_15_15_42_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47ba2d224ae89682d09e6dac3c895319.jpg","text":"TemporaryFile(/tmp/multipartBody264237535500582386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307392887,"filename":"image_18032025_15_15_48_5965.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c957f97d1c68d3274e736d7ba482f52.jpg","text":"TemporaryFile(/tmp/multipartBody3263554514581002080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307392887,"filename":"image_18032025_15_15_29_5946.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345145060","file1":"1345145054","file0":"1345145020","file4":"1345145080","file5":"1345145082","file3":"1345145075"},"map_files_photo_id_array":[{"photo_id":"1345145082","filename":"file5"},{"photo_id":"1345145060","filename":"file2"},{"photo_id":"1345145080","filename":"file4"},{"photo_id":"1345145054","filename":"file1"},{"photo_id":"1345145020","filename":"file0"},{"photo_id":"1345145075","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345145020":["hashtag1","hashtag2"]},{"1345145082":["hashtag1","hashtag2"]},{"1345145075":["hashtag1","hashtag2"]},{"1345145060":["hashtag1","hashtag2"]},{"1345145054":["hashtag1","hashtag2"]},{"1345145080":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345145020, 1345145082, 1345145075, 1345145060, 1345145054, 1345145080)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.35643529891968 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:16:32.579417
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_53_5913.jpg', 2), ('/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_47_6003.jpg', 2), ('/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_41_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_35_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_29_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_24_5928.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_53_5913.jpg', '/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_47_6003.jpg', '/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_41_6111.jpg', '/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_35_5780.jpg', '/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_29_5809.jpg', '/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_24_5928.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_53_5913.jpg
/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_47_6003.jpg
/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_41_6111.jpg
/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_35_5780.jpg
/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_29_5809.jpg
/home/nano/Desktop/images/18032025/15/16/image_18032025_15_16_24_5928.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345145352","1345145229","1345145202","1345145185","1345145176","1345145221"],"photo_ids_order":["1345145176","1345145185","1345145202","1345145221","1345145229","1345145352"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/795b1499f8339be515cceb266a3a82c3.jpg","text":"TemporaryFile(/tmp/multipartBody7248372618768172545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307452993,"filename":"image_18032025_15_16_24_5928.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3ac3472b7daf8ca95f17d2f0b06ef3ae.jpg","text":"TemporaryFile(/tmp/multipartBody5939645354026292515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307452993,"filename":"image_18032025_15_16_29_5809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/96e20ed0d7abc804d70ca73f61597d8b.jpg","text":"TemporaryFile(/tmp/multipartBody2362803260636656977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307452993,"filename":"image_18032025_15_16_41_6111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14187e3c13b35c0be906479ae037d41e.jpg","text":"TemporaryFile(/tmp/multipartBody157800736884965179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307452993,"filename":"image_18032025_15_16_47_6003.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0452bc722e6e0ae0cd0d92c62e3929db.jpg","text":"TemporaryFile(/tmp/multipartBody5994208504176544687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307452993,"filename":"image_18032025_15_16_53_5913.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/79d36f12880027b7cda7cdfbde7060df.jpg","text":"TemporaryFile(/tmp/multipartBody8379594979248576776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307452993,"filename":"image_18032025_15_16_35_5780.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345145202","file1":"1345145185","file0":"1345145176","file4":"1345145229","file5":"1345145352","file3":"1345145221"},"map_files_photo_id_array":[{"photo_id":"1345145352","filename":"file5"},{"photo_id":"1345145202","filename":"file2"},{"photo_id":"1345145229","filename":"file4"},{"photo_id":"1345145185","filename":"file1"},{"photo_id":"1345145176","filename":"file0"},{"photo_id":"1345145221","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345145352":["hashtag1","hashtag2"]},{"1345145229":["hashtag1","hashtag2"]},{"1345145202":["hashtag1","hashtag2"]},{"1345145185":["hashtag1","hashtag2"]},{"1345145176":["hashtag1","hashtag2"]},{"1345145221":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345145352, 1345145229, 1345145202, 1345145185, 1345145176, 1345145221)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.39600849151611 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:17:32.720029
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_53_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_48_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_42_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_36_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_30_6863.jpg', 2), ('/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_23_5940.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_53_5781.jpg', '/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_48_5866.jpg', '/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_42_6119.jpg', '/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_36_5812.jpg', '/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_30_6863.jpg', '/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_23_5940.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_53_5781.jpg
/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_48_5866.jpg
/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_42_6119.jpg
/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_36_5812.jpg
/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_30_6863.jpg
/home/nano/Desktop/images/18032025/15/17/image_18032025_15_17_23_5940.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345145493","1345145487","1345145506","1345145502","1345145497","1345145482"],"photo_ids_order":["1345145482","1345145487","1345145493","1345145497","1345145502","1345145506"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3bf7acc03c298a14033823ffe9a327c.jpg","text":"TemporaryFile(/tmp/multipartBody7177803608604419455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307513112,"filename":"image_18032025_15_17_42_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/acb284f4d7d7cd50ee0c9309ebb07062.jpg","text":"TemporaryFile(/tmp/multipartBody3272416217838719387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307513112,"filename":"image_18032025_15_17_48_5866.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9927ae2a36048247949599584eb94ef7.jpg","text":"TemporaryFile(/tmp/multipartBody1403629053878472868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307513112,"filename":"image_18032025_15_17_23_5940.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9e127fcab4003bd3c7258fe7b09a1c88.jpg","text":"TemporaryFile(/tmp/multipartBody984601280798141273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307513112,"filename":"image_18032025_15_17_30_6863.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/20e5f19fbbe871e4f527d24190da403b.jpg","text":"TemporaryFile(/tmp/multipartBody7493021321165240070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307513112,"filename":"image_18032025_15_17_36_5812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/09b95aff6acac6d66fcb7cc838e9dc3c.jpg","text":"TemporaryFile(/tmp/multipartBody3090731754533523774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307513112,"filename":"image_18032025_15_17_53_5781.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345145493","file1":"1345145487","file0":"1345145482","file4":"1345145502","file5":"1345145506","file3":"1345145497"},"map_files_photo_id_array":[{"photo_id":"1345145506","filename":"file5"},{"photo_id":"1345145493","filename":"file2"},{"photo_id":"1345145502","filename":"file4"},{"photo_id":"1345145487","filename":"file1"},{"photo_id":"1345145482","filename":"file0"},{"photo_id":"1345145497","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345145493":["hashtag1","hashtag2"]},{"1345145487":["hashtag1","hashtag2"]},{"1345145506":["hashtag1","hashtag2"]},{"1345145502":["hashtag1","hashtag2"]},{"1345145497":["hashtag1","hashtag2"]},{"1345145482":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345145493, 1345145487, 1345145506, 1345145502, 1345145497, 1345145482)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.4080708026886 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:18:31.806293
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_53_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_48_5882.jpg', 2), ('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_42_6861.jpg', 2), ('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_35_6004.jpg', 2), ('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_29_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_23_5992.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_53_5699.jpg', '/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_48_5882.jpg', '/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_42_6861.jpg', '/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_35_6004.jpg', '/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_29_5856.jpg', '/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_23_5992.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_53_5699.jpg
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_48_5882.jpg
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_42_6861.jpg
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_35_6004.jpg
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_29_5856.jpg
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_23_5992.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.305588960647583 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:19:02.541518
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_53_5699.jpg', 2), ('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_48_5882.jpg', 2), ('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_42_6861.jpg', 2), ('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_35_6004.jpg', 2), ('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_29_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_23_5992.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_53_5699.jpg', '/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_48_5882.jpg', '/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_42_6861.jpg', '/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_35_6004.jpg', '/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_29_5856.jpg', '/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_23_5992.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_53_5699.jpg
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_48_5882.jpg
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_42_6861.jpg
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_35_6004.jpg
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_29_5856.jpg
/home/nano/Desktop/images/18032025/15/18/image_18032025_15_18_23_5992.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345145553","1345145547","1345145570","1345145563","1345145560","1345145542"],"photo_ids_order":["1345145542","1345145547","1345145553","1345145560","1345145563","1345145570"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8905237dc5a4c99fb2349d82ccae0749.jpg","text":"TemporaryFile(/tmp/multipartBody5711750741240927833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307602934,"filename":"image_18032025_15_18_42_6861.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac5da9c0cb481bf5aa7b7aa9e547e3e2.jpg","text":"TemporaryFile(/tmp/multipartBody2360699612410712905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307602934,"filename":"image_18032025_15_18_48_5882.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ab5d345d5eb5347ffadb592dde331cf.jpg","text":"TemporaryFile(/tmp/multipartBody8209484490002881787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307602934,"filename":"image_18032025_15_18_23_5992.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d2621f89c46e9d458f05c001a6729415.jpg","text":"TemporaryFile(/tmp/multipartBody4644503789806910668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307602934,"filename":"image_18032025_15_18_29_5856.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a88191429ed5644fe555aa41b481925b.jpg","text":"TemporaryFile(/tmp/multipartBody4515032099465251692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307602934,"filename":"image_18032025_15_18_35_6004.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/faebed9c1b10a59bdd931d83e53faeae.jpg","text":"TemporaryFile(/tmp/multipartBody6665694411195503923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307602934,"filename":"image_18032025_15_18_53_5699.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345145553","file1":"1345145547","file0":"1345145542","file4":"1345145563","file5":"1345145570","file3":"1345145560"},"map_files_photo_id_array":[{"photo_id":"1345145570","filename":"file5"},{"photo_id":"1345145553","filename":"file2"},{"photo_id":"1345145563","filename":"file4"},{"photo_id":"1345145547","filename":"file1"},{"photo_id":"1345145542","filename":"file0"},{"photo_id":"1345145560","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345145553":["hashtag1","hashtag2"]},{"1345145547":["hashtag1","hashtag2"]},{"1345145570":["hashtag1","hashtag2"]},{"1345145563":["hashtag1","hashtag2"]},{"1345145560":["hashtag1","hashtag2"]},{"1345145542":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345145553, 1345145547, 1345145570, 1345145563, 1345145560, 1345145542)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.64688229560852 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:20:02.478591
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_54_5764.jpg', 2), ('/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_48_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_42_6886.jpg', 2), ('/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_35_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_29_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_23_5898.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_54_5764.jpg', '/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_48_6105.jpg', '/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_42_6886.jpg', '/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_35_5867.jpg', '/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_29_5730.jpg', '/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_23_5898.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_54_5764.jpg
/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_48_6105.jpg
/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_42_6886.jpg
/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_35_5867.jpg
/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_29_5730.jpg
/home/nano/Desktop/images/18032025/15/19/image_18032025_15_19_23_5898.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345145643","1345145637","1345145634","1345145639","1345145647","1345145641"],"photo_ids_order":["1345145634","1345145637","1345145639","1345145641","1345145643","1345145647"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/028340f972a4dc210d5e8b6113182fb2.jpg","text":"TemporaryFile(/tmp/multipartBody889847759642340368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307662888,"filename":"image_18032025_15_19_29_5730.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01ea5c854e3e7844dc53427f4c038843.jpg","text":"TemporaryFile(/tmp/multipartBody1494200798198917361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307662888,"filename":"image_18032025_15_19_48_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/218721395959c76899ac5e91bf2a8292.jpg","text":"TemporaryFile(/tmp/multipartBody2251777371586346594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307662888,"filename":"image_18032025_15_19_54_5764.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28d5059f0ee7f24b0ad6996a507aa83f.jpg","text":"TemporaryFile(/tmp/multipartBody3033682499374175735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307662888,"filename":"image_18032025_15_19_42_6886.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/79ff0f931d52bb5a3cc912e50b90d92d.jpg","text":"TemporaryFile(/tmp/multipartBody1241831109267463955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307662888,"filename":"image_18032025_15_19_23_5898.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d182ef736964b7fd567d3f019bbb6085.jpg","text":"TemporaryFile(/tmp/multipartBody3390376540683639469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307662888,"filename":"image_18032025_15_19_35_5867.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345145639","file1":"1345145637","file0":"1345145634","file4":"1345145643","file5":"1345145647","file3":"1345145641"},"map_files_photo_id_array":[{"photo_id":"1345145647","filename":"file5"},{"photo_id":"1345145639","filename":"file2"},{"photo_id":"1345145643","filename":"file4"},{"photo_id":"1345145637","filename":"file1"},{"photo_id":"1345145634","filename":"file0"},{"photo_id":"1345145641","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345145643":["hashtag1","hashtag2"]},{"1345145637":["hashtag1","hashtag2"]},{"1345145634":["hashtag1","hashtag2"]},{"1345145639":["hashtag1","hashtag2"]},{"1345145647":["hashtag1","hashtag2"]},{"1345145641":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345145643, 1345145637, 1345145634, 1345145639, 1345145647, 1345145641)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.19524145126343 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:21:02.442073
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_54_6726.jpg', 2), ('/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_47_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_41_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_36_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_29_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_23_5626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_54_6726.jpg', '/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_47_5637.jpg', '/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_41_5625.jpg', '/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_36_6637.jpg', '/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_29_5644.jpg', '/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_23_5626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_54_6726.jpg
/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_47_5637.jpg
/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_41_5625.jpg
/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_36_6637.jpg
/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_29_5644.jpg
/home/nano/Desktop/images/18032025/15/20/image_18032025_15_20_23_5626.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345145766","1345145727","1345145747","1345145813","1345145714","1345145785"],"photo_ids_order":["1345145714","1345145727","1345145747","1345145766","1345145785","1345145813"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/36b607080b6482ccfa2a66f442fa5cb3.jpg","text":"TemporaryFile(/tmp/multipartBody3052629218909708286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307722791,"filename":"image_18032025_15_20_36_6637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f5915fdb03fe9fd3cc5a1d5bdb46cc1b.jpg","text":"TemporaryFile(/tmp/multipartBody594292596314209280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307722791,"filename":"image_18032025_15_20_47_5637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e85ad3cb3a20df7fdf1893ba327ce78.jpg","text":"TemporaryFile(/tmp/multipartBody5525322419957051321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307722791,"filename":"image_18032025_15_20_41_5625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/98d1f96e3290d17c00865c4f34bd471a.jpg","text":"TemporaryFile(/tmp/multipartBody449462321027676274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307722791,"filename":"image_18032025_15_20_23_5626.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5512cf5ebed40422dc975f6d9e93f9ff.jpg","text":"TemporaryFile(/tmp/multipartBody2430236939823135282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307722791,"filename":"image_18032025_15_20_54_6726.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2f41de84caf32028586df51e2046f2f5.jpg","text":"TemporaryFile(/tmp/multipartBody6842918267443222800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307722791,"filename":"image_18032025_15_20_29_5644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345145747","file1":"1345145727","file0":"1345145714","file4":"1345145785","file5":"1345145813","file3":"1345145766"},"map_files_photo_id_array":[{"photo_id":"1345145813","filename":"file5"},{"photo_id":"1345145747","filename":"file2"},{"photo_id":"1345145785","filename":"file4"},{"photo_id":"1345145727","filename":"file1"},{"photo_id":"1345145714","filename":"file0"},{"photo_id":"1345145766","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345145766":["hashtag1","hashtag2"]},{"1345145727":["hashtag1","hashtag2"]},{"1345145747":["hashtag1","hashtag2"]},{"1345145813":["hashtag1","hashtag2"]},{"1345145714":["hashtag1","hashtag2"]},{"1345145785":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345145766, 1345145727, 1345145747, 1345145813, 1345145714, 1345145785)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.63920974731445 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:22:02.650563
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_53_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_47_6619.jpg', 2), ('/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_41_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_35_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_30_6676.jpg', 2), ('/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_23_5676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_53_5657.jpg', '/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_47_6619.jpg', '/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_41_5624.jpg', '/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_35_5624.jpg', '/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_30_6676.jpg', '/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_23_5676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_53_5657.jpg
/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_47_6619.jpg
/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_41_5624.jpg
/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_35_5624.jpg
/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_30_6676.jpg
/home/nano/Desktop/images/18032025/15/21/image_18032025_15_21_23_5676.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146135","1345146167","1345146105","1345146095","1345146121","1345146162"],"photo_ids_order":["1345146095","1345146105","1345146121","1345146135","1345146162","1345146167"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8299e79c467d882801ffa955bcf3fdb1.jpg","text":"TemporaryFile(/tmp/multipartBody7590799770601570504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307782980,"filename":"image_18032025_15_21_35_5624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a4bb79b0381318034a23863a04fb6cc5.jpg","text":"TemporaryFile(/tmp/multipartBody4905083446273604309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307782980,"filename":"image_18032025_15_21_23_5676.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/533d212d56a2dff86e3e3c3ff6d300c7.jpg","text":"TemporaryFile(/tmp/multipartBody8457436387401727269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307782980,"filename":"image_18032025_15_21_47_6619.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ae3ab2970ebc0ee6df976c3083bba03.jpg","text":"TemporaryFile(/tmp/multipartBody3974328406744317571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307782980,"filename":"image_18032025_15_21_53_5657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec2da1b001b589006f125f770845a791.jpg","text":"TemporaryFile(/tmp/multipartBody1562782339241599218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307782980,"filename":"image_18032025_15_21_41_5624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/05e0f5eeb4c570d6c00ad289545ebe13.jpg","text":"TemporaryFile(/tmp/multipartBody7444765239200883682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307782980,"filename":"image_18032025_15_21_30_6676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146121","file1":"1345146105","file0":"1345146095","file4":"1345146162","file5":"1345146167","file3":"1345146135"},"map_files_photo_id_array":[{"photo_id":"1345146167","filename":"file5"},{"photo_id":"1345146121","filename":"file2"},{"photo_id":"1345146162","filename":"file4"},{"photo_id":"1345146105","filename":"file1"},{"photo_id":"1345146095","filename":"file0"},{"photo_id":"1345146135","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146135":["hashtag1","hashtag2"]},{"1345146167":["hashtag1","hashtag2"]},{"1345146105":["hashtag1","hashtag2"]},{"1345146095":["hashtag1","hashtag2"]},{"1345146121":["hashtag1","hashtag2"]},{"1345146162":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146135, 1345146167, 1345146105, 1345146095, 1345146121, 1345146162)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.17610430717468 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:23:02.684202
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_53_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_47_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_41_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_36_6669.jpg', 2), ('/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_29_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_23_5643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_53_5668.jpg', '/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_47_5737.jpg', '/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_41_5637.jpg', '/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_36_6669.jpg', '/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_29_5660.jpg', '/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_23_5643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_53_5668.jpg
/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_47_5737.jpg
/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_41_5637.jpg
/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_36_6669.jpg
/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_29_5660.jpg
/home/nano/Desktop/images/18032025/15/22/image_18032025_15_22_23_5643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146210","1345146204","1345146212","1345146206","1345146214","1345146208"],"photo_ids_order":["1345146204","1345146206","1345146208","1345146210","1345146212","1345146214"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a37ebdb21776e250ea51949c8208c31.jpg","text":"TemporaryFile(/tmp/multipartBody4419180410949414965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307843052,"filename":"image_18032025_15_22_36_6669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69e8309af582aed3ffa1bd37dfe35908.jpg","text":"TemporaryFile(/tmp/multipartBody6794827136540809238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307843052,"filename":"image_18032025_15_22_53_5668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ef57e7364b810355097d743f9cb7554e.jpg","text":"TemporaryFile(/tmp/multipartBody4854911189689183502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307843052,"filename":"image_18032025_15_22_29_5660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9124e26364e6360f5b710379ee4a3945.jpg","text":"TemporaryFile(/tmp/multipartBody1250661142159364676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307843052,"filename":"image_18032025_15_22_47_5737.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3c69443c141e86bbf3b02880eb6f1136.jpg","text":"TemporaryFile(/tmp/multipartBody8527750473750861233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307843052,"filename":"image_18032025_15_22_23_5643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ed2f5d000ffb50c5b1b85cc8628a858.jpg","text":"TemporaryFile(/tmp/multipartBody5908386524175627778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307843052,"filename":"image_18032025_15_22_41_5637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146208","file1":"1345146206","file0":"1345146204","file4":"1345146212","file5":"1345146214","file3":"1345146210"},"map_files_photo_id_array":[{"photo_id":"1345146214","filename":"file5"},{"photo_id":"1345146208","filename":"file2"},{"photo_id":"1345146212","filename":"file4"},{"photo_id":"1345146206","filename":"file1"},{"photo_id":"1345146204","filename":"file0"},{"photo_id":"1345146210","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146210":["hashtag1","hashtag2"]},{"1345146204":["hashtag1","hashtag2"]},{"1345146212":["hashtag1","hashtag2"]},{"1345146206":["hashtag1","hashtag2"]},{"1345146214":["hashtag1","hashtag2"]},{"1345146208":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146210, 1345146204, 1345146212, 1345146206, 1345146214, 1345146208)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.79575777053833 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:24:02.938887
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_53_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_47_5713.jpg', 2), ('/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_42_6664.jpg', 2), ('/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_35_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_29_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_24_6698.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_53_5646.jpg', '/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_47_5713.jpg', '/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_42_6664.jpg', '/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_35_5679.jpg', '/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_29_5660.jpg', '/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_24_6698.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_53_5646.jpg
/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_47_5713.jpg
/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_42_6664.jpg
/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_35_5679.jpg
/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_29_5660.jpg
/home/nano/Desktop/images/18032025/15/23/image_18032025_15_23_24_6698.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146264","1345146252","1345146257","1345146259","1345146250","1345146261"],"photo_ids_order":["1345146250","1345146252","1345146257","1345146259","1345146261","1345146264"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/668e12e06703ad3af49129677d2d0660.jpg","text":"TemporaryFile(/tmp/multipartBody8614089429260357202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307903295,"filename":"image_18032025_15_23_24_6698.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4be00eafc971173cd64cf6f6930429f4.jpg","text":"TemporaryFile(/tmp/multipartBody5584705634296958152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307903295,"filename":"image_18032025_15_23_47_5713.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce22914e2b105d79d88bb20ac543ac13.jpg","text":"TemporaryFile(/tmp/multipartBody6974654997517638504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307903295,"filename":"image_18032025_15_23_42_6664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6359ca8e01970135b3647b057d25345.jpg","text":"TemporaryFile(/tmp/multipartBody7899089531710769000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307903295,"filename":"image_18032025_15_23_35_5679.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/11ad70ae4e1772671b6b87a29e4cb565.jpg","text":"TemporaryFile(/tmp/multipartBody7958348710470107213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307903295,"filename":"image_18032025_15_23_53_5646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca3d71ded41001d8dec0596b252dbf12.jpg","text":"TemporaryFile(/tmp/multipartBody1028597365583343868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307903295,"filename":"image_18032025_15_23_29_5660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146257","file1":"1345146252","file0":"1345146250","file4":"1345146261","file5":"1345146264","file3":"1345146259"},"map_files_photo_id_array":[{"photo_id":"1345146264","filename":"file5"},{"photo_id":"1345146257","filename":"file2"},{"photo_id":"1345146261","filename":"file4"},{"photo_id":"1345146252","filename":"file1"},{"photo_id":"1345146250","filename":"file0"},{"photo_id":"1345146259","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146264":["hashtag1","hashtag2"]},{"1345146252":["hashtag1","hashtag2"]},{"1345146257":["hashtag1","hashtag2"]},{"1345146259":["hashtag1","hashtag2"]},{"1345146250":["hashtag1","hashtag2"]},{"1345146261":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146264, 1345146252, 1345146257, 1345146259, 1345146250, 1345146261)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.72042989730835 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:25:02.827733
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_54_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_47_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_41_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_36_6716.jpg', 2), ('/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_29_5711.jpg', 2), ('/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_23_5650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_54_6662.jpg', '/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_47_5652.jpg', '/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_41_5624.jpg', '/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_36_6716.jpg', '/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_29_5711.jpg', '/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_23_5650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_54_6662.jpg
/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_47_5652.jpg
/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_41_5624.jpg
/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_36_6716.jpg
/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_29_5711.jpg
/home/nano/Desktop/images/18032025/15/24/image_18032025_15_24_23_5650.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146320","1345146338","1345146305","1345146298","1345146313","1345146316"],"photo_ids_order":["1345146298","1345146305","1345146313","1345146316","1345146320","1345146338"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c1f913d3e1ba9a1caad1ba7dcc4c1596.jpg","text":"TemporaryFile(/tmp/multipartBody5591851222005552642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307963187,"filename":"image_18032025_15_24_29_5711.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bf12185f17005562724f7b7a56689567.jpg","text":"TemporaryFile(/tmp/multipartBody4508881988938124720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307963187,"filename":"image_18032025_15_24_23_5650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9e9378a169a0b60e3d9466f82e1d2a3.jpg","text":"TemporaryFile(/tmp/multipartBody4512033391444393869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307963187,"filename":"image_18032025_15_24_47_5652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43972e3a900f73f959fa37d0e9294530.jpg","text":"TemporaryFile(/tmp/multipartBody3358612718695388036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307963187,"filename":"image_18032025_15_24_54_6662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d5703eeee75f981d190ae10d6e5d9cf1.jpg","text":"TemporaryFile(/tmp/multipartBody8197353105637422079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307963187,"filename":"image_18032025_15_24_41_5624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/451a945a4a70c9a151bf413d4b522924.jpg","text":"TemporaryFile(/tmp/multipartBody8970155456366929696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742307963187,"filename":"image_18032025_15_24_36_6716.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146313","file1":"1345146305","file0":"1345146298","file4":"1345146320","file5":"1345146338","file3":"1345146316"},"map_files_photo_id_array":[{"photo_id":"1345146338","filename":"file5"},{"photo_id":"1345146313","filename":"file2"},{"photo_id":"1345146320","filename":"file4"},{"photo_id":"1345146305","filename":"file1"},{"photo_id":"1345146298","filename":"file0"},{"photo_id":"1345146316","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146320":["hashtag1","hashtag2"]},{"1345146338":["hashtag1","hashtag2"]},{"1345146305":["hashtag1","hashtag2"]},{"1345146298":["hashtag1","hashtag2"]},{"1345146313":["hashtag1","hashtag2"]},{"1345146316":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146320, 1345146338, 1345146305, 1345146298, 1345146313, 1345146316)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.511157274246216 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:26:03.071466
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_53_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_48_6622.jpg', 2), ('/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_41_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_35_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_30_6697.jpg', 2), ('/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_23_5685.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_53_5621.jpg', '/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_48_6622.jpg', '/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_41_5629.jpg', '/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_35_5630.jpg', '/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_30_6697.jpg', '/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_23_5685.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_53_5621.jpg
/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_48_6622.jpg
/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_41_5629.jpg
/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_35_5630.jpg
/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_30_6697.jpg
/home/nano/Desktop/images/18032025/15/25/image_18032025_15_25_23_5685.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146395","1345146404","1345146481","1345146430","1345146448","1345146409"],"photo_ids_order":["1345146395","1345146404","1345146409","1345146430","1345146448","1345146481"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/989eb53bddc73c6be2a4dcf72cfb1d6b.jpg","text":"TemporaryFile(/tmp/multipartBody2212173299223642586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308023418,"filename":"image_18032025_15_25_53_5621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/da904b29ab99560966d42c21ee514fea.jpg","text":"TemporaryFile(/tmp/multipartBody9222517929587211493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308023418,"filename":"image_18032025_15_25_48_6622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ee4930be4e0c0c8d29b2676cf4013c4b.jpg","text":"TemporaryFile(/tmp/multipartBody5968771443683010197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308023418,"filename":"image_18032025_15_25_23_5685.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0b26e19c4dc18e7dccacaf17d0af22cf.jpg","text":"TemporaryFile(/tmp/multipartBody5067202601834215340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308023418,"filename":"image_18032025_15_25_35_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ea43b8dbab97064982325d13a9116d5e.jpg","text":"TemporaryFile(/tmp/multipartBody5502362687597550851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308023418,"filename":"image_18032025_15_25_30_6697.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9c6dc8e44a91ab03b0d2662d2730dd7b.jpg","text":"TemporaryFile(/tmp/multipartBody1927032573750359163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308023418,"filename":"image_18032025_15_25_41_5629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146409","file1":"1345146404","file0":"1345146395","file4":"1345146448","file5":"1345146481","file3":"1345146430"},"map_files_photo_id_array":[{"photo_id":"1345146481","filename":"file5"},{"photo_id":"1345146409","filename":"file2"},{"photo_id":"1345146448","filename":"file4"},{"photo_id":"1345146404","filename":"file1"},{"photo_id":"1345146395","filename":"file0"},{"photo_id":"1345146430","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146395":["hashtag1","hashtag2"]},{"1345146404":["hashtag1","hashtag2"]},{"1345146481":["hashtag1","hashtag2"]},{"1345146430":["hashtag1","hashtag2"]},{"1345146448":["hashtag1","hashtag2"]},{"1345146409":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146395, 1345146404, 1345146481, 1345146430, 1345146448, 1345146409)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.96440553665161 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:27:02.216583
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_54_5959.jpg', 2), ('/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_48_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_29_5698.jpg', 2), ('/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_23_6010.jpg', 2), ('/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_17_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_11_5813.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_54_5959.jpg', '/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_48_5854.jpg', '/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_29_5698.jpg', '/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_23_6010.jpg', '/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_17_5867.jpg', '/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_11_5813.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_54_5959.jpg
/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_48_5854.jpg
/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_29_5698.jpg
/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_23_6010.jpg
/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_17_5867.jpg
/home/nano/Desktop/images/18032025/15/26/image_18032025_15_26_11_5813.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146596","1345146599","1345146611","1345146629","1345146623","1345146619"],"photo_ids_order":["1345146596","1345146599","1345146611","1345146619","1345146623","1345146629"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/360f8d367f4fc8eba8ca41e85614673f.jpg","text":"TemporaryFile(/tmp/multipartBody7397733092006130239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308082617,"filename":"image_18032025_15_26_54_5959.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5159d4fcad86b442afaa3a4a2760117c.jpg","text":"TemporaryFile(/tmp/multipartBody3238967696643699231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308082617,"filename":"image_18032025_15_26_48_5854.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/82bce312690ca440151348817ce81bdb.jpg","text":"TemporaryFile(/tmp/multipartBody5304973273656614197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308082617,"filename":"image_18032025_15_26_29_5698.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b7e87c6085a73b0cc909c436596c69cb.jpg","text":"TemporaryFile(/tmp/multipartBody6319864782982120087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308082617,"filename":"image_18032025_15_26_11_5813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/80907b3e72f114a8206c6d8aabf0cb3a.jpg","text":"TemporaryFile(/tmp/multipartBody2400393212379280875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308082617,"filename":"image_18032025_15_26_17_5867.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dbbb638f09d051a3392a22b101c06b9c.jpg","text":"TemporaryFile(/tmp/multipartBody4083069342667909681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308082617,"filename":"image_18032025_15_26_23_6010.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146611","file1":"1345146599","file0":"1345146596","file4":"1345146623","file5":"1345146629","file3":"1345146619"},"map_files_photo_id_array":[{"photo_id":"1345146629","filename":"file5"},{"photo_id":"1345146611","filename":"file2"},{"photo_id":"1345146623","filename":"file4"},{"photo_id":"1345146599","filename":"file1"},{"photo_id":"1345146596","filename":"file0"},{"photo_id":"1345146619","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146596":["hashtag1","hashtag2"]},{"1345146599":["hashtag1","hashtag2"]},{"1345146611":["hashtag1","hashtag2"]},{"1345146629":["hashtag1","hashtag2"]},{"1345146623":["hashtag1","hashtag2"]},{"1345146619":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146596, 1345146599, 1345146611, 1345146629, 1345146623, 1345146619)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.80376148223877 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:28:02.318690
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_53_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_47_5998.jpg', 2), ('/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_41_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_36_5952.jpg', 2), ('/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_30_6729.jpg', 2), ('/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_23_5934.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_53_5780.jpg', '/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_47_5998.jpg', '/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_41_5890.jpg', '/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_36_5952.jpg', '/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_30_6729.jpg', '/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_23_5934.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_53_5780.jpg
/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_47_5998.jpg
/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_41_5890.jpg
/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_36_5952.jpg
/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_30_6729.jpg
/home/nano/Desktop/images/18032025/15/27/image_18032025_15_27_23_5934.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146669","1345146671","1345146685","1345146679","1345146676","1345146666"],"photo_ids_order":["1345146666","1345146669","1345146671","1345146676","1345146679","1345146685"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6759f481dcb73de8bbeaba187363cb75.jpg","text":"TemporaryFile(/tmp/multipartBody3363137976591399734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308142725,"filename":"image_18032025_15_27_47_5998.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f577eec82fe4c77cc06180d2492c6e93.jpg","text":"TemporaryFile(/tmp/multipartBody7213507591242074559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308142725,"filename":"image_18032025_15_27_41_5890.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a3e119bb9ace5285145ed28e44e7b924.jpg","text":"TemporaryFile(/tmp/multipartBody5288583812839752259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308142725,"filename":"image_18032025_15_27_23_5934.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a2c5119caf9a51868c5ee2367aeb03a.jpg","text":"TemporaryFile(/tmp/multipartBody6633955725454782711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308142725,"filename":"image_18032025_15_27_30_6729.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d07f4b9659edb939cfd94ddfb7af7ada.jpg","text":"TemporaryFile(/tmp/multipartBody431979467975492300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308142725,"filename":"image_18032025_15_27_36_5952.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7116a56dfe078c08c2778757f0715d5f.jpg","text":"TemporaryFile(/tmp/multipartBody7116208836397518278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308142725,"filename":"image_18032025_15_27_53_5780.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146671","file1":"1345146669","file0":"1345146666","file4":"1345146679","file5":"1345146685","file3":"1345146676"},"map_files_photo_id_array":[{"photo_id":"1345146685","filename":"file5"},{"photo_id":"1345146671","filename":"file2"},{"photo_id":"1345146679","filename":"file4"},{"photo_id":"1345146669","filename":"file1"},{"photo_id":"1345146666","filename":"file0"},{"photo_id":"1345146676","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146669":["hashtag1","hashtag2"]},{"1345146671":["hashtag1","hashtag2"]},{"1345146685":["hashtag1","hashtag2"]},{"1345146679":["hashtag1","hashtag2"]},{"1345146676":["hashtag1","hashtag2"]},{"1345146666":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146669, 1345146671, 1345146685, 1345146679, 1345146676, 1345146666)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.30275750160217 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:29:02.511307
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_53_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_47_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_42_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_35_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_29_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_24_6622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_53_5639.jpg', '/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_47_5658.jpg', '/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_42_6644.jpg', '/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_35_5641.jpg', '/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_29_5618.jpg', '/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_24_6622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_53_5639.jpg
/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_47_5658.jpg
/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_42_6644.jpg
/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_35_5641.jpg
/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_29_5618.jpg
/home/nano/Desktop/images/18032025/15/28/image_18032025_15_28_24_6622.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146714","1345146711","1345146721","1345146718","1345146727","1345146709"],"photo_ids_order":["1345146709","1345146711","1345146714","1345146718","1345146721","1345146727"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4afd58c24f796f74dd5972714200c8cb.jpg","text":"TemporaryFile(/tmp/multipartBody4558500431833041925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308202910,"filename":"image_18032025_15_28_42_6644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b84cc834530ab36f8a89fd7cb2ccf899.jpg","text":"TemporaryFile(/tmp/multipartBody2569264478362444244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308202910,"filename":"image_18032025_15_28_47_5658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/387e4fd9e9f60c43e5a157e960028159.jpg","text":"TemporaryFile(/tmp/multipartBody2058475312379702466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308202910,"filename":"image_18032025_15_28_29_5618.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d8d620089211e5a0ac0259a7d6873619.jpg","text":"TemporaryFile(/tmp/multipartBody4432080561471193131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308202910,"filename":"image_18032025_15_28_35_5641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f32a6729ceef4225bc30f495f3aea093.jpg","text":"TemporaryFile(/tmp/multipartBody6137933353933855444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308202910,"filename":"image_18032025_15_28_24_6622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/65276fb4edc05c1b03e3a87bd0f98efd.jpg","text":"TemporaryFile(/tmp/multipartBody2696831764296233904asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308202910,"filename":"image_18032025_15_28_53_5639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146714","file1":"1345146711","file0":"1345146709","file4":"1345146721","file5":"1345146727","file3":"1345146718"},"map_files_photo_id_array":[{"photo_id":"1345146727","filename":"file5"},{"photo_id":"1345146714","filename":"file2"},{"photo_id":"1345146721","filename":"file4"},{"photo_id":"1345146711","filename":"file1"},{"photo_id":"1345146709","filename":"file0"},{"photo_id":"1345146718","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146714":["hashtag1","hashtag2"]},{"1345146711":["hashtag1","hashtag2"]},{"1345146721":["hashtag1","hashtag2"]},{"1345146718":["hashtag1","hashtag2"]},{"1345146727":["hashtag1","hashtag2"]},{"1345146709":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146714, 1345146711, 1345146721, 1345146718, 1345146727, 1345146709)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.24748396873474 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:30:02.410957
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_53_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_48_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_41_5602.jpg', 2), ('/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_35_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_30_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_23_5626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_53_5676.jpg', '/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_48_6648.jpg', '/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_41_5602.jpg', '/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_35_5663.jpg', '/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_30_6644.jpg', '/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_23_5626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_53_5676.jpg
/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_48_6648.jpg
/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_41_5602.jpg
/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_35_5663.jpg
/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_30_6644.jpg
/home/nano/Desktop/images/18032025/15/29/image_18032025_15_29_23_5626.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146791","1345146794","1345146782","1345146779","1345146799","1345146786"],"photo_ids_order":["1345146779","1345146782","1345146786","1345146791","1345146794","1345146799"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e1a214ca064de8309504e1acc668247.jpg","text":"TemporaryFile(/tmp/multipartBody7234564487443935056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308262735,"filename":"image_18032025_15_29_35_5663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/354991a3322ab4f45bfed5dbee54ef94.jpg","text":"TemporaryFile(/tmp/multipartBody5671043279506531600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308262735,"filename":"image_18032025_15_29_30_6644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/820bc0e2e68aa05daa2b78e972b2aaa0.jpg","text":"TemporaryFile(/tmp/multipartBody167991649438296953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308262735,"filename":"image_18032025_15_29_48_6648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ea41dd868f8d38f7cf58dc539b6a292.jpg","text":"TemporaryFile(/tmp/multipartBody5309840932025118269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308262735,"filename":"image_18032025_15_29_53_5676.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4357c955f0ad7005395187c6d4a3a9ac.jpg","text":"TemporaryFile(/tmp/multipartBody7709501503076656344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308262735,"filename":"image_18032025_15_29_23_5626.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3846d20804fe4aad3d214a064b80dd6.jpg","text":"TemporaryFile(/tmp/multipartBody2621717430343203548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308262735,"filename":"image_18032025_15_29_41_5602.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146786","file1":"1345146782","file0":"1345146779","file4":"1345146794","file5":"1345146799","file3":"1345146791"},"map_files_photo_id_array":[{"photo_id":"1345146799","filename":"file5"},{"photo_id":"1345146786","filename":"file2"},{"photo_id":"1345146794","filename":"file4"},{"photo_id":"1345146782","filename":"file1"},{"photo_id":"1345146779","filename":"file0"},{"photo_id":"1345146791","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146791":["hashtag1","hashtag2"]},{"1345146794":["hashtag1","hashtag2"]},{"1345146782":["hashtag1","hashtag2"]},{"1345146779":["hashtag1","hashtag2"]},{"1345146799":["hashtag1","hashtag2"]},{"1345146786":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146791, 1345146794, 1345146782, 1345146779, 1345146799, 1345146786)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.34548592567444 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:31:02.587082
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_53_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_48_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_42_6719.jpg', 2), ('/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_35_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_29_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_24_6666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_53_5791.jpg', '/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_48_5750.jpg', '/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_42_6719.jpg', '/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_35_5718.jpg', '/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_29_5780.jpg', '/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_24_6666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_53_5791.jpg
/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_48_5750.jpg
/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_42_6719.jpg
/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_35_5718.jpg
/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_29_5780.jpg
/home/nano/Desktop/images/18032025/15/30/image_18032025_15_30_24_6666.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146828","1345146822","1345146819","1345146824","1345146818","1345146814"],"photo_ids_order":["1345146814","1345146818","1345146819","1345146822","1345146824","1345146828"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4061298c33859073db2b36188d86a781.jpg","text":"TemporaryFile(/tmp/multipartBody6425002735059490832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308322984,"filename":"image_18032025_15_30_24_6666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43ef9ee588517f3c5f3ad1d7040487e1.jpg","text":"TemporaryFile(/tmp/multipartBody8008774870181481587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308322984,"filename":"image_18032025_15_30_35_5718.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c608f4188cc1e585d63d6ece6eff75a0.jpg","text":"TemporaryFile(/tmp/multipartBody3460339732602556422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308322984,"filename":"image_18032025_15_30_42_6719.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5fb1de1484e21715bca1afe4ea4d9aa3.jpg","text":"TemporaryFile(/tmp/multipartBody6825043178824608636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308322984,"filename":"image_18032025_15_30_29_5780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/318a20e6740f7dc04fc0d5c65c23b9c5.jpg","text":"TemporaryFile(/tmp/multipartBody3306051790461537697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308322984,"filename":"image_18032025_15_30_48_5750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a6304c2d2dccd032190b3dd68ee80eaf.jpg","text":"TemporaryFile(/tmp/multipartBody661660216950332771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308322984,"filename":"image_18032025_15_30_53_5791.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146819","file1":"1345146818","file0":"1345146814","file4":"1345146824","file5":"1345146828","file3":"1345146822"},"map_files_photo_id_array":[{"photo_id":"1345146828","filename":"file5"},{"photo_id":"1345146819","filename":"file2"},{"photo_id":"1345146824","filename":"file4"},{"photo_id":"1345146818","filename":"file1"},{"photo_id":"1345146814","filename":"file0"},{"photo_id":"1345146822","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146828":["hashtag1","hashtag2"]},{"1345146822":["hashtag1","hashtag2"]},{"1345146819":["hashtag1","hashtag2"]},{"1345146824":["hashtag1","hashtag2"]},{"1345146818":["hashtag1","hashtag2"]},{"1345146814":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146828, 1345146822, 1345146819, 1345146824, 1345146818, 1345146814)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.649049520492554 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:32:02.689628
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_54_5807.jpg', 2), ('/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_48_6766.jpg', 2), ('/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_41_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_35_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_29_5947.jpg', 2), ('/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_17_5809.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_54_5807.jpg', '/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_48_6766.jpg', '/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_41_5791.jpg', '/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_35_5784.jpg', '/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_29_5947.jpg', '/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_17_5809.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_54_5807.jpg
/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_48_6766.jpg
/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_41_5791.jpg
/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_35_5784.jpg
/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_29_5947.jpg
/home/nano/Desktop/images/18032025/15/31/image_18032025_15_31_17_5809.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146860","1345146865","1345146880","1345146853","1345146856","1345146858"],"photo_ids_order":["1345146853","1345146856","1345146858","1345146860","1345146865","1345146880"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f16f23508cec2752c1380bf8a8f272f0.jpg","text":"TemporaryFile(/tmp/multipartBody6970490735152393191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308383122,"filename":"image_18032025_15_31_35_5784.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ed4c268e9f8bbb651fc0e0b2158544b.jpg","text":"TemporaryFile(/tmp/multipartBody8903265360145076822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308383122,"filename":"image_18032025_15_31_29_5947.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b94922978c5d487af68cc479d74bd4c0.jpg","text":"TemporaryFile(/tmp/multipartBody42141384887417078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308383122,"filename":"image_18032025_15_31_17_5809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9caba1b47660668587fc33b600d2c561.jpg","text":"TemporaryFile(/tmp/multipartBody1383354761643196487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308383122,"filename":"image_18032025_15_31_54_5807.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/857a778df799210d6bf5cbf380aa8fdc.jpg","text":"TemporaryFile(/tmp/multipartBody1448360891554676911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308383122,"filename":"image_18032025_15_31_48_6766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5c7f66ce473dc0f2f3a9d569205f04c6.jpg","text":"TemporaryFile(/tmp/multipartBody7190828949035327597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308383122,"filename":"image_18032025_15_31_41_5791.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146858","file1":"1345146856","file0":"1345146853","file4":"1345146865","file5":"1345146880","file3":"1345146860"},"map_files_photo_id_array":[{"photo_id":"1345146880","filename":"file5"},{"photo_id":"1345146858","filename":"file2"},{"photo_id":"1345146865","filename":"file4"},{"photo_id":"1345146856","filename":"file1"},{"photo_id":"1345146853","filename":"file0"},{"photo_id":"1345146860","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146860":["hashtag1","hashtag2"]},{"1345146865":["hashtag1","hashtag2"]},{"1345146880":["hashtag1","hashtag2"]},{"1345146853":["hashtag1","hashtag2"]},{"1345146856":["hashtag1","hashtag2"]},{"1345146858":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146860, 1345146865, 1345146880, 1345146853, 1345146856, 1345146858)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.34402680397034 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:33:02.776190
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_53_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_47_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_42_6753.jpg', 2), ('/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_35_5725.jpg', 2), ('/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_29_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_23_5724.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_53_5613.jpg', '/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_47_5758.jpg', '/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_42_6753.jpg', '/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_35_5725.jpg', '/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_29_5769.jpg', '/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_23_5724.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_53_5613.jpg
/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_47_5758.jpg
/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_42_6753.jpg
/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_35_5725.jpg
/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_29_5769.jpg
/home/nano/Desktop/images/18032025/15/32/image_18032025_15_32_23_5724.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146945","1345146947","1345146950","1345146932","1345146934","1345146943"],"photo_ids_order":["1345146932","1345146934","1345146943","1345146945","1345146947","1345146950"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f1371266e662a6cca2652f0ad41ca577.jpg","text":"TemporaryFile(/tmp/multipartBody315612175191356798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308443154,"filename":"image_18032025_15_32_35_5725.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4fe146431167f2d134a7ae789b1d8b00.jpg","text":"TemporaryFile(/tmp/multipartBody6803273786560154891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308443154,"filename":"image_18032025_15_32_29_5769.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4caeae86e34e2290a9faa197fa6dc98c.jpg","text":"TemporaryFile(/tmp/multipartBody8227379315005917423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308443154,"filename":"image_18032025_15_32_23_5724.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4b5b37909cbf5f2f7a82d024783ec31a.jpg","text":"TemporaryFile(/tmp/multipartBody6442909043816758174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308443154,"filename":"image_18032025_15_32_53_5613.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14d84b7bc376ab349aed5165e4aae25a.jpg","text":"TemporaryFile(/tmp/multipartBody8152527935475513501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308443154,"filename":"image_18032025_15_32_47_5758.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0a5f02d1eed8f7c385b68e64e3f05e16.jpg","text":"TemporaryFile(/tmp/multipartBody2985330566470612202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308443154,"filename":"image_18032025_15_32_42_6753.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146943","file1":"1345146934","file0":"1345146932","file4":"1345146947","file5":"1345146950","file3":"1345146945"},"map_files_photo_id_array":[{"photo_id":"1345146950","filename":"file5"},{"photo_id":"1345146943","filename":"file2"},{"photo_id":"1345146947","filename":"file4"},{"photo_id":"1345146934","filename":"file1"},{"photo_id":"1345146932","filename":"file0"},{"photo_id":"1345146945","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146945":["hashtag1","hashtag2"]},{"1345146947":["hashtag1","hashtag2"]},{"1345146950":["hashtag1","hashtag2"]},{"1345146932":["hashtag1","hashtag2"]},{"1345146934":["hashtag1","hashtag2"]},{"1345146943":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146945, 1345146947, 1345146950, 1345146932, 1345146934, 1345146943)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.9708309173584 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:34:03.105966
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_53_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_47_5935.jpg', 2), ('/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_42_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_35_5965.jpg', 2), ('/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_30_6031.jpg', 2), ('/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_23_5878.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_53_6029.jpg', '/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_47_5935.jpg', '/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_42_6055.jpg', '/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_35_5965.jpg', '/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_30_6031.jpg', '/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_23_5878.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_53_6029.jpg
/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_47_5935.jpg
/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_42_6055.jpg
/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_35_5965.jpg
/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_30_6031.jpg
/home/nano/Desktop/images/18032025/15/33/image_18032025_15_33_23_5878.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345146976","1345146985","1345146979","1345146987","1345146981","1345146978"],"photo_ids_order":["1345146976","1345146978","1345146979","1345146981","1345146985","1345146987"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6a5a03ec58e2cdf6b6e25571f28c732.jpg","text":"TemporaryFile(/tmp/multipartBody8242686053477004145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308503553,"filename":"image_18032025_15_33_53_6029.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b80868cc54ed5238f93a427942c4023e.jpg","text":"TemporaryFile(/tmp/multipartBody3980968008080931227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308503553,"filename":"image_18032025_15_33_30_6031.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b51925cc5f6316e47757641b714a214.jpg","text":"TemporaryFile(/tmp/multipartBody6889432255404548258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308503553,"filename":"image_18032025_15_33_42_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c38e3864aa675f9b356eed85486f6032.jpg","text":"TemporaryFile(/tmp/multipartBody7496020968988630754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308503553,"filename":"image_18032025_15_33_23_5878.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/affad965974ac90bec4a2158a7d84713.jpg","text":"TemporaryFile(/tmp/multipartBody4645303858976422491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308503553,"filename":"image_18032025_15_33_35_5965.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f007ef080e8623dd70dea87782c71f7b.jpg","text":"TemporaryFile(/tmp/multipartBody666234209301151065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308503553,"filename":"image_18032025_15_33_47_5935.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345146979","file1":"1345146978","file0":"1345146976","file4":"1345146985","file5":"1345146987","file3":"1345146981"},"map_files_photo_id_array":[{"photo_id":"1345146987","filename":"file5"},{"photo_id":"1345146979","filename":"file2"},{"photo_id":"1345146985","filename":"file4"},{"photo_id":"1345146978","filename":"file1"},{"photo_id":"1345146976","filename":"file0"},{"photo_id":"1345146981","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345146976":["hashtag1","hashtag2"]},{"1345146985":["hashtag1","hashtag2"]},{"1345146979":["hashtag1","hashtag2"]},{"1345146987":["hashtag1","hashtag2"]},{"1345146981":["hashtag1","hashtag2"]},{"1345146978":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345146976, 1345146985, 1345146979, 1345146987, 1345146981, 1345146978)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.22324085235596 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:35:02.948791
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_53_5986.jpg', 2), ('/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_47_5807.jpg', 2), ('/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_42_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_36_5965.jpg', 2), ('/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_23_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_17_6041.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_53_5986.jpg', '/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_47_5807.jpg', '/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_42_5844.jpg', '/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_36_5965.jpg', '/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_23_5805.jpg', '/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_17_6041.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_53_5986.jpg
/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_47_5807.jpg
/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_42_5844.jpg
/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_36_5965.jpg
/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_23_5805.jpg
/home/nano/Desktop/images/18032025/15/34/image_18032025_15_34_17_6041.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345147535","1345147454","1345147400","1345147359","1345147530","1345147362"],"photo_ids_order":["1345147359","1345147362","1345147400","1345147454","1345147530","1345147535"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f77f1db48d9f993e710e5ade152190c3.jpg","text":"TemporaryFile(/tmp/multipartBody4363845068523482177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308563356,"filename":"image_18032025_15_34_17_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/abbecb8c271a82c2298bb82a94fa8226.jpg","text":"TemporaryFile(/tmp/multipartBody2882350968729648686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308563356,"filename":"image_18032025_15_34_36_5965.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9e58af158a352306b151c37945b9f246.jpg","text":"TemporaryFile(/tmp/multipartBody158191719405837996asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308563356,"filename":"image_18032025_15_34_42_5844.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4e0b2d602aac3b1076db1b46ea62aafd.jpg","text":"TemporaryFile(/tmp/multipartBody5916677328027776095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308563356,"filename":"image_18032025_15_34_53_5986.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/60e0902a3f41b59362ec581e420056e7.jpg","text":"TemporaryFile(/tmp/multipartBody4517717480688961482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308563356,"filename":"image_18032025_15_34_23_5805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8591d277029c15aba6832418d00e02e9.jpg","text":"TemporaryFile(/tmp/multipartBody5631054106065098544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308563356,"filename":"image_18032025_15_34_47_5807.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345147400","file1":"1345147362","file0":"1345147359","file4":"1345147530","file5":"1345147535","file3":"1345147454"},"map_files_photo_id_array":[{"photo_id":"1345147535","filename":"file5"},{"photo_id":"1345147400","filename":"file2"},{"photo_id":"1345147530","filename":"file4"},{"photo_id":"1345147362","filename":"file1"},{"photo_id":"1345147359","filename":"file0"},{"photo_id":"1345147454","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345147535":["hashtag1","hashtag2"]},{"1345147454":["hashtag1","hashtag2"]},{"1345147400":["hashtag1","hashtag2"]},{"1345147359":["hashtag1","hashtag2"]},{"1345147530":["hashtag1","hashtag2"]},{"1345147362":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345147535, 1345147454, 1345147400, 1345147359, 1345147530, 1345147362)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.68459224700928 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:36:03.132580
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_53_5910.jpg', 2), ('/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_47_5927.jpg', 2), ('/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_41_5951.jpg', 2), ('/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_35_6020.jpg', 2), ('/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_29_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_23_6043.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_53_5910.jpg', '/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_47_5927.jpg', '/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_41_5951.jpg', '/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_35_6020.jpg', '/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_29_6107.jpg', '/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_23_6043.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_53_5910.jpg
/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_47_5927.jpg
/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_41_5951.jpg
/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_35_6020.jpg
/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_29_6107.jpg
/home/nano/Desktop/images/18032025/15/35/image_18032025_15_35_23_6043.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345147870","1345147971","1345148004","1345147737","1345147719","1345147895"],"photo_ids_order":["1345147719","1345147737","1345147870","1345147895","1345147971","1345148004"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1190397938f91f0bc2d921036bd04b9d.jpg","text":"TemporaryFile(/tmp/multipartBody5405328200440222573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308623565,"filename":"image_18032025_15_35_41_5951.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a00665d18fa0f868bf8738538550a4f2.jpg","text":"TemporaryFile(/tmp/multipartBody982991166712719897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308623565,"filename":"image_18032025_15_35_29_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fea4f5bd08ba454a34325e76dbc75280.jpg","text":"TemporaryFile(/tmp/multipartBody6405932814895396972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308623565,"filename":"image_18032025_15_35_23_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7be28c83b69fe170a0038cf762e89fa3.jpg","text":"TemporaryFile(/tmp/multipartBody4479284279666890107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308623565,"filename":"image_18032025_15_35_47_5927.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/afab74dbac0f40fd6262eca98a77dbb2.jpg","text":"TemporaryFile(/tmp/multipartBody318830241466979657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308623565,"filename":"image_18032025_15_35_53_5910.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/870e6f8ae82f28b498f8febfa023a402.jpg","text":"TemporaryFile(/tmp/multipartBody6806260925211999406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308623565,"filename":"image_18032025_15_35_35_6020.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345147870","file1":"1345147737","file0":"1345147719","file4":"1345147971","file5":"1345148004","file3":"1345147895"},"map_files_photo_id_array":[{"photo_id":"1345148004","filename":"file5"},{"photo_id":"1345147870","filename":"file2"},{"photo_id":"1345147971","filename":"file4"},{"photo_id":"1345147737","filename":"file1"},{"photo_id":"1345147719","filename":"file0"},{"photo_id":"1345147895","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345147870":["hashtag1","hashtag2"]},{"1345147971":["hashtag1","hashtag2"]},{"1345148004":["hashtag1","hashtag2"]},{"1345147737":["hashtag1","hashtag2"]},{"1345147719":["hashtag1","hashtag2"]},{"1345147895":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345147870, 1345147971, 1345148004, 1345147737, 1345147719, 1345147895)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.3792188167572 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:37:02.241740
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_53_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_48_6631.jpg', 2), ('/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_41_5695.jpg', 2), ('/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_35_6018.jpg', 2), ('/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_29_5909.jpg', 2), ('/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_24_5996.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_53_5635.jpg', '/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_48_6631.jpg', '/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_41_5695.jpg', '/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_35_6018.jpg', '/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_29_5909.jpg', '/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_24_5996.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_53_5635.jpg
/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_48_6631.jpg
/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_41_5695.jpg
/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_35_6018.jpg
/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_29_5909.jpg
/home/nano/Desktop/images/18032025/15/36/image_18032025_15_36_24_5996.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345148362","1345148221","1345148394","1345148319","1345148274","1345148249"],"photo_ids_order":["1345148221","1345148249","1345148274","1345148319","1345148362","1345148394"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a803d735f7cd6265c38f166b5993f85.jpg","text":"TemporaryFile(/tmp/multipartBody6694587694996289962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308682646,"filename":"image_18032025_15_36_29_5909.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95d6b1fd5e5db0d411a01577133bb727.jpg","text":"TemporaryFile(/tmp/multipartBody186171327541656228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308682646,"filename":"image_18032025_15_36_53_5635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/78cb1cd98c7b1da4c6545c06745c0db6.jpg","text":"TemporaryFile(/tmp/multipartBody5314808072507896718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308682646,"filename":"image_18032025_15_36_24_5996.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8f82df88af328946c8d0480ace991e89.jpg","text":"TemporaryFile(/tmp/multipartBody2400805789579397157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308682646,"filename":"image_18032025_15_36_35_6018.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd05c8dafeadff22494fa950642c593c.jpg","text":"TemporaryFile(/tmp/multipartBody1334584047720866158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308682646,"filename":"image_18032025_15_36_41_5695.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7f9eee92ae15ff435c4fd755134dfdf7.jpg","text":"TemporaryFile(/tmp/multipartBody2689918043896741095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308682646,"filename":"image_18032025_15_36_48_6631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345148274","file1":"1345148249","file0":"1345148221","file4":"1345148362","file5":"1345148394","file3":"1345148319"},"map_files_photo_id_array":[{"photo_id":"1345148394","filename":"file5"},{"photo_id":"1345148274","filename":"file2"},{"photo_id":"1345148362","filename":"file4"},{"photo_id":"1345148249","filename":"file1"},{"photo_id":"1345148221","filename":"file0"},{"photo_id":"1345148319","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345148362":["hashtag1","hashtag2"]},{"1345148221":["hashtag1","hashtag2"]},{"1345148394":["hashtag1","hashtag2"]},{"1345148319":["hashtag1","hashtag2"]},{"1345148274":["hashtag1","hashtag2"]},{"1345148249":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345148362, 1345148221, 1345148394, 1345148319, 1345148274, 1345148249)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.96451735496521 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:38:02.378259
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_53_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_48_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_42_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_35_5739.jpg', 2), ('/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_29_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_24_6658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_53_5730.jpg', '/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_48_5751.jpg', '/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_42_6677.jpg', '/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_35_5739.jpg', '/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_29_5741.jpg', '/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_24_6658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_53_5730.jpg
/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_48_5751.jpg
/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_42_6677.jpg
/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_35_5739.jpg
/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_29_5741.jpg
/home/nano/Desktop/images/18032025/15/37/image_18032025_15_37_24_6658.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345148576","1345148642","1345148605","1345148707","1345148673","1345148559"],"photo_ids_order":["1345148559","1345148576","1345148605","1345148642","1345148673","1345148707"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/de22a4be4d365057522b1c70753d26ea.jpg","text":"TemporaryFile(/tmp/multipartBody658078278318841818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308742756,"filename":"image_18032025_15_37_48_5751.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f8b379bf1a4b66a439e51ad594994cb.jpg","text":"TemporaryFile(/tmp/multipartBody3180361046100440786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308742756,"filename":"image_18032025_15_37_35_5739.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/704c701059291b9296a2a52169c9c070.jpg","text":"TemporaryFile(/tmp/multipartBody6001531979797511947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308742756,"filename":"image_18032025_15_37_42_6677.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a9377a71fb78bc0ca84efcb1bd7e1761.jpg","text":"TemporaryFile(/tmp/multipartBody173176607399557750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308742756,"filename":"image_18032025_15_37_24_6658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/17e4d7599a4fe7c20ba1fcac8372dcbe.jpg","text":"TemporaryFile(/tmp/multipartBody8537831022893318766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308742756,"filename":"image_18032025_15_37_29_5741.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c87a44005b7d8398a6bbc69cbb031d52.jpg","text":"TemporaryFile(/tmp/multipartBody2244521571873450264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308742756,"filename":"image_18032025_15_37_53_5730.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345148605","file1":"1345148576","file0":"1345148559","file4":"1345148673","file5":"1345148707","file3":"1345148642"},"map_files_photo_id_array":[{"photo_id":"1345148707","filename":"file5"},{"photo_id":"1345148605","filename":"file2"},{"photo_id":"1345148673","filename":"file4"},{"photo_id":"1345148576","filename":"file1"},{"photo_id":"1345148559","filename":"file0"},{"photo_id":"1345148642","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345148576":["hashtag1","hashtag2"]},{"1345148642":["hashtag1","hashtag2"]},{"1345148605":["hashtag1","hashtag2"]},{"1345148707":["hashtag1","hashtag2"]},{"1345148673":["hashtag1","hashtag2"]},{"1345148559":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345148576, 1345148642, 1345148605, 1345148707, 1345148673, 1345148559)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.737712383270264 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:39:02.600450
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_54_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_48_6807.jpg', 2), ('/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_41_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_35_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_29_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_24_5900.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_54_5875.jpg', '/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_48_6807.jpg', '/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_41_5748.jpg', '/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_35_5789.jpg', '/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_29_5738.jpg', '/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_24_5900.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_54_5875.jpg
/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_48_6807.jpg
/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_41_5748.jpg
/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_35_5789.jpg
/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_29_5738.jpg
/home/nano/Desktop/images/18032025/15/38/image_18032025_15_38_24_5900.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345149478","1345149538","1345149211","1345149348","1345149420","1345149263"],"photo_ids_order":["1345149211","1345149263","1345149348","1345149420","1345149478","1345149538"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f4451db2c8bbf53ff8b8397ed8d97c36.jpg","text":"TemporaryFile(/tmp/multipartBody1334023479841814299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308803019,"filename":"image_18032025_15_38_29_5738.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb5ace21c25635ad5baddd2feecbc743.jpg","text":"TemporaryFile(/tmp/multipartBody7977006183965584671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308803019,"filename":"image_18032025_15_38_24_5900.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14d4b0e49cc1380fa9a0096d33ca5b4e.jpg","text":"TemporaryFile(/tmp/multipartBody4422225486664711356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308803019,"filename":"image_18032025_15_38_54_5875.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/777d5e5b114756c1c4f1b6a09c3afc5e.jpg","text":"TemporaryFile(/tmp/multipartBody5892345104530102733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308803019,"filename":"image_18032025_15_38_41_5748.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/375bcaa43eb2b04429cc22dd57770a1a.jpg","text":"TemporaryFile(/tmp/multipartBody2828402389574738677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308803019,"filename":"image_18032025_15_38_35_5789.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fb81fab7a814c672a422c0bbd171ec2b.jpg","text":"TemporaryFile(/tmp/multipartBody3381412745583479828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308803019,"filename":"image_18032025_15_38_48_6807.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345149348","file1":"1345149263","file0":"1345149211","file4":"1345149478","file5":"1345149538","file3":"1345149420"},"map_files_photo_id_array":[{"photo_id":"1345149538","filename":"file5"},{"photo_id":"1345149348","filename":"file2"},{"photo_id":"1345149478","filename":"file4"},{"photo_id":"1345149263","filename":"file1"},{"photo_id":"1345149211","filename":"file0"},{"photo_id":"1345149420","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345149478":["hashtag1","hashtag2"]},{"1345149538":["hashtag1","hashtag2"]},{"1345149211":["hashtag1","hashtag2"]},{"1345149348":["hashtag1","hashtag2"]},{"1345149420":["hashtag1","hashtag2"]},{"1345149263":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345149478, 1345149538, 1345149211, 1345149348, 1345149420, 1345149263)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.452196836471558 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:40:02.419362
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_54_6764.jpg', 2), ('/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_47_5818.jpg', 2), ('/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_41_5705.jpg', 2), ('/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_35_6026.jpg', 2), ('/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_29_5899.jpg', 2), ('/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_24_5762.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_54_6764.jpg', '/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_47_5818.jpg', '/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_41_5705.jpg', '/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_35_6026.jpg', '/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_29_5899.jpg', '/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_24_5762.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_54_6764.jpg
/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_47_5818.jpg
/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_41_5705.jpg
/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_35_6026.jpg
/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_29_5899.jpg
/home/nano/Desktop/images/18032025/15/39/image_18032025_15_39_24_5762.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345150544","1345150366","1345150642","1345150577","1345150490","1345150442"],"photo_ids_order":["1345150366","1345150442","1345150490","1345150544","1345150577","1345150642"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/40f92c9be80fcc1cf06d63ce3cb2ab58.jpg","text":"TemporaryFile(/tmp/multipartBody6531755919959154166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308862861,"filename":"image_18032025_15_39_35_6026.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/94b10c9885bfbf1a218e3ed7cea2f755.jpg","text":"TemporaryFile(/tmp/multipartBody1247799520093005067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308862861,"filename":"image_18032025_15_39_54_6764.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/73af6f4d40268884dd8db595b7e2669c.jpg","text":"TemporaryFile(/tmp/multipartBody3685228030120632298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308862861,"filename":"image_18032025_15_39_24_5762.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7a115ce585ed6a4ee30d55c7918147d9.jpg","text":"TemporaryFile(/tmp/multipartBody1544127164197921718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308862861,"filename":"image_18032025_15_39_29_5899.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6f821fceb56baed30634edc3cd3c03e8.jpg","text":"TemporaryFile(/tmp/multipartBody6821505398058290436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308862861,"filename":"image_18032025_15_39_41_5705.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9c551c9072a1b08f294ce7eab60a167a.jpg","text":"TemporaryFile(/tmp/multipartBody7914228002998498622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308862861,"filename":"image_18032025_15_39_47_5818.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345150490","file1":"1345150442","file0":"1345150366","file4":"1345150577","file5":"1345150642","file3":"1345150544"},"map_files_photo_id_array":[{"photo_id":"1345150642","filename":"file5"},{"photo_id":"1345150490","filename":"file2"},{"photo_id":"1345150577","filename":"file4"},{"photo_id":"1345150442","filename":"file1"},{"photo_id":"1345150366","filename":"file0"},{"photo_id":"1345150544","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345150544":["hashtag1","hashtag2"]},{"1345150366":["hashtag1","hashtag2"]},{"1345150642":["hashtag1","hashtag2"]},{"1345150577":["hashtag1","hashtag2"]},{"1345150490":["hashtag1","hashtag2"]},{"1345150442":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345150544, 1345150366, 1345150642, 1345150577, 1345150490, 1345150442)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.22611713409424 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:41:02.666951
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_53_5762.jpg', 2), ('/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_47_5911.jpg', 2), ('/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_41_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_35_5761.jpg', 2), ('/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_30_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_24_6643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_53_5762.jpg', '/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_47_5911.jpg', '/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_41_6041.jpg', '/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_35_5761.jpg', '/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_30_5794.jpg', '/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_24_6643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_53_5762.jpg
/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_47_5911.jpg
/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_41_6041.jpg
/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_35_5761.jpg
/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_30_5794.jpg
/home/nano/Desktop/images/18032025/15/40/image_18032025_15_40_24_6643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345150954","1345151104","1345151020","1345150860","1345151075","1345150914"],"photo_ids_order":["1345150860","1345150914","1345150954","1345151020","1345151075","1345151104"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3091b1329a1117f6320398740f9583f.jpg","text":"TemporaryFile(/tmp/multipartBody1204508160184636624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308923132,"filename":"image_18032025_15_40_41_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d40e4e011982363c134fa1d4d287651b.jpg","text":"TemporaryFile(/tmp/multipartBody9131242569473651216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308923132,"filename":"image_18032025_15_40_24_6643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/150faf4428231f59e241ff3d0f30fc75.jpg","text":"TemporaryFile(/tmp/multipartBody6277524668662378674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308923132,"filename":"image_18032025_15_40_35_5761.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fc8dd8ef164b3cb95630c6d66f53951f.jpg","text":"TemporaryFile(/tmp/multipartBody7271677204007980650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308923132,"filename":"image_18032025_15_40_53_5762.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/895607e4476b34c8d093e96e57238efe.jpg","text":"TemporaryFile(/tmp/multipartBody1958922357649924751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308923132,"filename":"image_18032025_15_40_30_5794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec62949b9ec861f9cfa6d0284b61c988.jpg","text":"TemporaryFile(/tmp/multipartBody6268905893254460872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742308923132,"filename":"image_18032025_15_40_47_5911.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345150954","file1":"1345150914","file0":"1345150860","file4":"1345151075","file5":"1345151104","file3":"1345151020"},"map_files_photo_id_array":[{"photo_id":"1345151104","filename":"file5"},{"photo_id":"1345150954","filename":"file2"},{"photo_id":"1345151075","filename":"file4"},{"photo_id":"1345150914","filename":"file1"},{"photo_id":"1345150860","filename":"file0"},{"photo_id":"1345151020","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345150954":["hashtag1","hashtag2"]},{"1345151104":["hashtag1","hashtag2"]},{"1345151020":["hashtag1","hashtag2"]},{"1345150860":["hashtag1","hashtag2"]},{"1345151075":["hashtag1","hashtag2"]},{"1345150914":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345150954, 1345151104, 1345151020, 1345150860, 1345151075, 1345150914)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.60852837562561 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:42:02.804378
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_53_5713.jpg', 2), ('/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_48_6755.jpg', 2), ('/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_41_5915.jpg', 2), ('/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_35_5956.jpg', 2), ('/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_29_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_23_5718.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_53_5713.jpg', '/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_48_6755.jpg', '/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_41_5915.jpg', '/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_35_5956.jpg', '/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_29_5881.jpg', '/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_23_5718.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_53_5713.jpg
/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_48_6755.jpg
/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_41_5915.jpg
/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_35_5956.jpg
/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_29_5881.jpg
/home/nano/Desktop/images/18032025/15/41/image_18032025_15_41_23_5718.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.34876561164855957 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:42:32.368533
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_54_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_47_6174.jpg', 2), ('/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_41_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_35_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_30_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_24_6764.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_54_6117.jpg', '/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_47_6174.jpg', '/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_41_5749.jpg', '/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_35_5862.jpg', '/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_30_5976.jpg', '/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_24_6764.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_54_6117.jpg
/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_47_6174.jpg
/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_41_5749.jpg
/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_35_5862.jpg
/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_30_5976.jpg
/home/nano/Desktop/images/18032025/15/42/image_18032025_15_42_24_6764.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345152075","1345151976","1345152105","1345151922","1345152023","1345151885"],"photo_ids_order":["1345151885","1345151922","1345151976","1345152023","1345152075","1345152105"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b2a4f72daef103716adca54d59dedd53.jpg","text":"TemporaryFile(/tmp/multipartBody7196835226336038577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309012826,"filename":"image_18032025_15_42_30_5976.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e58fd0818c54b93586fd531d030767c.jpg","text":"TemporaryFile(/tmp/multipartBody4562516602015087689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309012826,"filename":"image_18032025_15_42_41_5749.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0d49f3aca6cc3d2b059a480b24d6d054.jpg","text":"TemporaryFile(/tmp/multipartBody6558754609301214885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309012826,"filename":"image_18032025_15_42_24_6764.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c6625c92745a2840ce9bbc16f4524c5.jpg","text":"TemporaryFile(/tmp/multipartBody8557265906010272341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309012826,"filename":"image_18032025_15_42_47_6174.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf83aa7f6843d6166bfd4186ebb91b35.jpg","text":"TemporaryFile(/tmp/multipartBody5154394391468014448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309012826,"filename":"image_18032025_15_42_35_5862.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0b8e4a490aecf40b379e1c1606c06a7.jpg","text":"TemporaryFile(/tmp/multipartBody618493275071976545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309012826,"filename":"image_18032025_15_42_54_6117.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345151976","file1":"1345151922","file0":"1345151885","file4":"1345152075","file5":"1345152105","file3":"1345152023"},"map_files_photo_id_array":[{"photo_id":"1345152105","filename":"file5"},{"photo_id":"1345151976","filename":"file2"},{"photo_id":"1345152075","filename":"file4"},{"photo_id":"1345151922","filename":"file1"},{"photo_id":"1345151885","filename":"file0"},{"photo_id":"1345152023","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345152075":["hashtag1","hashtag2"]},{"1345151976":["hashtag1","hashtag2"]},{"1345152105":["hashtag1","hashtag2"]},{"1345151922":["hashtag1","hashtag2"]},{"1345152023":["hashtag1","hashtag2"]},{"1345151885":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345152075, 1345151976, 1345152105, 1345151922, 1345152023, 1345151885)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.65175414085388 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:43:32.481838
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_53_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_47_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_41_6038.jpg', 2), ('/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_35_5726.jpg', 2), ('/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_29_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_24_5806.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_53_5752.jpg', '/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_47_6046.jpg', '/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_41_6038.jpg', '/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_35_5726.jpg', '/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_29_5748.jpg', '/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_24_5806.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_53_5752.jpg
/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_47_6046.jpg
/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_41_6038.jpg
/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_35_5726.jpg
/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_29_5748.jpg
/home/nano/Desktop/images/18032025/15/43/image_18032025_15_43_24_5806.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345152430","1345152307","1345152366","1345152405","1345152338","1345152379"],"photo_ids_order":["1345152307","1345152338","1345152366","1345152379","1345152405","1345152430"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3b2c324ce351f727b58ea1acfae41c7c.jpg","text":"TemporaryFile(/tmp/multipartBody2911383478951543051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309072915,"filename":"image_18032025_15_43_24_5806.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d98e6abf719daf4ca5a870ea590d2d25.jpg","text":"TemporaryFile(/tmp/multipartBody8667699527762318617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309072915,"filename":"image_18032025_15_43_53_5752.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9c537b5f5915aef3604813e0398fda35.jpg","text":"TemporaryFile(/tmp/multipartBody8784953931548795201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309072915,"filename":"image_18032025_15_43_41_6038.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ff8f54714df7f9a3480439a53953555.jpg","text":"TemporaryFile(/tmp/multipartBody2583714828287362525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309072915,"filename":"image_18032025_15_43_29_5748.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/350776f0ea3d7f6bb9615c9c1fef3ac5.jpg","text":"TemporaryFile(/tmp/multipartBody769895128489725638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309072915,"filename":"image_18032025_15_43_47_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/835076612993c712e69e39b1e9186d92.jpg","text":"TemporaryFile(/tmp/multipartBody2091628646881405753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309072915,"filename":"image_18032025_15_43_35_5726.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345152366","file1":"1345152338","file0":"1345152307","file4":"1345152405","file5":"1345152430","file3":"1345152379"},"map_files_photo_id_array":[{"photo_id":"1345152430","filename":"file5"},{"photo_id":"1345152366","filename":"file2"},{"photo_id":"1345152405","filename":"file4"},{"photo_id":"1345152338","filename":"file1"},{"photo_id":"1345152307","filename":"file0"},{"photo_id":"1345152379","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345152430":["hashtag1","hashtag2"]},{"1345152307":["hashtag1","hashtag2"]},{"1345152366":["hashtag1","hashtag2"]},{"1345152405":["hashtag1","hashtag2"]},{"1345152338":["hashtag1","hashtag2"]},{"1345152379":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345152430, 1345152307, 1345152366, 1345152405, 1345152338, 1345152379)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.073607444763184 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:44:32.587050
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_53_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_48_6846.jpg', 2), ('/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_41_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_35_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_30_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_24_6023.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_53_5633.jpg', '/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_48_6846.jpg', '/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_41_5748.jpg', '/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_35_5645.jpg', '/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_30_5981.jpg', '/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_24_6023.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_53_5633.jpg
/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_48_6846.jpg
/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_41_5748.jpg
/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_35_5645.jpg
/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_30_5981.jpg
/home/nano/Desktop/images/18032025/15/44/image_18032025_15_44_24_6023.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345152643","1345152739","1345152693","1345152765","1345152714","1345152667"],"photo_ids_order":["1345152643","1345152667","1345152693","1345152714","1345152739","1345152765"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9551577dd2d24bcb2e51455179151c72.jpg","text":"TemporaryFile(/tmp/multipartBody6145418589786786628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309132949,"filename":"image_18032025_15_44_53_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/42a9f041c8f5e7153377251626c02778.jpg","text":"TemporaryFile(/tmp/multipartBody1463433732966259161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309132949,"filename":"image_18032025_15_44_30_5981.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69dbbef72c315231cbbe88461923c61a.jpg","text":"TemporaryFile(/tmp/multipartBody2727430708492515421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309132949,"filename":"image_18032025_15_44_41_5748.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9a90b4134585d33ff56b799c91ccf79.jpg","text":"TemporaryFile(/tmp/multipartBody6907856780214624236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309132949,"filename":"image_18032025_15_44_24_6023.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2b96743d3e3fb3e9690ec983c01ed75d.jpg","text":"TemporaryFile(/tmp/multipartBody6670962094618625822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309132949,"filename":"image_18032025_15_44_35_5645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c980cec6d75024d99f2ef39ff3d49f8f.jpg","text":"TemporaryFile(/tmp/multipartBody1020226984668952082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309132949,"filename":"image_18032025_15_44_48_6846.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345152693","file1":"1345152667","file0":"1345152643","file4":"1345152739","file5":"1345152765","file3":"1345152714"},"map_files_photo_id_array":[{"photo_id":"1345152765","filename":"file5"},{"photo_id":"1345152693","filename":"file2"},{"photo_id":"1345152739","filename":"file4"},{"photo_id":"1345152667","filename":"file1"},{"photo_id":"1345152643","filename":"file0"},{"photo_id":"1345152714","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345152643":["hashtag1","hashtag2"]},{"1345152739":["hashtag1","hashtag2"]},{"1345152693":["hashtag1","hashtag2"]},{"1345152765":["hashtag1","hashtag2"]},{"1345152714":["hashtag1","hashtag2"]},{"1345152667":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345152643, 1345152739, 1345152693, 1345152765, 1345152714, 1345152667)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.591437339782715 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:45:32.693863
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_53_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_47_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_42_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_35_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_29_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_24_6651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_53_5616.jpg', '/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_47_5622.jpg', '/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_42_6635.jpg', '/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_35_5621.jpg', '/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_29_5631.jpg', '/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_24_6651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_53_5616.jpg
/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_47_5622.jpg
/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_42_6635.jpg
/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_35_5621.jpg
/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_29_5631.jpg
/home/nano/Desktop/images/18032025/15/45/image_18032025_15_45_24_6651.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345152934","1345152936","1345152924","1345152941","1345152929","1345152946"],"photo_ids_order":["1345152924","1345152929","1345152934","1345152936","1345152941","1345152946"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ee09d8b372b0c7599e0c68592072ed56.jpg","text":"TemporaryFile(/tmp/multipartBody585916645829334397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309193015,"filename":"image_18032025_15_45_42_6635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/da80ed1078253f556c3464ec622083f3.jpg","text":"TemporaryFile(/tmp/multipartBody5097186127232179258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309193015,"filename":"image_18032025_15_45_35_5621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e0535067ae7ec2ff49cede832746433.jpg","text":"TemporaryFile(/tmp/multipartBody48139932157558549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309193015,"filename":"image_18032025_15_45_53_5616.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1be16454f04bd80f44c8dc78a509e0de.jpg","text":"TemporaryFile(/tmp/multipartBody6998915688441496283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309193015,"filename":"image_18032025_15_45_29_5631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95aea2ffa636b849cbdb49ebea5ce1c1.jpg","text":"TemporaryFile(/tmp/multipartBody8939179902464837002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309193015,"filename":"image_18032025_15_45_47_5622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5c9682366e24470cd4d0c93c7a9c3e4d.jpg","text":"TemporaryFile(/tmp/multipartBody1085965485497716052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309193015,"filename":"image_18032025_15_45_24_6651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345152934","file1":"1345152929","file0":"1345152924","file4":"1345152941","file5":"1345152946","file3":"1345152936"},"map_files_photo_id_array":[{"photo_id":"1345152946","filename":"file5"},{"photo_id":"1345152934","filename":"file2"},{"photo_id":"1345152941","filename":"file4"},{"photo_id":"1345152929","filename":"file1"},{"photo_id":"1345152924","filename":"file0"},{"photo_id":"1345152936","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345152934":["hashtag1","hashtag2"]},{"1345152936":["hashtag1","hashtag2"]},{"1345152924":["hashtag1","hashtag2"]},{"1345152941":["hashtag1","hashtag2"]},{"1345152929":["hashtag1","hashtag2"]},{"1345152946":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345152934, 1345152936, 1345152924, 1345152941, 1345152929, 1345152946)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.26216769218445 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:46:31.852371
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_53_5669.jpg', 2), ('/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_48_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_41_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_35_5604.jpg', 2), ('/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_30_6628.jpg', 2), ('/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_23_5639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_53_5669.jpg', '/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_48_6636.jpg', '/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_41_5639.jpg', '/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_35_5604.jpg', '/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_30_6628.jpg', '/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_23_5639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_53_5669.jpg
/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_48_6636.jpg
/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_41_5639.jpg
/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_35_5604.jpg
/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_30_6628.jpg
/home/nano/Desktop/images/18032025/15/46/image_18032025_15_46_23_5639.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345153018","1345152987","1345152965","1345152974","1345152961","1345152970"],"photo_ids_order":["1345152961","1345152965","1345152970","1345152974","1345152987","1345153018"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95b7099592f8492e49451d0ae94a7aa5.jpg","text":"TemporaryFile(/tmp/multipartBody4682531780161706673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309252194,"filename":"image_18032025_15_46_23_5639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/544e2fca419d11e42d907b5c30c8ac0b.jpg","text":"TemporaryFile(/tmp/multipartBody4432302828421486433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309252194,"filename":"image_18032025_15_46_30_6628.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c420e1b1a123282f2a4cca005d3e0b36.jpg","text":"TemporaryFile(/tmp/multipartBody773624335045555184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309252194,"filename":"image_18032025_15_46_48_6636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0b1dda6ef7126f436a23dbefae399ea5.jpg","text":"TemporaryFile(/tmp/multipartBody1653335584558250755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309252194,"filename":"image_18032025_15_46_35_5604.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3c82b68aab58c40a90aaa9ffa21b1fdf.jpg","text":"TemporaryFile(/tmp/multipartBody8784320972232749195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309252194,"filename":"image_18032025_15_46_53_5669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7c4c80ecb6217c54d4f10c6dabfbfc05.jpg","text":"TemporaryFile(/tmp/multipartBody501657358210133161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309252194,"filename":"image_18032025_15_46_41_5639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345152970","file1":"1345152965","file0":"1345152961","file4":"1345152987","file5":"1345153018","file3":"1345152974"},"map_files_photo_id_array":[{"photo_id":"1345153018","filename":"file5"},{"photo_id":"1345152970","filename":"file2"},{"photo_id":"1345152987","filename":"file4"},{"photo_id":"1345152965","filename":"file1"},{"photo_id":"1345152961","filename":"file0"},{"photo_id":"1345152974","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345153018":["hashtag1","hashtag2"]},{"1345152987":["hashtag1","hashtag2"]},{"1345152965":["hashtag1","hashtag2"]},{"1345152974":["hashtag1","hashtag2"]},{"1345152961":["hashtag1","hashtag2"]},{"1345152970":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345153018, 1345152987, 1345152965, 1345152974, 1345152961, 1345152970)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.104575634002686 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:47:31.954164
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_53_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_48_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_42_6774.jpg', 2), ('/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_35_5762.jpg', 2), ('/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_29_5759.jpg', 2), ('/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_23_5718.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_53_5779.jpg', '/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_48_5798.jpg', '/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_42_6774.jpg', '/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_35_5762.jpg', '/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_29_5759.jpg', '/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_23_5718.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_53_5779.jpg
/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_48_5798.jpg
/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_42_6774.jpg
/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_35_5762.jpg
/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_29_5759.jpg
/home/nano/Desktop/images/18032025/15/47/image_18032025_15_47_23_5718.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345153170","1345153137","1345153178","1345153130","1345153162","1345153147"],"photo_ids_order":["1345153130","1345153137","1345153147","1345153162","1345153170","1345153178"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d4ce27e02437bfdaf69453896c2458b8.jpg","text":"TemporaryFile(/tmp/multipartBody7553508940565185937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309312358,"filename":"image_18032025_15_47_29_5759.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2057b6fb718e2fe6d4354f1f6a28ccb1.jpg","text":"TemporaryFile(/tmp/multipartBody6169313144825739865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309312358,"filename":"image_18032025_15_47_48_5798.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4e94935ce9f6e7bd08856774d9496377.jpg","text":"TemporaryFile(/tmp/multipartBody1087172994897640330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309312358,"filename":"image_18032025_15_47_23_5718.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9841d58d07fd61a89e1f61d6e1dd2f83.jpg","text":"TemporaryFile(/tmp/multipartBody8434185199477556157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309312358,"filename":"image_18032025_15_47_53_5779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be401d188a78815e303f1720532273d4.jpg","text":"TemporaryFile(/tmp/multipartBody7762785873033513775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309312358,"filename":"image_18032025_15_47_35_5762.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a67b638cebf1941724eccb7f01326fea.jpg","text":"TemporaryFile(/tmp/multipartBody83877020334722899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309312358,"filename":"image_18032025_15_47_42_6774.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345153147","file1":"1345153137","file0":"1345153130","file4":"1345153170","file5":"1345153178","file3":"1345153162"},"map_files_photo_id_array":[{"photo_id":"1345153178","filename":"file5"},{"photo_id":"1345153147","filename":"file2"},{"photo_id":"1345153170","filename":"file4"},{"photo_id":"1345153137","filename":"file1"},{"photo_id":"1345153130","filename":"file0"},{"photo_id":"1345153162","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345153170":["hashtag1","hashtag2"]},{"1345153137":["hashtag1","hashtag2"]},{"1345153178":["hashtag1","hashtag2"]},{"1345153130":["hashtag1","hashtag2"]},{"1345153162":["hashtag1","hashtag2"]},{"1345153147":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345153170, 1345153137, 1345153178, 1345153130, 1345153162, 1345153147)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.10606384277344 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:48:32.060512
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_53_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_48_6749.jpg', 2), ('/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_35_5731.jpg', 2), ('/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_29_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_23_5949.jpg', 2), ('/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_18_5749.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_53_5612.jpg', '/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_48_6749.jpg', '/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_35_5731.jpg', '/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_29_5853.jpg', '/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_23_5949.jpg', '/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_18_5749.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_53_5612.jpg
/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_48_6749.jpg
/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_35_5731.jpg
/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_29_5853.jpg
/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_23_5949.jpg
/home/nano/Desktop/images/18032025/15/48/image_18032025_15_48_18_5749.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345153245","1345153286","1345153331","1345153253","1345153240","1345153312"],"photo_ids_order":["1345153240","1345153245","1345153253","1345153286","1345153312","1345153331"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ba047d34cbc9d29af87420096881382f.jpg","text":"TemporaryFile(/tmp/multipartBody5972652158268827224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309372443,"filename":"image_18032025_15_48_48_6749.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b90004af8b0d0e2e9b30a1cfe5b5986e.jpg","text":"TemporaryFile(/tmp/multipartBody6786289132477234527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309372443,"filename":"image_18032025_15_48_29_5853.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a2fbe548ff345776254bf607e7bc89b.jpg","text":"TemporaryFile(/tmp/multipartBody7759038777205715492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309372443,"filename":"image_18032025_15_48_18_5749.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/93a08da0048467ea77e900b4024986f0.jpg","text":"TemporaryFile(/tmp/multipartBody9154001000073260679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309372443,"filename":"image_18032025_15_48_35_5731.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d9b577f329d87b48114cf12d498cc14d.jpg","text":"TemporaryFile(/tmp/multipartBody7973361111572270558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309372443,"filename":"image_18032025_15_48_53_5612.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/106af92ebdbf7d401206dc20e5fe2a07.jpg","text":"TemporaryFile(/tmp/multipartBody7709548240513736018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309372443,"filename":"image_18032025_15_48_23_5949.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345153253","file1":"1345153245","file0":"1345153240","file4":"1345153312","file5":"1345153331","file3":"1345153286"},"map_files_photo_id_array":[{"photo_id":"1345153331","filename":"file5"},{"photo_id":"1345153253","filename":"file2"},{"photo_id":"1345153312","filename":"file4"},{"photo_id":"1345153245","filename":"file1"},{"photo_id":"1345153240","filename":"file0"},{"photo_id":"1345153286","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345153245":["hashtag1","hashtag2"]},{"1345153286":["hashtag1","hashtag2"]},{"1345153331":["hashtag1","hashtag2"]},{"1345153253":["hashtag1","hashtag2"]},{"1345153240":["hashtag1","hashtag2"]},{"1345153312":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345153245, 1345153286, 1345153331, 1345153253, 1345153240, 1345153312)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.77527356147766 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:49:32.158340
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_54_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_47_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_41_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_36_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_29_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_23_5648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_54_6651.jpg', '/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_47_5673.jpg', '/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_41_5655.jpg', '/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_36_6635.jpg', '/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_29_5643.jpg', '/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_23_5648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_54_6651.jpg
/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_47_5673.jpg
/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_41_5655.jpg
/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_36_6635.jpg
/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_29_5643.jpg
/home/nano/Desktop/images/18032025/15/49/image_18032025_15_49_23_5648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345153398","1345153392","1345153353","1345153361","1345153367","1345153395"],"photo_ids_order":["1345153353","1345153361","1345153367","1345153392","1345153395","1345153398"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d5e7859c2b3679b2c5de00370cff0a1e.jpg","text":"TemporaryFile(/tmp/multipartBody3325411973287466692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309432515,"filename":"image_18032025_15_49_23_5648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/474747564d54eb7a3b1932365128ed54.jpg","text":"TemporaryFile(/tmp/multipartBody3339344563029828736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309432515,"filename":"image_18032025_15_49_36_6635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5fc92d95daeaa570e96ae704b463ef3.jpg","text":"TemporaryFile(/tmp/multipartBody5720041023093539905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309432515,"filename":"image_18032025_15_49_54_6651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/deb2a186e9099fd9047ff970ce9d9094.jpg","text":"TemporaryFile(/tmp/multipartBody3379950359351768256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309432515,"filename":"image_18032025_15_49_47_5673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b766442274463a6bf96f98e77814cdd6.jpg","text":"TemporaryFile(/tmp/multipartBody1697303940125786895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309432515,"filename":"image_18032025_15_49_41_5655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/13c75bf245c2c8054aaf5a076d3d9449.jpg","text":"TemporaryFile(/tmp/multipartBody217498158744188054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309432515,"filename":"image_18032025_15_49_29_5643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345153367","file1":"1345153361","file0":"1345153353","file4":"1345153395","file5":"1345153398","file3":"1345153392"},"map_files_photo_id_array":[{"photo_id":"1345153398","filename":"file5"},{"photo_id":"1345153367","filename":"file2"},{"photo_id":"1345153395","filename":"file4"},{"photo_id":"1345153361","filename":"file1"},{"photo_id":"1345153353","filename":"file0"},{"photo_id":"1345153392","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345153398":["hashtag1","hashtag2"]},{"1345153392":["hashtag1","hashtag2"]},{"1345153353":["hashtag1","hashtag2"]},{"1345153361":["hashtag1","hashtag2"]},{"1345153367":["hashtag1","hashtag2"]},{"1345153395":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345153398, 1345153392, 1345153353, 1345153361, 1345153367, 1345153395)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.27718186378479 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:50:32.263803
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_53_5842.jpg', 2), ('/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_47_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_41_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_36_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_29_5677.jpg', 2), ('/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_23_6659.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_53_5842.jpg', '/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_47_5843.jpg', '/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_41_5614.jpg', '/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_36_6642.jpg', '/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_29_5677.jpg', '/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_23_6659.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_53_5842.jpg
/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_47_5843.jpg
/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_41_5614.jpg
/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_36_6642.jpg
/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_29_5677.jpg
/home/nano/Desktop/images/18032025/15/50/image_18032025_15_50_23_6659.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345153431","1345153425","1345153434","1345153416","1345153421","1345153411"],"photo_ids_order":["1345153411","1345153416","1345153421","1345153425","1345153431","1345153434"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fdbf31f07c2b9e30fa4715c803509c4b.jpg","text":"TemporaryFile(/tmp/multipartBody1945533073064006878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309492703,"filename":"image_18032025_15_50_29_5677.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd038f22dd3a5b6196aaae261ca92278.jpg","text":"TemporaryFile(/tmp/multipartBody6748395286581458639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309492703,"filename":"image_18032025_15_50_36_6642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/245bb31596894a3f239d046508e5db32.jpg","text":"TemporaryFile(/tmp/multipartBody4767507719342352899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309492703,"filename":"image_18032025_15_50_23_6659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6e525ddfe7a0db1950d9642c8bd3fcee.jpg","text":"TemporaryFile(/tmp/multipartBody567727060275225707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309492703,"filename":"image_18032025_15_50_47_5843.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1778605f5df1ae7daa47af2d3422049b.jpg","text":"TemporaryFile(/tmp/multipartBody5913776996393871320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309492703,"filename":"image_18032025_15_50_41_5614.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28f1cb19e2b2f95986c3c00dcd8e1b23.jpg","text":"TemporaryFile(/tmp/multipartBody8853150140837444066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309492703,"filename":"image_18032025_15_50_53_5842.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345153421","file1":"1345153416","file0":"1345153411","file4":"1345153431","file5":"1345153434","file3":"1345153425"},"map_files_photo_id_array":[{"photo_id":"1345153434","filename":"file5"},{"photo_id":"1345153421","filename":"file2"},{"photo_id":"1345153431","filename":"file4"},{"photo_id":"1345153416","filename":"file1"},{"photo_id":"1345153411","filename":"file0"},{"photo_id":"1345153425","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345153431":["hashtag1","hashtag2"]},{"1345153425":["hashtag1","hashtag2"]},{"1345153434":["hashtag1","hashtag2"]},{"1345153416":["hashtag1","hashtag2"]},{"1345153421":["hashtag1","hashtag2"]},{"1345153411":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345153431, 1345153425, 1345153434, 1345153416, 1345153421, 1345153411)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.365052223205566 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:51:32.373323
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_53_5997.jpg', 2), ('/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_47_6201.jpg', 2), ('/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_41_5913.jpg', 2), ('/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_35_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_29_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_23_5919.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_53_5997.jpg', '/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_47_6201.jpg', '/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_41_5913.jpg', '/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_35_5766.jpg', '/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_29_5864.jpg', '/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_23_5919.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_53_5997.jpg
/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_47_6201.jpg
/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_41_5913.jpg
/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_35_5766.jpg
/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_29_5864.jpg
/home/nano/Desktop/images/18032025/15/51/image_18032025_15_51_23_5919.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345153490","1345153475","1345153523","1345153526","1345153501","1345153510"],"photo_ids_order":["1345153475","1345153490","1345153501","1345153510","1345153523","1345153526"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62a2e21d756184a75b92f35fc7de8f2e.jpg","text":"TemporaryFile(/tmp/multipartBody2767412247024129715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309553007,"filename":"image_18032025_15_51_47_6201.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a756604b5d1e876224b7b77a3c1bb26.jpg","text":"TemporaryFile(/tmp/multipartBody396051412095237099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309553007,"filename":"image_18032025_15_51_53_5997.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0d3b100048bd741c25c28719e97f5e98.jpg","text":"TemporaryFile(/tmp/multipartBody8566241751254418785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309553007,"filename":"image_18032025_15_51_29_5864.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4f5d4d4a0d50b4f9ebc45613b85f4d9.jpg","text":"TemporaryFile(/tmp/multipartBody9207561105157165698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309553007,"filename":"image_18032025_15_51_23_5919.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a15fd227b588c618ebab427ccc23cf4c.jpg","text":"TemporaryFile(/tmp/multipartBody8785622797181949196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309553007,"filename":"image_18032025_15_51_41_5913.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/80db0ec6853d808f7755107999bcf451.jpg","text":"TemporaryFile(/tmp/multipartBody9206439115371796317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309553007,"filename":"image_18032025_15_51_35_5766.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345153501","file1":"1345153490","file0":"1345153475","file4":"1345153523","file5":"1345153526","file3":"1345153510"},"map_files_photo_id_array":[{"photo_id":"1345153526","filename":"file5"},{"photo_id":"1345153501","filename":"file2"},{"photo_id":"1345153523","filename":"file4"},{"photo_id":"1345153490","filename":"file1"},{"photo_id":"1345153475","filename":"file0"},{"photo_id":"1345153510","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345153490":["hashtag1","hashtag2"]},{"1345153475":["hashtag1","hashtag2"]},{"1345153523":["hashtag1","hashtag2"]},{"1345153526":["hashtag1","hashtag2"]},{"1345153501":["hashtag1","hashtag2"]},{"1345153510":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345153490, 1345153475, 1345153523, 1345153526, 1345153501, 1345153510)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.19417643547058 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:52:32.474264
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_53_5849.jpg', 2), ('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_47_5904.jpg', 2), ('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_41_5990.jpg', 2), ('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_35_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_29_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_23_5876.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_53_5849.jpg', '/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_47_5904.jpg', '/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_41_5990.jpg', '/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_35_6093.jpg', '/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_29_5758.jpg', '/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_23_5876.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_53_5849.jpg
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_47_5904.jpg
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_41_5990.jpg
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_35_6093.jpg
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_29_5758.jpg
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_23_5876.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.5347030162811279 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:53:03.013117
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_53_5849.jpg', 2), ('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_47_5904.jpg', 2), ('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_41_5990.jpg', 2), ('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_35_6093.jpg', 2), ('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_29_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_23_5876.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_53_5849.jpg', '/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_47_5904.jpg', '/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_41_5990.jpg', '/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_35_6093.jpg', '/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_29_5758.jpg', '/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_23_5876.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_53_5849.jpg
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_47_5904.jpg
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_41_5990.jpg
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_35_6093.jpg
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_29_5758.jpg
/home/nano/Desktop/images/18032025/15/52/image_18032025_15_52_23_5876.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345153581","1345153575","1345153565","1345153570","1345153573","1345153567"],"photo_ids_order":["1345153565","1345153567","1345153570","1345153573","1345153575","1345153581"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/81ad92984b9c622ed0de3d6b21720311.jpg","text":"TemporaryFile(/tmp/multipartBody5200334770078840549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309643466,"filename":"image_18032025_15_52_23_5876.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2e6ce00a852d0a190d80643b7580e1c4.jpg","text":"TemporaryFile(/tmp/multipartBody1937662082064364305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309643466,"filename":"image_18032025_15_52_29_5758.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d142da8c556858c4bef94177c38d57de.jpg","text":"TemporaryFile(/tmp/multipartBody5091820483745874440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309643466,"filename":"image_18032025_15_52_53_5849.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/32da44d362101eaddd8cde43812f11da.jpg","text":"TemporaryFile(/tmp/multipartBody3466738443039818718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309643466,"filename":"image_18032025_15_52_41_5990.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8670804b0b9b5714eaa840298186ef0b.jpg","text":"TemporaryFile(/tmp/multipartBody1597230439661359631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309643466,"filename":"image_18032025_15_52_35_6093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/355395fc5133632548985faeb0a3885c.jpg","text":"TemporaryFile(/tmp/multipartBody3268646500690514588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309643466,"filename":"image_18032025_15_52_47_5904.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345153570","file1":"1345153567","file0":"1345153565","file4":"1345153575","file5":"1345153581","file3":"1345153573"},"map_files_photo_id_array":[{"photo_id":"1345153581","filename":"file5"},{"photo_id":"1345153570","filename":"file2"},{"photo_id":"1345153575","filename":"file4"},{"photo_id":"1345153567","filename":"file1"},{"photo_id":"1345153565","filename":"file0"},{"photo_id":"1345153573","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345153581":["hashtag1","hashtag2"]},{"1345153575":["hashtag1","hashtag2"]},{"1345153565":["hashtag1","hashtag2"]},{"1345153570":["hashtag1","hashtag2"]},{"1345153573":["hashtag1","hashtag2"]},{"1345153567":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345153581, 1345153575, 1345153565, 1345153570, 1345153573, 1345153567)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.00711679458618 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:54:03.310309
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_47_5856.jpg', 2), ('/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_41_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_35_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_29_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_24_6194.jpg', 2), ('/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_17_5929.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_47_5856.jpg', '/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_41_5834.jpg', '/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_35_5769.jpg', '/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_29_5817.jpg', '/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_24_6194.jpg', '/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_17_5929.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_47_5856.jpg
/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_41_5834.jpg
/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_35_5769.jpg
/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_29_5817.jpg
/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_24_6194.jpg
/home/nano/Desktop/images/18032025/15/53/image_18032025_15_53_17_5929.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345153612","1345153614","1345153617","1345153604","1345153609","1345153600"],"photo_ids_order":["1345153600","1345153604","1345153609","1345153612","1345153614","1345153617"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2420ce7f2667cf3d640760e3ada2ba8c.jpg","text":"TemporaryFile(/tmp/multipartBody3630189539952421349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309703790,"filename":"image_18032025_15_53_29_5817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19d6e447cf3ee60e9d729c24f5c74cff.jpg","text":"TemporaryFile(/tmp/multipartBody3779858384075673485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309703790,"filename":"image_18032025_15_53_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/3/18/808ec18ce5091643d299a0996aa50a8d.jpg","text":"TemporaryFile(/tmp/multipartBody4299521532778067782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309703790,"filename":"image_18032025_15_53_17_5929.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9976054bb76831ea32a297e918da877d.jpg","text":"TemporaryFile(/tmp/multipartBody4751211316569316728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309703790,"filename":"image_18032025_15_53_41_5834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e143416e83cab0f6e4b59e31bb0bcec7.jpg","text":"TemporaryFile(/tmp/multipartBody8959889213308887581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309703790,"filename":"image_18032025_15_53_35_5769.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6f6ab96fa9edf3176ad6e48423d34b7.jpg","text":"TemporaryFile(/tmp/multipartBody5604358316340061812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309703790,"filename":"image_18032025_15_53_47_5856.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345153609","file1":"1345153604","file0":"1345153600","file4":"1345153614","file5":"1345153617","file3":"1345153612"},"map_files_photo_id_array":[{"photo_id":"1345153617","filename":"file5"},{"photo_id":"1345153609","filename":"file2"},{"photo_id":"1345153614","filename":"file4"},{"photo_id":"1345153604","filename":"file1"},{"photo_id":"1345153600","filename":"file0"},{"photo_id":"1345153612","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345153612":["hashtag1","hashtag2"]},{"1345153614":["hashtag1","hashtag2"]},{"1345153617":["hashtag1","hashtag2"]},{"1345153604":["hashtag1","hashtag2"]},{"1345153609":["hashtag1","hashtag2"]},{"1345153600":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345153612, 1345153614, 1345153617, 1345153604, 1345153609, 1345153600)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.500941514968872 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:55:02.284958
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_53_5964.jpg', 2), ('/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_47_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_42_6628.jpg', 2), ('/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_35_5607.jpg', 2), ('/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_30_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_23_5627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_53_5964.jpg', '/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_47_5650.jpg', '/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_42_6628.jpg', '/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_35_5607.jpg', '/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_30_6656.jpg', '/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_23_5627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_53_5964.jpg
/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_47_5650.jpg
/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_42_6628.jpg
/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_35_5607.jpg
/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_30_6656.jpg
/home/nano/Desktop/images/18032025/15/54/image_18032025_15_54_23_5627.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345153671","1345153665","1345153667","1345153661","1345153643","1345153678"],"photo_ids_order":["1345153643","1345153661","1345153665","1345153667","1345153671","1345153678"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5edf98c6692b03c9ac5c5cbe43079bff.jpg","text":"TemporaryFile(/tmp/multipartBody3205785109031731906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309762642,"filename":"image_18032025_15_54_30_6656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6dc0382b671e8869d2e90a6e93c5f0b2.jpg","text":"TemporaryFile(/tmp/multipartBody3937219146599942699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309762642,"filename":"image_18032025_15_54_42_6628.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4560f979bbfc6fae1e27e943a9f9ed9.jpg","text":"TemporaryFile(/tmp/multipartBody1442743488494448053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309762642,"filename":"image_18032025_15_54_35_5607.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce445eae5df5359212185ce02a20fc3a.jpg","text":"TemporaryFile(/tmp/multipartBody8459191589311535314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309762642,"filename":"image_18032025_15_54_47_5650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/853846c346bb568db62141dde8c54d95.jpg","text":"TemporaryFile(/tmp/multipartBody6864849384026046512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309762642,"filename":"image_18032025_15_54_53_5964.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/907486edc54e9968d71661d46c87f588.jpg","text":"TemporaryFile(/tmp/multipartBody3626104517525506082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309762642,"filename":"image_18032025_15_54_23_5627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345153665","file1":"1345153661","file0":"1345153643","file4":"1345153671","file5":"1345153678","file3":"1345153667"},"map_files_photo_id_array":[{"photo_id":"1345153678","filename":"file5"},{"photo_id":"1345153665","filename":"file2"},{"photo_id":"1345153671","filename":"file4"},{"photo_id":"1345153661","filename":"file1"},{"photo_id":"1345153643","filename":"file0"},{"photo_id":"1345153667","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345153671":["hashtag1","hashtag2"]},{"1345153665":["hashtag1","hashtag2"]},{"1345153667":["hashtag1","hashtag2"]},{"1345153661":["hashtag1","hashtag2"]},{"1345153643":["hashtag1","hashtag2"]},{"1345153678":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345153671, 1345153665, 1345153667, 1345153661, 1345153643, 1345153678)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.880213975906372 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:56:02.462152
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_53_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_47_5899.jpg', 2), ('/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_41_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_35_5747.jpg', 2), ('/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_12_6774.jpg', 2), ('/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_05_5947.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_53_5767.jpg', '/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_47_5899.jpg', '/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_41_6059.jpg', '/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_35_5747.jpg', '/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_12_6774.jpg', '/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_05_5947.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_53_5767.jpg
/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_47_5899.jpg
/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_41_6059.jpg
/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_35_5747.jpg
/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_12_6774.jpg
/home/nano/Desktop/images/18032025/15/55/image_18032025_15_55_05_5947.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345153727","1345153757","1345153730","1345153774","1345153846","1345153810"],"photo_ids_order":["1345153727","1345153730","1345153757","1345153774","1345153810","1345153846"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/707414a06fea88c5ee8505f5c25e3c31.jpg","text":"TemporaryFile(/tmp/multipartBody3097269929215807746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309822887,"filename":"image_18032025_15_55_53_5767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f4c8c2f88706b2daff02a97ffc6cc45f.jpg","text":"TemporaryFile(/tmp/multipartBody3047132183041452377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309822887,"filename":"image_18032025_15_55_41_6059.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/490dc64375535fa701dd6b206bac78d6.jpg","text":"TemporaryFile(/tmp/multipartBody2845271902953187340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309822887,"filename":"image_18032025_15_55_47_5899.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cede5d589069ab38eba2fe5050e25c4b.jpg","text":"TemporaryFile(/tmp/multipartBody8426232041917833689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309822887,"filename":"image_18032025_15_55_35_5747.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/012dc690de744173095a081b9f7827df.jpg","text":"TemporaryFile(/tmp/multipartBody6131803217643264826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309822887,"filename":"image_18032025_15_55_05_5947.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/700c14b1fedb48eb64dd0b8796b7f399.jpg","text":"TemporaryFile(/tmp/multipartBody4898438331459247812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309822887,"filename":"image_18032025_15_55_12_6774.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345153757","file1":"1345153730","file0":"1345153727","file4":"1345153810","file5":"1345153846","file3":"1345153774"},"map_files_photo_id_array":[{"photo_id":"1345153846","filename":"file5"},{"photo_id":"1345153757","filename":"file2"},{"photo_id":"1345153810","filename":"file4"},{"photo_id":"1345153730","filename":"file1"},{"photo_id":"1345153727","filename":"file0"},{"photo_id":"1345153774","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345153727":["hashtag1","hashtag2"]},{"1345153757":["hashtag1","hashtag2"]},{"1345153730":["hashtag1","hashtag2"]},{"1345153774":["hashtag1","hashtag2"]},{"1345153846":["hashtag1","hashtag2"]},{"1345153810":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345153727, 1345153757, 1345153730, 1345153774, 1345153846, 1345153810)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.269909620285034 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:57:02.526918
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_53_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_47_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_41_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_35_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_30_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_23_5660.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_53_5635.jpg', '/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_47_6634.jpg', '/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_41_5650.jpg', '/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_35_5633.jpg', '/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_30_6644.jpg', '/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_23_5660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_53_5635.jpg
/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_47_6634.jpg
/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_41_5650.jpg
/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_35_5633.jpg
/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_30_6644.jpg
/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_23_5660.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345154346","1345154576","1345154498","1345154666","1345154419","1345154271"],"photo_ids_order":["1345154271","1345154346","1345154419","1345154498","1345154576","1345154666"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a7dada413639da85aaa2c60e8eeee4b3.jpg","text":"TemporaryFile(/tmp/multipartBody2530337195662171828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309882890,"filename":"image_18032025_15_56_47_6634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2b697f93d2234ee22b635058e02255f2.jpg","text":"TemporaryFile(/tmp/multipartBody2222952143769202928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309882890,"filename":"image_18032025_15_56_30_6644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/57ec712ff53d0c72475328d78fd2093e.jpg","text":"TemporaryFile(/tmp/multipartBody4900379464228146622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309882890,"filename":"image_18032025_15_56_35_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9102f746db7b3057ed856324c896b59.jpg","text":"TemporaryFile(/tmp/multipartBody2313945972476315508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309882890,"filename":"image_18032025_15_56_23_5660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f4a811bf4684c372139f992a8359650.jpg","text":"TemporaryFile(/tmp/multipartBody2713782568054148656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309882890,"filename":"image_18032025_15_56_41_5650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c0ce86b5fa3b9fcee3b1039445caf696.jpg","text":"TemporaryFile(/tmp/multipartBody1863844529916468244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309882890,"filename":"image_18032025_15_56_53_5635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345154419","file1":"1345154346","file0":"1345154271","file4":"1345154576","file5":"1345154666","file3":"1345154498"},"map_files_photo_id_array":[{"photo_id":"1345154666","filename":"file5"},{"photo_id":"1345154419","filename":"file2"},{"photo_id":"1345154576","filename":"file4"},{"photo_id":"1345154346","filename":"file1"},{"photo_id":"1345154271","filename":"file0"},{"photo_id":"1345154498","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345154346":["hashtag1","hashtag2"]},{"1345154576":["hashtag1","hashtag2"]},{"1345154498":["hashtag1","hashtag2"]},{"1345154666":["hashtag1","hashtag2"]},{"1345154419":["hashtag1","hashtag2"]},{"1345154271":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345154346, 1345154576, 1345154498, 1345154666, 1345154419, 1345154271)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.751179695129395 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:58:02.478942
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_53_5740.jpg', 2), ('/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_47_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_42_5958.jpg', 2), ('/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_36_5985.jpg', 2), ('/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_30_6037.jpg', 2), ('/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_24_5825.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_53_5740.jpg', '/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_47_5967.jpg', '/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_42_5958.jpg', '/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_36_5985.jpg', '/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_30_6037.jpg', '/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_24_5825.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_53_5740.jpg
/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_47_5967.jpg
/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_42_5958.jpg
/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_36_5985.jpg
/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_30_6037.jpg
/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_24_5825.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345155404","1345155295","1345155238","1345155187","1345155354","1345155213"],"photo_ids_order":["1345155187","1345155213","1345155238","1345155295","1345155354","1345155404"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ee9b3a0c7dc973465ab33d2a43ebfd8e.jpg","text":"TemporaryFile(/tmp/multipartBody8674559415862761891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309942922,"filename":"image_18032025_15_57_24_5825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fad44813b3bc86ddc73b81d4d06407a7.jpg","text":"TemporaryFile(/tmp/multipartBody4985863149281138629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309942922,"filename":"image_18032025_15_57_36_5985.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/783d91a4d595e589a20bfeec0e736982.jpg","text":"TemporaryFile(/tmp/multipartBody6439594562345943320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309942922,"filename":"image_18032025_15_57_42_5958.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e52d739c18bbe369d17556de3fc1b25d.jpg","text":"TemporaryFile(/tmp/multipartBody808165606070533269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309942922,"filename":"image_18032025_15_57_53_5740.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/39d7da225e73516d5eb1665c7ea92fa4.jpg","text":"TemporaryFile(/tmp/multipartBody1147786841738842081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309942922,"filename":"image_18032025_15_57_30_6037.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fcefe26a39972eb914d89997b4150a45.jpg","text":"TemporaryFile(/tmp/multipartBody3842480099409053940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742309942922,"filename":"image_18032025_15_57_47_5967.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345155238","file1":"1345155213","file0":"1345155187","file4":"1345155354","file5":"1345155404","file3":"1345155295"},"map_files_photo_id_array":[{"photo_id":"1345155404","filename":"file5"},{"photo_id":"1345155238","filename":"file2"},{"photo_id":"1345155354","filename":"file4"},{"photo_id":"1345155213","filename":"file1"},{"photo_id":"1345155187","filename":"file0"},{"photo_id":"1345155295","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345155404":["hashtag1","hashtag2"]},{"1345155295":["hashtag1","hashtag2"]},{"1345155238":["hashtag1","hashtag2"]},{"1345155187":["hashtag1","hashtag2"]},{"1345155354":["hashtag1","hashtag2"]},{"1345155213":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345155404, 1345155295, 1345155238, 1345155187, 1345155354, 1345155213)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.6043963432312 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 15:59:02.474571
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_18_6625.jpg', 2), ('/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_11_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_05_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/15/56/image_18032025_15_57_00_6675.jpg', 2), ('/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_17_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_12_6764.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_18_6625.jpg', '/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_11_5653.jpg', '/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_05_5642.jpg', '/home/nano/Desktop/images/18032025/15/56/image_18032025_15_57_00_6675.jpg', '/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_17_5643.jpg', '/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_12_6764.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_18_6625.jpg
/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_11_5653.jpg
/home/nano/Desktop/images/18032025/15/57/image_18032025_15_57_05_5642.jpg
/home/nano/Desktop/images/18032025/15/56/image_18032025_15_57_00_6675.jpg
/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_17_5643.jpg
/home/nano/Desktop/images/18032025/15/56/image_18032025_15_56_12_6764.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345155941","1345155716","1345155778","1345155873","1345155831","1345155909"],"photo_ids_order":["1345155716","1345155778","1345155831","1345155873","1345155909","1345155941"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7c7fc547f23885d9a519d4907798abcf.jpg","text":"TemporaryFile(/tmp/multipartBody5157309505152886568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310002827,"filename":"image_18032025_15_56_12_6764.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/961413e57e707182c3c9b96f3f8ca245.jpg","text":"TemporaryFile(/tmp/multipartBody615746773967520158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310002827,"filename":"image_18032025_15_57_18_6625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95292ba0c848ac99188c00069477e06f.jpg","text":"TemporaryFile(/tmp/multipartBody9148156771690047815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310002827,"filename":"image_18032025_15_57_11_5653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95b750bd4f22c058637ab764299c7805.jpg","text":"TemporaryFile(/tmp/multipartBody1116564181970633246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310002827,"filename":"image_18032025_15_57_00_6675.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bf408abae7827324e947fac71def1b91.jpg","text":"TemporaryFile(/tmp/multipartBody3703762512316352377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310002827,"filename":"image_18032025_15_57_05_5642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/68edb7d7b83b0a97f3bc56f62f273457.jpg","text":"TemporaryFile(/tmp/multipartBody8052080955013522732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310002827,"filename":"image_18032025_15_56_17_5643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345155831","file1":"1345155778","file0":"1345155716","file4":"1345155909","file5":"1345155941","file3":"1345155873"},"map_files_photo_id_array":[{"photo_id":"1345155941","filename":"file5"},{"photo_id":"1345155831","filename":"file2"},{"photo_id":"1345155909","filename":"file4"},{"photo_id":"1345155778","filename":"file1"},{"photo_id":"1345155716","filename":"file0"},{"photo_id":"1345155873","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345155941":["hashtag1","hashtag2"]},{"1345155716":["hashtag1","hashtag2"]},{"1345155778":["hashtag1","hashtag2"]},{"1345155873":["hashtag1","hashtag2"]},{"1345155831":["hashtag1","hashtag2"]},{"1345155909":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345155941, 1345155716, 1345155778, 1345155873, 1345155831, 1345155909)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.605600357055664 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:00:02.296208
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_53_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_48_6614.jpg', 2), ('/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_41_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_35_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_30_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_23_5647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_53_5622.jpg', '/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_48_6614.jpg', '/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_41_5633.jpg', '/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_35_5643.jpg', '/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_30_6636.jpg', '/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_23_5647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_53_5622.jpg
/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_48_6614.jpg
/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_41_5633.jpg
/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_35_5643.jpg
/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_30_6636.jpg
/home/nano/Desktop/images/18032025/15/59/image_18032025_15_59_23_5647.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345156240","1345156243","1345156587","1345156383","1345156472","1345156277"],"photo_ids_order":["1345156240","1345156243","1345156277","1345156383","1345156472","1345156587"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6f3c8175215faa2f799f78d5dbae965f.jpg","text":"TemporaryFile(/tmp/multipartBody5301402259784565113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310062638,"filename":"image_18032025_15_59_53_5622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a8677fdc5821278d3b4a274a5760ebd.jpg","text":"TemporaryFile(/tmp/multipartBody3285051586190359215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310062638,"filename":"image_18032025_15_59_48_6614.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a4db500127b827d30c85728419cb8a2.jpg","text":"TemporaryFile(/tmp/multipartBody154933586435523674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310062638,"filename":"image_18032025_15_59_23_5647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/939ac31313ff901d42fcc6d65449c8c0.jpg","text":"TemporaryFile(/tmp/multipartBody6339518493219424290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310062638,"filename":"image_18032025_15_59_35_5643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a1cb2a82e9d1251e79b01579e0205b58.jpg","text":"TemporaryFile(/tmp/multipartBody2592581149547713387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310062638,"filename":"image_18032025_15_59_30_6636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/659b0b45a7267c6fcf26e616f498d5eb.jpg","text":"TemporaryFile(/tmp/multipartBody6405304853934148640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310062638,"filename":"image_18032025_15_59_41_5633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345156277","file1":"1345156243","file0":"1345156240","file4":"1345156472","file5":"1345156587","file3":"1345156383"},"map_files_photo_id_array":[{"photo_id":"1345156587","filename":"file5"},{"photo_id":"1345156277","filename":"file2"},{"photo_id":"1345156472","filename":"file4"},{"photo_id":"1345156243","filename":"file1"},{"photo_id":"1345156240","filename":"file0"},{"photo_id":"1345156383","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345156240":["hashtag1","hashtag2"]},{"1345156243":["hashtag1","hashtag2"]},{"1345156587":["hashtag1","hashtag2"]},{"1345156383":["hashtag1","hashtag2"]},{"1345156472":["hashtag1","hashtag2"]},{"1345156277":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345156240, 1345156243, 1345156587, 1345156383, 1345156472, 1345156277)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.11449432373047 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:01:02.562061
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_54_6618.jpg', 2), ('/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_47_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_41_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_36_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_29_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_23_6655.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_54_6618.jpg', '/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_47_5662.jpg', '/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_41_5611.jpg', '/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_36_6634.jpg', '/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_29_5620.jpg', '/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_23_6655.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_54_6618.jpg
/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_47_5662.jpg
/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_41_5611.jpg
/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_36_6634.jpg
/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_29_5620.jpg
/home/nano/Desktop/images/18032025/16/00/image_18032025_16_00_23_6655.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345157029","1345157116","1345157148","1345157040","1345157022","1345157025"],"photo_ids_order":["1345157022","1345157025","1345157029","1345157040","1345157116","1345157148"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bc391a4c577c5ece2b33016bf3008cd7.jpg","text":"TemporaryFile(/tmp/multipartBody3887479943245190868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310122907,"filename":"image_18032025_16_00_41_5611.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a21d34c906ad0d1362e7c72a03d8277b.jpg","text":"TemporaryFile(/tmp/multipartBody1755643757693309551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310122907,"filename":"image_18032025_16_00_29_5620.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a0a1b18fdb5a1d75f6feb58c56be9cd.jpg","text":"TemporaryFile(/tmp/multipartBody839746174816007645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310122907,"filename":"image_18032025_16_00_23_6655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/60380289dbea5eeee42312cbf320abb7.jpg","text":"TemporaryFile(/tmp/multipartBody6860278704135464579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310122907,"filename":"image_18032025_16_00_36_6634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3a9f92bdaf6fc3c10024de35de1fe254.jpg","text":"TemporaryFile(/tmp/multipartBody5196497409836964131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310122907,"filename":"image_18032025_16_00_54_6618.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/febfb6ed1e208cfa507ea4b40dd61416.jpg","text":"TemporaryFile(/tmp/multipartBody6254324015872765605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310122907,"filename":"image_18032025_16_00_47_5662.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345157029","file1":"1345157025","file0":"1345157022","file4":"1345157116","file5":"1345157148","file3":"1345157040"},"map_files_photo_id_array":[{"photo_id":"1345157148","filename":"file5"},{"photo_id":"1345157029","filename":"file2"},{"photo_id":"1345157116","filename":"file4"},{"photo_id":"1345157025","filename":"file1"},{"photo_id":"1345157022","filename":"file0"},{"photo_id":"1345157040","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345157029":["hashtag1","hashtag2"]},{"1345157116":["hashtag1","hashtag2"]},{"1345157148":["hashtag1","hashtag2"]},{"1345157040":["hashtag1","hashtag2"]},{"1345157022":["hashtag1","hashtag2"]},{"1345157025":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345157029, 1345157116, 1345157148, 1345157040, 1345157022, 1345157025)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.562134742736816 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:02:02.545646
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_54_6770.jpg', 2), ('/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_47_5807.jpg', 2), ('/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_41_5726.jpg', 2), ('/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_35_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_30_6777.jpg', 2), ('/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_23_5702.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_54_6770.jpg', '/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_47_5807.jpg', '/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_41_5726.jpg', '/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_35_5718.jpg', '/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_30_6777.jpg', '/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_23_5702.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_54_6770.jpg
/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_47_5807.jpg
/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_41_5726.jpg
/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_35_5718.jpg
/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_30_6777.jpg
/home/nano/Desktop/images/18032025/16/01/image_18032025_16_01_23_5702.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345157509","1345157544","1345157597","1345157576","1345157624","1345157426"],"photo_ids_order":["1345157426","1345157509","1345157544","1345157576","1345157597","1345157624"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f1b0d22a6a2ce9e04132ae40a8d1349f.jpg","text":"TemporaryFile(/tmp/multipartBody7919612625637724788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310182983,"filename":"image_18032025_16_01_47_5807.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5d28a6933ee77a81172c0d84a644428b.jpg","text":"TemporaryFile(/tmp/multipartBody780151140076516726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310182983,"filename":"image_18032025_16_01_41_5726.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c255a75a7a959b4e0421fbcbb5db4f8.jpg","text":"TemporaryFile(/tmp/multipartBody3460821431106038191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310182983,"filename":"image_18032025_16_01_30_6777.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c3427353130748a47e1b5530fda99a80.jpg","text":"TemporaryFile(/tmp/multipartBody9022667216412492804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310182983,"filename":"image_18032025_16_01_35_5718.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8314a387446ea72ab5a72e6d06f812cd.jpg","text":"TemporaryFile(/tmp/multipartBody5499737963469260359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310182983,"filename":"image_18032025_16_01_23_5702.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3b9f1d5fc4adc0ed141b12ff576a961.jpg","text":"TemporaryFile(/tmp/multipartBody1833456907428279335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310182983,"filename":"image_18032025_16_01_54_6770.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345157544","file1":"1345157509","file0":"1345157426","file4":"1345157597","file5":"1345157624","file3":"1345157576"},"map_files_photo_id_array":[{"photo_id":"1345157624","filename":"file5"},{"photo_id":"1345157544","filename":"file2"},{"photo_id":"1345157597","filename":"file4"},{"photo_id":"1345157509","filename":"file1"},{"photo_id":"1345157426","filename":"file0"},{"photo_id":"1345157576","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345157509":["hashtag1","hashtag2"]},{"1345157544":["hashtag1","hashtag2"]},{"1345157597":["hashtag1","hashtag2"]},{"1345157576":["hashtag1","hashtag2"]},{"1345157624":["hashtag1","hashtag2"]},{"1345157426":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345157509, 1345157544, 1345157597, 1345157576, 1345157624, 1345157426)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.410141468048096 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:03:02.700236
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_53_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_48_6775.jpg', 2), ('/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_41_5745.jpg', 2), ('/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_35_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_29_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_24_6767.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_53_5749.jpg', '/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_48_6775.jpg', '/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_41_5745.jpg', '/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_35_5797.jpg', '/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_29_5791.jpg', '/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_24_6767.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_53_5749.jpg
/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_48_6775.jpg
/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_41_5745.jpg
/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_35_5797.jpg
/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_29_5791.jpg
/home/nano/Desktop/images/18032025/16/02/image_18032025_16_02_24_6767.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345157940","1345158005","1345157957","1345157945","1345157980","1345157927"],"photo_ids_order":["1345157927","1345157940","1345157945","1345157957","1345157980","1345158005"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95078f8ec9e6f9cd1e8a3e211b08cca9.jpg","text":"TemporaryFile(/tmp/multipartBody6516786837740753161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310243264,"filename":"image_18032025_16_02_48_6775.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2e822ae5df0d5f2abccde9935b1ffd5b.jpg","text":"TemporaryFile(/tmp/multipartBody4243101041574851524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310243264,"filename":"image_18032025_16_02_24_6767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/96880c575898018b095b60c7e36476c0.jpg","text":"TemporaryFile(/tmp/multipartBody7386025650701263183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310243264,"filename":"image_18032025_16_02_35_5797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3864b3586e9ff143fbd0e9eb4b5f18ad.jpg","text":"TemporaryFile(/tmp/multipartBody6416451610403268079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310243264,"filename":"image_18032025_16_02_41_5745.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1190e394e28ddac3a0187d2614cd636b.jpg","text":"TemporaryFile(/tmp/multipartBody4529738199995235401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310243264,"filename":"image_18032025_16_02_29_5791.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad9c2954c4d35fcb8a4f0e0df8af8351.jpg","text":"TemporaryFile(/tmp/multipartBody2237899975332862279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310243264,"filename":"image_18032025_16_02_53_5749.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345157945","file1":"1345157940","file0":"1345157927","file4":"1345157980","file5":"1345158005","file3":"1345157957"},"map_files_photo_id_array":[{"photo_id":"1345158005","filename":"file5"},{"photo_id":"1345157945","filename":"file2"},{"photo_id":"1345157980","filename":"file4"},{"photo_id":"1345157940","filename":"file1"},{"photo_id":"1345157927","filename":"file0"},{"photo_id":"1345157957","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345157940":["hashtag1","hashtag2"]},{"1345158005":["hashtag1","hashtag2"]},{"1345157957":["hashtag1","hashtag2"]},{"1345157945":["hashtag1","hashtag2"]},{"1345157980":["hashtag1","hashtag2"]},{"1345157927":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345157940, 1345158005, 1345157957, 1345157945, 1345157980, 1345157927)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.15591859817505 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:04:03.034356
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_53_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_47_5722.jpg', 2), ('/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_42_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_35_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_29_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_24_5796.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_53_5633.jpg', '/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_47_5722.jpg', '/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_42_6648.jpg', '/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_35_5635.jpg', '/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_29_5883.jpg', '/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_24_5796.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_53_5633.jpg
/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_47_5722.jpg
/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_42_6648.jpg
/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_35_5635.jpg
/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_29_5883.jpg
/home/nano/Desktop/images/18032025/16/03/image_18032025_16_03_24_5796.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345158253","1345158330","1345158281","1345158308","1345158391","1345158367"],"photo_ids_order":["1345158253","1345158281","1345158308","1345158330","1345158367","1345158391"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c95034d7dd6aaf462b1aa90be6c25357.jpg","text":"TemporaryFile(/tmp/multipartBody8677201251692532949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310303468,"filename":"image_18032025_16_03_53_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/08cbd1b8b637241f7bd99246f58a6b3b.jpg","text":"TemporaryFile(/tmp/multipartBody5807170937506823982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310303468,"filename":"image_18032025_16_03_35_5635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/186c339c0582c3d2da1ff916a6c3f499.jpg","text":"TemporaryFile(/tmp/multipartBody8832030556081830758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310303468,"filename":"image_18032025_16_03_47_5722.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e03e678e7ebd8bd213b1d27e7f5ce081.jpg","text":"TemporaryFile(/tmp/multipartBody1438863353824716812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310303468,"filename":"image_18032025_16_03_42_6648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0f084ca93492db8feb19e599aa1f701c.jpg","text":"TemporaryFile(/tmp/multipartBody6074040251891400569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310303468,"filename":"image_18032025_16_03_24_5796.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd4ec5c4801713eadc5b9196ee230df1.jpg","text":"TemporaryFile(/tmp/multipartBody9118481015598091218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310303468,"filename":"image_18032025_16_03_29_5883.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345158308","file1":"1345158281","file0":"1345158253","file4":"1345158367","file5":"1345158391","file3":"1345158330"},"map_files_photo_id_array":[{"photo_id":"1345158391","filename":"file5"},{"photo_id":"1345158308","filename":"file2"},{"photo_id":"1345158367","filename":"file4"},{"photo_id":"1345158281","filename":"file1"},{"photo_id":"1345158253","filename":"file0"},{"photo_id":"1345158330","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345158253":["hashtag1","hashtag2"]},{"1345158330":["hashtag1","hashtag2"]},{"1345158281":["hashtag1","hashtag2"]},{"1345158308":["hashtag1","hashtag2"]},{"1345158391":["hashtag1","hashtag2"]},{"1345158367":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345158253, 1345158330, 1345158281, 1345158308, 1345158391, 1345158367)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.459000825881958 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:05:03.008706
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_54_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_47_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_41_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_36_6672.jpg', 2), ('/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_29_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_23_5617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_54_6640.jpg', '/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_47_5622.jpg', '/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_41_5640.jpg', '/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_36_6672.jpg', '/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_29_5667.jpg', '/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_23_5617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_54_6640.jpg
/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_47_5622.jpg
/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_41_5640.jpg
/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_36_6672.jpg
/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_29_5667.jpg
/home/nano/Desktop/images/18032025/16/04/image_18032025_16_04_23_5617.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345158588","1345158585","1345158572","1345158578","1345158583","1345158580"],"photo_ids_order":["1345158572","1345158578","1345158580","1345158583","1345158585","1345158588"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52df2c5aeb2a0aab7b5a65d1fbf4d4b1.jpg","text":"TemporaryFile(/tmp/multipartBody602243208450400172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310363442,"filename":"image_18032025_16_04_23_5617.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f695db9fa5ce0bbfb0e2312e88f579a9.jpg","text":"TemporaryFile(/tmp/multipartBody1514007858802666203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310363442,"filename":"image_18032025_16_04_29_5667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4189a70cf545adbccec327aa8bd4506a.jpg","text":"TemporaryFile(/tmp/multipartBody2620880917992045990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310363442,"filename":"image_18032025_16_04_54_6640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c2993972ec17db9c4c5849fc9d240e0.jpg","text":"TemporaryFile(/tmp/multipartBody1182612606809535500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310363442,"filename":"image_18032025_16_04_47_5622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/733b4110f91f82ad73b539f2dcae10a1.jpg","text":"TemporaryFile(/tmp/multipartBody1175206269456516197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310363442,"filename":"image_18032025_16_04_36_6672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e72625c6b61d3ddcb45be92f8531f31.jpg","text":"TemporaryFile(/tmp/multipartBody5543311316179466358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310363442,"filename":"image_18032025_16_04_41_5640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345158580","file1":"1345158578","file0":"1345158572","file4":"1345158585","file5":"1345158588","file3":"1345158583"},"map_files_photo_id_array":[{"photo_id":"1345158588","filename":"file5"},{"photo_id":"1345158580","filename":"file2"},{"photo_id":"1345158585","filename":"file4"},{"photo_id":"1345158578","filename":"file1"},{"photo_id":"1345158572","filename":"file0"},{"photo_id":"1345158583","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345158588":["hashtag1","hashtag2"]},{"1345158585":["hashtag1","hashtag2"]},{"1345158572":["hashtag1","hashtag2"]},{"1345158578":["hashtag1","hashtag2"]},{"1345158583":["hashtag1","hashtag2"]},{"1345158580":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345158588, 1345158585, 1345158572, 1345158578, 1345158583, 1345158580)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.665107011795044 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:06:03.064109
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_54_5915.jpg', 2), ('/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_48_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_42_6698.jpg', 2), ('/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_35_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_29_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_23_5646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_54_5915.jpg', '/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_48_5866.jpg', '/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_42_6698.jpg', '/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_35_5625.jpg', '/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_29_6644.jpg', '/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_23_5646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_54_5915.jpg
/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_48_5866.jpg
/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_42_6698.jpg
/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_35_5625.jpg
/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_29_6644.jpg
/home/nano/Desktop/images/18032025/16/05/image_18032025_16_05_23_5646.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345158709","1345158687","1345158639","1345158662","1345158757","1345158733"],"photo_ids_order":["1345158639","1345158662","1345158687","1345158709","1345158733","1345158757"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27d096dbe0d9a427d405244ee1a1dec6.jpg","text":"TemporaryFile(/tmp/multipartBody1470186567683653232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310423550,"filename":"image_18032025_16_05_35_5625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0135c627313fe267afbf6c00f532b9c7.jpg","text":"TemporaryFile(/tmp/multipartBody1835307686432813662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310423550,"filename":"image_18032025_16_05_42_6698.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28feabd10d7f73f72e0d7d9c90f82cbe.jpg","text":"TemporaryFile(/tmp/multipartBody2043377738966286300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310423550,"filename":"image_18032025_16_05_54_5915.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/946d42eb327429a496a1bd332425cebb.jpg","text":"TemporaryFile(/tmp/multipartBody6934677650954930772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310423550,"filename":"image_18032025_16_05_48_5866.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ee61404af8538ee1988e026693ac532.jpg","text":"TemporaryFile(/tmp/multipartBody3495956049714539737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310423550,"filename":"image_18032025_16_05_23_5646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e0a1a58c7f5bfea87c14d9ad95f13634.jpg","text":"TemporaryFile(/tmp/multipartBody5048417407530832080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310423550,"filename":"image_18032025_16_05_29_6644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345158687","file1":"1345158662","file0":"1345158639","file4":"1345158733","file5":"1345158757","file3":"1345158709"},"map_files_photo_id_array":[{"photo_id":"1345158757","filename":"file5"},{"photo_id":"1345158687","filename":"file2"},{"photo_id":"1345158733","filename":"file4"},{"photo_id":"1345158662","filename":"file1"},{"photo_id":"1345158639","filename":"file0"},{"photo_id":"1345158709","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345158709":["hashtag1","hashtag2"]},{"1345158687":["hashtag1","hashtag2"]},{"1345158639":["hashtag1","hashtag2"]},{"1345158662":["hashtag1","hashtag2"]},{"1345158757":["hashtag1","hashtag2"]},{"1345158733":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345158709, 1345158687, 1345158639, 1345158662, 1345158757, 1345158733)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.986841917037964 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:07:03.203992
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_53_5836.jpg', 2), ('/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_47_5933.jpg', 2), ('/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_42_5842.jpg', 2), ('/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_36_6848.jpg', 2), ('/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_29_5888.jpg', 2), ('/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_23_5849.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_53_5836.jpg', '/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_47_5933.jpg', '/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_42_5842.jpg', '/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_36_6848.jpg', '/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_29_5888.jpg', '/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_23_5849.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_53_5836.jpg
/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_47_5933.jpg
/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_42_5842.jpg
/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_36_6848.jpg
/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_29_5888.jpg
/home/nano/Desktop/images/18032025/16/06/image_18032025_16_06_23_5849.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345158972","1345158969","1345158951","1345158992","1345158967","1345158946"],"photo_ids_order":["1345158946","1345158951","1345158967","1345158969","1345158972","1345158992"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/04158a9634ef9c0147fd3ecd9bec2c56.jpg","text":"TemporaryFile(/tmp/multipartBody7287296503527980676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310483715,"filename":"image_18032025_16_06_29_5888.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f367e0f3c6fe2b7a87d6c7f04cf8fbb8.jpg","text":"TemporaryFile(/tmp/multipartBody7525146890048298620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310483715,"filename":"image_18032025_16_06_36_6848.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9521a136679e6ac82e2f3cb4c9dd1700.jpg","text":"TemporaryFile(/tmp/multipartBody1046719913370983926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310483715,"filename":"image_18032025_16_06_47_5933.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6daf767322478c5629f76d626b84de9f.jpg","text":"TemporaryFile(/tmp/multipartBody3124997533228911372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310483715,"filename":"image_18032025_16_06_23_5849.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/117002006e6d81a9374354215680ec3e.jpg","text":"TemporaryFile(/tmp/multipartBody1619135638099386800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310483715,"filename":"image_18032025_16_06_42_5842.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d194925ea36417385094c2cbb68e4b3e.jpg","text":"TemporaryFile(/tmp/multipartBody7890330986072776159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310483715,"filename":"image_18032025_16_06_53_5836.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345158967","file1":"1345158951","file0":"1345158946","file4":"1345158972","file5":"1345158992","file3":"1345158969"},"map_files_photo_id_array":[{"photo_id":"1345158992","filename":"file5"},{"photo_id":"1345158967","filename":"file2"},{"photo_id":"1345158972","filename":"file4"},{"photo_id":"1345158951","filename":"file1"},{"photo_id":"1345158946","filename":"file0"},{"photo_id":"1345158969","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345158972":["hashtag1","hashtag2"]},{"1345158969":["hashtag1","hashtag2"]},{"1345158951":["hashtag1","hashtag2"]},{"1345158992":["hashtag1","hashtag2"]},{"1345158967":["hashtag1","hashtag2"]},{"1345158946":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345158972, 1345158969, 1345158951, 1345158992, 1345158967, 1345158946)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.04306435585022 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:08:02.312265
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_53_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_47_5800.jpg', 2), ('/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_42_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_36_6921.jpg', 2), ('/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_29_5849.jpg', 2), ('/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_23_5918.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_53_5866.jpg', '/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_47_5800.jpg', '/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_42_5889.jpg', '/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_36_6921.jpg', '/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_29_5849.jpg', '/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_23_5918.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_53_5866.jpg
/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_47_5800.jpg
/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_42_5889.jpg
/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_36_6921.jpg
/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_29_5849.jpg
/home/nano/Desktop/images/18032025/16/07/image_18032025_16_07_23_5918.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.35828447341918945 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:08:31.885967
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_53_6129.jpg', 2), ('/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_47_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_41_5171.jpg', 2), ('/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_36_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_30_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_23_5624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_53_6129.jpg', '/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_47_6165.jpg', '/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_41_5171.jpg', '/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_36_6165.jpg', '/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_30_6677.jpg', '/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_23_5624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_53_6129.jpg
/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_47_6165.jpg
/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_41_5171.jpg
/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_36_6165.jpg
/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_30_6677.jpg
/home/nano/Desktop/images/18032025/16/08/image_18032025_16_08_23_5624.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345159227","1345159172","1345159253","1345159148","1345159282","1345159202"],"photo_ids_order":["1345159148","1345159172","1345159202","1345159227","1345159253","1345159282"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/586f980757d6928c6e49cf372da427ef.jpg","text":"TemporaryFile(/tmp/multipartBody5111074004431838892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310572330,"filename":"image_18032025_16_08_36_6165.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c0eb32a14adbfcc0fc94c1daa20bf9a8.jpg","text":"TemporaryFile(/tmp/multipartBody4162073020057293718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310572330,"filename":"image_18032025_16_08_47_6165.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f2f79a7a45e89722ee00e8e4eb41cfa.jpg","text":"TemporaryFile(/tmp/multipartBody5878563934560595024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310572330,"filename":"image_18032025_16_08_30_6677.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dc59a59600f87aae4565722053ccb3bc.jpg","text":"TemporaryFile(/tmp/multipartBody3305832063177794181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310572330,"filename":"image_18032025_16_08_53_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ecf078483431541462f392321d8c3cab.jpg","text":"TemporaryFile(/tmp/multipartBody8618963255153565304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310572330,"filename":"image_18032025_16_08_23_5624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f22c68dab7c149e65edc57c1ab3e439a.jpg","text":"TemporaryFile(/tmp/multipartBody6732545812580314287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310572330,"filename":"image_18032025_16_08_41_5171.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345159202","file1":"1345159172","file0":"1345159148","file4":"1345159253","file5":"1345159282","file3":"1345159227"},"map_files_photo_id_array":[{"photo_id":"1345159282","filename":"file5"},{"photo_id":"1345159202","filename":"file2"},{"photo_id":"1345159253","filename":"file4"},{"photo_id":"1345159172","filename":"file1"},{"photo_id":"1345159148","filename":"file0"},{"photo_id":"1345159227","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345159227":["hashtag1","hashtag2"]},{"1345159172":["hashtag1","hashtag2"]},{"1345159253":["hashtag1","hashtag2"]},{"1345159148":["hashtag1","hashtag2"]},{"1345159282":["hashtag1","hashtag2"]},{"1345159202":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345159227, 1345159172, 1345159253, 1345159148, 1345159282, 1345159202)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.959898948669434 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:09:32.000033
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_48_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_41_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_35_6064.jpg', 2), ('/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_29_6018.jpg', 2), ('/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_23_5865.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_53_5625.jpg', '/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_48_6629.jpg', '/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_41_5776.jpg', '/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_35_6064.jpg', '/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_29_6018.jpg', '/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_23_5865.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_53_5625.jpg
/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_48_6629.jpg
/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_41_5776.jpg
/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_35_6064.jpg
/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_29_6018.jpg
/home/nano/Desktop/images/18032025/16/09/image_18032025_16_09_23_5865.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345159560","1345159539","1345159524","1345159499","1345159594","1345159537"],"photo_ids_order":["1345159499","1345159524","1345159537","1345159539","1345159560","1345159594"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/64e3532326af0d171a22900aebb20172.jpg","text":"TemporaryFile(/tmp/multipartBody2548320611864253952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310632365,"filename":"image_18032025_16_09_29_6018.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e28f261ceb4004f601fcdca160754bc.jpg","text":"TemporaryFile(/tmp/multipartBody9007697776372116440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310632365,"filename":"image_18032025_16_09_35_6064.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/efee8b8d8155d17e0582551f55b6b7db.jpg","text":"TemporaryFile(/tmp/multipartBody4172700867726600281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310632365,"filename":"image_18032025_16_09_48_6629.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/008f84aa7adfa5414135efe84c446378.jpg","text":"TemporaryFile(/tmp/multipartBody5294261554565467971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310632365,"filename":"image_18032025_16_09_53_5625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/881103763ada728435e798716369e349.jpg","text":"TemporaryFile(/tmp/multipartBody2661134145543654306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310632365,"filename":"image_18032025_16_09_23_5865.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9b4061a0318a743c8e04787057c578da.jpg","text":"TemporaryFile(/tmp/multipartBody3601725419060523931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310632365,"filename":"image_18032025_16_09_41_5776.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345159537","file1":"1345159524","file0":"1345159499","file4":"1345159560","file5":"1345159594","file3":"1345159539"},"map_files_photo_id_array":[{"photo_id":"1345159594","filename":"file5"},{"photo_id":"1345159537","filename":"file2"},{"photo_id":"1345159560","filename":"file4"},{"photo_id":"1345159524","filename":"file1"},{"photo_id":"1345159499","filename":"file0"},{"photo_id":"1345159539","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345159560":["hashtag1","hashtag2"]},{"1345159539":["hashtag1","hashtag2"]},{"1345159524":["hashtag1","hashtag2"]},{"1345159499":["hashtag1","hashtag2"]},{"1345159594":["hashtag1","hashtag2"]},{"1345159537":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345159560, 1345159539, 1345159524, 1345159499, 1345159594, 1345159537)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.71932291984558 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:10:32.117094
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_54_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_41_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_36_6636.jpg', 2), ('/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_29_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_24_6641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_54_6640.jpg', '/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_47_5633.jpg', '/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_41_5621.jpg', '/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_36_6636.jpg', '/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_29_5621.jpg', '/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_24_6641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_54_6640.jpg
/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_47_5633.jpg
/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_41_5621.jpg
/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_36_6636.jpg
/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_29_5621.jpg
/home/nano/Desktop/images/18032025/16/10/image_18032025_16_10_24_6641.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345159695","1345159707","1345159691","1345159699","1345159684","1345159663"],"photo_ids_order":["1345159663","1345159684","1345159691","1345159695","1345159699","1345159707"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/06066d4d555b1da4eff570998bf0a4f0.jpg","text":"TemporaryFile(/tmp/multipartBody3382911713965301701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310692440,"filename":"image_18032025_16_10_36_6636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/921833ccea894ce73598d24fdd7c2320.jpg","text":"TemporaryFile(/tmp/multipartBody930060864074390145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310692440,"filename":"image_18032025_16_10_24_6641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5784bdaa0ce60ef55f92b1f338e11afe.jpg","text":"TemporaryFile(/tmp/multipartBody5922438552284966420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310692440,"filename":"image_18032025_16_10_41_5621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/04d490285019efa1c9619dbc6b985a39.jpg","text":"TemporaryFile(/tmp/multipartBody250586915731069010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310692440,"filename":"image_18032025_16_10_29_5621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/53c6e35e795672cb5c48f87b42a43913.jpg","text":"TemporaryFile(/tmp/multipartBody7307213194840089018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310692440,"filename":"image_18032025_16_10_47_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5c7046024ae465095cbf2b3c31830c6e.jpg","text":"TemporaryFile(/tmp/multipartBody1286494418112605936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310692440,"filename":"image_18032025_16_10_54_6640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345159691","file1":"1345159684","file0":"1345159663","file4":"1345159699","file5":"1345159707","file3":"1345159695"},"map_files_photo_id_array":[{"photo_id":"1345159707","filename":"file5"},{"photo_id":"1345159691","filename":"file2"},{"photo_id":"1345159699","filename":"file4"},{"photo_id":"1345159684","filename":"file1"},{"photo_id":"1345159663","filename":"file0"},{"photo_id":"1345159695","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345159695":["hashtag1","hashtag2"]},{"1345159707":["hashtag1","hashtag2"]},{"1345159691":["hashtag1","hashtag2"]},{"1345159699":["hashtag1","hashtag2"]},{"1345159684":["hashtag1","hashtag2"]},{"1345159663":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345159695, 1345159707, 1345159691, 1345159699, 1345159684, 1345159663)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.203983306884766 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:11:32.269493
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_53_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_48_6666.jpg', 2), ('/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_41_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_35_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_30_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_23_5633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_53_5623.jpg', '/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_48_6666.jpg', '/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_41_5662.jpg', '/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_35_5620.jpg', '/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_30_6656.jpg', '/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_23_5633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_53_5623.jpg
/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_48_6666.jpg
/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_41_5662.jpg
/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_35_5620.jpg
/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_30_6656.jpg
/home/nano/Desktop/images/18032025/16/11/image_18032025_16_11_23_5633.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345159796","1345159805","1345159801","1345159791","1345159785","1345159779"],"photo_ids_order":["1345159779","1345159785","1345159791","1345159796","1345159801","1345159805"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/57696fcb1aa978c3fc3735ec35d2e23c.jpg","text":"TemporaryFile(/tmp/multipartBody2519160481743493110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310752620,"filename":"image_18032025_16_11_35_5620.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4e76767cb91db323413eadafa3a05049.jpg","text":"TemporaryFile(/tmp/multipartBody1408010483620929482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310752620,"filename":"image_18032025_16_11_23_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2dd0f4cc9c60858dff5e716e34debf01.jpg","text":"TemporaryFile(/tmp/multipartBody5165048244630749949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310752620,"filename":"image_18032025_16_11_30_6656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4bd2be2e8e349426b896b7a0827ccbb1.jpg","text":"TemporaryFile(/tmp/multipartBody1083187006855888893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310752620,"filename":"image_18032025_16_11_41_5662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd4030874419ade9509650bbd1d76227.jpg","text":"TemporaryFile(/tmp/multipartBody5073828516403462277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310752620,"filename":"image_18032025_16_11_48_6666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2468d9feb0b72815cbcc78bb8f6d2d6d.jpg","text":"TemporaryFile(/tmp/multipartBody1580522236585041363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310752620,"filename":"image_18032025_16_11_53_5623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345159791","file1":"1345159785","file0":"1345159779","file4":"1345159801","file5":"1345159805","file3":"1345159796"},"map_files_photo_id_array":[{"photo_id":"1345159805","filename":"file5"},{"photo_id":"1345159791","filename":"file2"},{"photo_id":"1345159801","filename":"file4"},{"photo_id":"1345159785","filename":"file1"},{"photo_id":"1345159779","filename":"file0"},{"photo_id":"1345159796","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345159796":["hashtag1","hashtag2"]},{"1345159805":["hashtag1","hashtag2"]},{"1345159801":["hashtag1","hashtag2"]},{"1345159791":["hashtag1","hashtag2"]},{"1345159785":["hashtag1","hashtag2"]},{"1345159779":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345159796, 1345159805, 1345159801, 1345159791, 1345159785, 1345159779)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.35957932472229 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:12:32.353126
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_53_5218.jpg', 2), ('/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_48_6009.jpg', 2), ('/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_42_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_36_6802.jpg', 2), ('/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_29_5792.jpg', 2), ('/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_23_5827.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_53_5218.jpg', '/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_48_6009.jpg', '/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_42_5895.jpg', '/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_36_6802.jpg', '/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_29_5792.jpg', '/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_23_5827.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_53_5218.jpg
/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_48_6009.jpg
/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_42_5895.jpg
/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_36_6802.jpg
/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_29_5792.jpg
/home/nano/Desktop/images/18032025/16/12/image_18032025_16_12_23_5827.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345159875","1345159839","1345159865","1345159855","1345159870","1345159878"],"photo_ids_order":["1345159839","1345159855","1345159865","1345159870","1345159875","1345159878"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/422c09e155b11a6b841909147bacc510.jpg","text":"TemporaryFile(/tmp/multipartBody8327167588878653663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310812862,"filename":"image_18032025_16_12_29_5792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c7846679c53f88b423b72cdfea8657fa.jpg","text":"TemporaryFile(/tmp/multipartBody6947752627874053864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310812862,"filename":"image_18032025_16_12_53_5218.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f8f7312c7748a1bf0a4c5f64f688b26c.jpg","text":"TemporaryFile(/tmp/multipartBody1974843635914147041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310812862,"filename":"image_18032025_16_12_42_5895.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5480c34a55d3bc043d3f30f34dfe29b1.jpg","text":"TemporaryFile(/tmp/multipartBody7350482367024119243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310812862,"filename":"image_18032025_16_12_48_6009.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e9350a597b2a39584302ded3aedcdd0e.jpg","text":"TemporaryFile(/tmp/multipartBody1057829532491176585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310812862,"filename":"image_18032025_16_12_36_6802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d29707561b80e459aa20f2d61af075c.jpg","text":"TemporaryFile(/tmp/multipartBody6038100227573422629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310812862,"filename":"image_18032025_16_12_23_5827.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345159865","file1":"1345159855","file0":"1345159839","file4":"1345159875","file5":"1345159878","file3":"1345159870"},"map_files_photo_id_array":[{"photo_id":"1345159878","filename":"file5"},{"photo_id":"1345159865","filename":"file2"},{"photo_id":"1345159875","filename":"file4"},{"photo_id":"1345159855","filename":"file1"},{"photo_id":"1345159839","filename":"file0"},{"photo_id":"1345159870","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345159875":["hashtag1","hashtag2"]},{"1345159839":["hashtag1","hashtag2"]},{"1345159865":["hashtag1","hashtag2"]},{"1345159855":["hashtag1","hashtag2"]},{"1345159870":["hashtag1","hashtag2"]},{"1345159878":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345159875, 1345159839, 1345159865, 1345159855, 1345159870, 1345159878)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.9622368812561 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:13:32.463508
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_53_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_47_5784.jpg', 2), ('/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_41_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_35_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_29_5812.jpg', 2), ('/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_23_5834.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_53_5855.jpg', '/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_47_5784.jpg', '/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_41_6120.jpg', '/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_35_6092.jpg', '/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_29_5812.jpg', '/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_23_5834.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_53_5855.jpg
/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_47_5784.jpg
/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_41_6120.jpg
/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_35_6092.jpg
/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_29_5812.jpg
/home/nano/Desktop/images/18032025/16/13/image_18032025_16_13_23_5834.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345159959","1345159944","1345159938","1345159949","1345159954","1345159963"],"photo_ids_order":["1345159938","1345159944","1345159949","1345159954","1345159959","1345159963"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b031e1ffb33ec88c31e3369978903272.jpg","text":"TemporaryFile(/tmp/multipartBody5069576915848347215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310872911,"filename":"image_18032025_16_13_29_5812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b12d596ab6ea00fdd1e1cef0719bc378.jpg","text":"TemporaryFile(/tmp/multipartBody7973258584256013450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310872911,"filename":"image_18032025_16_13_47_5784.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43c30473125e905f01ebf84861948b16.jpg","text":"TemporaryFile(/tmp/multipartBody533046653517975187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310872911,"filename":"image_18032025_16_13_53_5855.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e289d2d4ff81c430b01f03e6b2be3267.jpg","text":"TemporaryFile(/tmp/multipartBody3645818611519569924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310872911,"filename":"image_18032025_16_13_41_6120.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/20b7a6bdb1c9a2fc82a7aad98005b1e2.jpg","text":"TemporaryFile(/tmp/multipartBody7638688359245472765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310872911,"filename":"image_18032025_16_13_35_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7aadcc5cb01226357f6e96ae51a0c21f.jpg","text":"TemporaryFile(/tmp/multipartBody7499268432805241380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310872911,"filename":"image_18032025_16_13_23_5834.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345159949","file1":"1345159944","file0":"1345159938","file4":"1345159959","file5":"1345159963","file3":"1345159954"},"map_files_photo_id_array":[{"photo_id":"1345159963","filename":"file5"},{"photo_id":"1345159949","filename":"file2"},{"photo_id":"1345159959","filename":"file4"},{"photo_id":"1345159944","filename":"file1"},{"photo_id":"1345159938","filename":"file0"},{"photo_id":"1345159954","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345159959":["hashtag1","hashtag2"]},{"1345159944":["hashtag1","hashtag2"]},{"1345159938":["hashtag1","hashtag2"]},{"1345159949":["hashtag1","hashtag2"]},{"1345159954":["hashtag1","hashtag2"]},{"1345159963":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345159959, 1345159944, 1345159938, 1345159949, 1345159954, 1345159963)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.31120157241821 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:14:32.573374
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_48_5857.jpg', 2), ('/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_42_6765.jpg', 2), ('/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_35_5800.jpg', 2), ('/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_29_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_23_5763.jpg', 2), ('/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_18_6082.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_48_5857.jpg', '/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_42_6765.jpg', '/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_35_5800.jpg', '/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_29_5847.jpg', '/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_23_5763.jpg', '/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_18_6082.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_48_5857.jpg
/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_42_6765.jpg
/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_35_5800.jpg
/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_29_5847.jpg
/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_23_5763.jpg
/home/nano/Desktop/images/18032025/16/14/image_18032025_16_14_18_6082.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345160017","1345160013","1345160030","1345160054","1345160021","1345160041"],"photo_ids_order":["1345160013","1345160017","1345160021","1345160030","1345160041","1345160054"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3e16561ef4d748c3f063f6de70010d76.jpg","text":"TemporaryFile(/tmp/multipartBody4326495155501256023asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310933022,"filename":"image_18032025_16_14_42_6765.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7733ae2c15eb6277335d43802db4919f.jpg","text":"TemporaryFile(/tmp/multipartBody7569495754715965130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310933022,"filename":"image_18032025_16_14_48_5857.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49e85d0d367e3adad389210335a3676b.jpg","text":"TemporaryFile(/tmp/multipartBody8448807692540526026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310933022,"filename":"image_18032025_16_14_29_5847.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a3e15db883ab7998203e42d083328cae.jpg","text":"TemporaryFile(/tmp/multipartBody4229260518823890480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310933022,"filename":"image_18032025_16_14_18_6082.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8fae97639603745ed57ca1198ef3a4ba.jpg","text":"TemporaryFile(/tmp/multipartBody4894118705019867441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310933022,"filename":"image_18032025_16_14_35_5800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0a4734da45f74e6efa1a6315e560f76f.jpg","text":"TemporaryFile(/tmp/multipartBody2158224624826881751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310933022,"filename":"image_18032025_16_14_23_5763.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345160021","file1":"1345160017","file0":"1345160013","file4":"1345160041","file5":"1345160054","file3":"1345160030"},"map_files_photo_id_array":[{"photo_id":"1345160054","filename":"file5"},{"photo_id":"1345160021","filename":"file2"},{"photo_id":"1345160041","filename":"file4"},{"photo_id":"1345160017","filename":"file1"},{"photo_id":"1345160013","filename":"file0"},{"photo_id":"1345160030","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345160017":["hashtag1","hashtag2"]},{"1345160013":["hashtag1","hashtag2"]},{"1345160030":["hashtag1","hashtag2"]},{"1345160054":["hashtag1","hashtag2"]},{"1345160021":["hashtag1","hashtag2"]},{"1345160041":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345160017, 1345160013, 1345160030, 1345160054, 1345160021, 1345160041)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.86549663543701 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:15:32.729235
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_53_5740.jpg', 2), ('/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_47_5764.jpg', 2), ('/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_42_6018.jpg', 2), ('/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_36_6019.jpg', 2), ('/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_30_6788.jpg', 2), ('/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_23_5749.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_53_5740.jpg', '/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_47_5764.jpg', '/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_42_6018.jpg', '/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_36_6019.jpg', '/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_30_6788.jpg', '/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_23_5749.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_53_5740.jpg
/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_47_5764.jpg
/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_42_6018.jpg
/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_36_6019.jpg
/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_30_6788.jpg
/home/nano/Desktop/images/18032025/16/15/image_18032025_16_15_23_5749.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345160125","1345160110","1345160091","1345160115","1345160106","1345160096"],"photo_ids_order":["1345160091","1345160096","1345160106","1345160110","1345160115","1345160125"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e51a5a1b6fb4fb0f5fbe7a66fe4db386.jpg","text":"TemporaryFile(/tmp/multipartBody3050937755280864052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310993153,"filename":"image_18032025_16_15_23_5749.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7944bdd1eed3a6fb46e2d54c33bbb8b7.jpg","text":"TemporaryFile(/tmp/multipartBody1262852066714513426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310993153,"filename":"image_18032025_16_15_36_6019.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e04268df7b59a453d78b59f39e98b94.jpg","text":"TemporaryFile(/tmp/multipartBody8968366821699722124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310993153,"filename":"image_18032025_16_15_53_5740.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ed2d94eec58412d7f39c0488fc2ef46.jpg","text":"TemporaryFile(/tmp/multipartBody156993373356907962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310993153,"filename":"image_18032025_16_15_30_6788.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84937f3c8ddf6aae85347abab955cec6.jpg","text":"TemporaryFile(/tmp/multipartBody2848031175524337138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310993153,"filename":"image_18032025_16_15_42_6018.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/37a2376f43c1db57c5c98c56dd05dc22.jpg","text":"TemporaryFile(/tmp/multipartBody4979604540729449586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742310993153,"filename":"image_18032025_16_15_47_5764.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345160106","file1":"1345160096","file0":"1345160091","file4":"1345160115","file5":"1345160125","file3":"1345160110"},"map_files_photo_id_array":[{"photo_id":"1345160125","filename":"file5"},{"photo_id":"1345160106","filename":"file2"},{"photo_id":"1345160115","filename":"file4"},{"photo_id":"1345160096","filename":"file1"},{"photo_id":"1345160091","filename":"file0"},{"photo_id":"1345160110","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345160125":["hashtag1","hashtag2"]},{"1345160110":["hashtag1","hashtag2"]},{"1345160091":["hashtag1","hashtag2"]},{"1345160115":["hashtag1","hashtag2"]},{"1345160106":["hashtag1","hashtag2"]},{"1345160096":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345160125, 1345160110, 1345160091, 1345160115, 1345160106, 1345160096)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.61825656890869 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:16:31.848106
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_54_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_48_6869.jpg', 2), ('/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_41_5932.jpg', 2), ('/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_35_5938.jpg', 2), ('/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_29_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_23_5633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_54_5894.jpg', '/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_48_6869.jpg', '/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_41_5932.jpg', '/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_35_5938.jpg', '/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_29_5658.jpg', '/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_23_5633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_54_5894.jpg
/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_48_6869.jpg
/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_41_5932.jpg
/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_35_5938.jpg
/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_29_5658.jpg
/home/nano/Desktop/images/18032025/16/16/image_18032025_16_16_23_5633.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345160169","1345160184","1345160189","1345160174","1345160179","1345160164"],"photo_ids_order":["1345160164","1345160169","1345160174","1345160179","1345160184","1345160189"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/09f6b2b0fa90baffa4c72cee03aab299.jpg","text":"TemporaryFile(/tmp/multipartBody4505874208743363437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311052247,"filename":"image_18032025_16_16_48_6869.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d7587e97bcad7e04727d02e4c73c0af8.jpg","text":"TemporaryFile(/tmp/multipartBody4053016787036201873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311052247,"filename":"image_18032025_16_16_29_5658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aa56e981c8b5fb98f07f7871affd9f3e.jpg","text":"TemporaryFile(/tmp/multipartBody3425247239031001444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311052247,"filename":"image_18032025_16_16_23_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f4837984c0ba576c2be20662a53eee6a.jpg","text":"TemporaryFile(/tmp/multipartBody8506432045838537990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311052247,"filename":"image_18032025_16_16_41_5932.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe832617388e4e79c6e8467c488070fa.jpg","text":"TemporaryFile(/tmp/multipartBody5288644086785106621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311052247,"filename":"image_18032025_16_16_35_5938.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ea277b28c0d950f96697b79c77987bc.jpg","text":"TemporaryFile(/tmp/multipartBody1797996941832915267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311052247,"filename":"image_18032025_16_16_54_5894.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345160174","file1":"1345160169","file0":"1345160164","file4":"1345160184","file5":"1345160189","file3":"1345160179"},"map_files_photo_id_array":[{"photo_id":"1345160189","filename":"file5"},{"photo_id":"1345160174","filename":"file2"},{"photo_id":"1345160184","filename":"file4"},{"photo_id":"1345160169","filename":"file1"},{"photo_id":"1345160164","filename":"file0"},{"photo_id":"1345160179","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345160169":["hashtag1","hashtag2"]},{"1345160184":["hashtag1","hashtag2"]},{"1345160189":["hashtag1","hashtag2"]},{"1345160174":["hashtag1","hashtag2"]},{"1345160179":["hashtag1","hashtag2"]},{"1345160164":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345160169, 1345160184, 1345160189, 1345160174, 1345160179, 1345160164)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.26957631111145 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:17:31.968784
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_54_6783.jpg', 2), ('/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_47_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_41_6018.jpg', 2), ('/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_35_5943.jpg', 2), ('/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_29_5888.jpg', 2), ('/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_23_5988.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_54_6783.jpg', '/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_47_5786.jpg', '/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_41_6018.jpg', '/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_35_5943.jpg', '/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_29_5888.jpg', '/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_23_5988.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_54_6783.jpg
/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_47_5786.jpg
/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_41_6018.jpg
/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_35_5943.jpg
/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_29_5888.jpg
/home/nano/Desktop/images/18032025/16/17/image_18032025_16_17_23_5988.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345160323","1345160442","1345160424","1345160340","1345160408","1345160377"],"photo_ids_order":["1345160323","1345160340","1345160377","1345160408","1345160424","1345160442"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0d3a6d58fc80d46f01102cce8f006500.jpg","text":"TemporaryFile(/tmp/multipartBody4163276175152241168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311112373,"filename":"image_18032025_16_17_54_6783.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca5cb26fe08b18845f6562a60587a44f.jpg","text":"TemporaryFile(/tmp/multipartBody4366075646925179843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311112373,"filename":"image_18032025_16_17_23_5988.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9a5756f3af90ecb7a91c8e2b06907b10.jpg","text":"TemporaryFile(/tmp/multipartBody5294151906607853379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311112373,"filename":"image_18032025_16_17_29_5888.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/79866abb5851ca2e33d1ef0d579e932e.jpg","text":"TemporaryFile(/tmp/multipartBody7947036799093940941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311112373,"filename":"image_18032025_16_17_47_5786.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a7236ea2826a077bc53860b5bf907599.jpg","text":"TemporaryFile(/tmp/multipartBody5705040548042852606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311112373,"filename":"image_18032025_16_17_35_5943.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a71b22c8cb17852701e699f3e868fed3.jpg","text":"TemporaryFile(/tmp/multipartBody7951197099544460820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311112373,"filename":"image_18032025_16_17_41_6018.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345160377","file1":"1345160340","file0":"1345160323","file4":"1345160424","file5":"1345160442","file3":"1345160408"},"map_files_photo_id_array":[{"photo_id":"1345160442","filename":"file5"},{"photo_id":"1345160377","filename":"file2"},{"photo_id":"1345160424","filename":"file4"},{"photo_id":"1345160340","filename":"file1"},{"photo_id":"1345160323","filename":"file0"},{"photo_id":"1345160408","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345160323":["hashtag1","hashtag2"]},{"1345160442":["hashtag1","hashtag2"]},{"1345160424":["hashtag1","hashtag2"]},{"1345160340":["hashtag1","hashtag2"]},{"1345160408":["hashtag1","hashtag2"]},{"1345160377":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345160323, 1345160442, 1345160424, 1345160340, 1345160408, 1345160377)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.7539119720459 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:18:32.089263
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_47_5825.jpg', 2), ('/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_41_5913.jpg', 2), ('/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_35_6088.jpg', 2), ('/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_29_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_23_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_17_5807.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_47_5825.jpg', '/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_41_5913.jpg', '/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_35_6088.jpg', '/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_29_6054.jpg', '/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_23_5838.jpg', '/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_17_5807.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_47_5825.jpg
/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_41_5913.jpg
/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_35_6088.jpg
/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_29_6054.jpg
/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_23_5838.jpg
/home/nano/Desktop/images/18032025/16/18/image_18032025_16_18_17_5807.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345160548","1345160552","1345160534","1345160543","1345160539","1345160530"],"photo_ids_order":["1345160530","1345160534","1345160539","1345160543","1345160548","1345160552"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b482d0ae104b9e633304b4add410ce0e.jpg","text":"TemporaryFile(/tmp/multipartBody625222077673144341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311172517,"filename":"image_18032025_16_18_23_5838.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4beb1af02053947c17a47d98dd3cf4ea.jpg","text":"TemporaryFile(/tmp/multipartBody6944887681017553423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311172517,"filename":"image_18032025_16_18_17_5807.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4215cbe8c459d8572fefb5235008aec4.jpg","text":"TemporaryFile(/tmp/multipartBody4288603351757597603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311172517,"filename":"image_18032025_16_18_41_5913.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3178117a901ffd5c31d1b2ec35c0604.jpg","text":"TemporaryFile(/tmp/multipartBody7873844331460503982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311172517,"filename":"image_18032025_16_18_29_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e7492e8044b7806aa4fb428d519a22bc.jpg","text":"TemporaryFile(/tmp/multipartBody4790727889270113074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311172517,"filename":"image_18032025_16_18_35_6088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be776f40a15c694134067b81f0d820ad.jpg","text":"TemporaryFile(/tmp/multipartBody1589927233283501537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311172517,"filename":"image_18032025_16_18_47_5825.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345160539","file1":"1345160534","file0":"1345160530","file4":"1345160548","file5":"1345160552","file3":"1345160543"},"map_files_photo_id_array":[{"photo_id":"1345160552","filename":"file5"},{"photo_id":"1345160539","filename":"file2"},{"photo_id":"1345160548","filename":"file4"},{"photo_id":"1345160534","filename":"file1"},{"photo_id":"1345160530","filename":"file0"},{"photo_id":"1345160543","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345160548":["hashtag1","hashtag2"]},{"1345160552":["hashtag1","hashtag2"]},{"1345160534":["hashtag1","hashtag2"]},{"1345160543":["hashtag1","hashtag2"]},{"1345160539":["hashtag1","hashtag2"]},{"1345160530":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345160548, 1345160552, 1345160534, 1345160543, 1345160539, 1345160530)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.4572389125824 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:19:32.174384
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_53_5990.jpg', 2), ('/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_47_5825.jpg', 2), ('/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_42_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_36_6008.jpg', 2), ('/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_30_5949.jpg', 2), ('/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_24_6007.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_53_5990.jpg', '/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_47_5825.jpg', '/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_42_5860.jpg', '/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_36_6008.jpg', '/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_30_5949.jpg', '/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_24_6007.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_53_5990.jpg
/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_47_5825.jpg
/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_42_5860.jpg
/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_36_6008.jpg
/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_30_5949.jpg
/home/nano/Desktop/images/18032025/16/19/image_18032025_16_19_24_6007.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345160565","1345160754","1345160585","1345160714","1345160560","1345160650"],"photo_ids_order":["1345160560","1345160565","1345160585","1345160650","1345160714","1345160754"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6bf304201c9bbbdb751883588fe6296c.jpg","text":"TemporaryFile(/tmp/multipartBody5476552502690500057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311232585,"filename":"image_18032025_16_19_47_5825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/20b88352cd41f518f3a248f744a99c27.jpg","text":"TemporaryFile(/tmp/multipartBody6124990220456879347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311232585,"filename":"image_18032025_16_19_24_6007.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a1af9375d5f829bb7752fd91e0cd080.jpg","text":"TemporaryFile(/tmp/multipartBody2573406928041401390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311232585,"filename":"image_18032025_16_19_42_5860.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4b30fcc3bd0c99ecf64003c1c5b118ce.jpg","text":"TemporaryFile(/tmp/multipartBody8117425486200086183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311232585,"filename":"image_18032025_16_19_30_5949.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/034646451eb7f205bf8bb9387d4e0449.jpg","text":"TemporaryFile(/tmp/multipartBody6435314704785818121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311232585,"filename":"image_18032025_16_19_53_5990.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/60689761450b0276ea774341d4d1bf19.jpg","text":"TemporaryFile(/tmp/multipartBody317337334106419019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311232585,"filename":"image_18032025_16_19_36_6008.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345160585","file1":"1345160565","file0":"1345160560","file4":"1345160714","file5":"1345160754","file3":"1345160650"},"map_files_photo_id_array":[{"photo_id":"1345160754","filename":"file5"},{"photo_id":"1345160585","filename":"file2"},{"photo_id":"1345160714","filename":"file4"},{"photo_id":"1345160565","filename":"file1"},{"photo_id":"1345160560","filename":"file0"},{"photo_id":"1345160650","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345160565":["hashtag1","hashtag2"]},{"1345160754":["hashtag1","hashtag2"]},{"1345160585":["hashtag1","hashtag2"]},{"1345160714":["hashtag1","hashtag2"]},{"1345160560":["hashtag1","hashtag2"]},{"1345160650":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345160565, 1345160754, 1345160585, 1345160714, 1345160560, 1345160650)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.79422664642334 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:20:32.303502
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_53_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_48_6682.jpg', 2), ('/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_41_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_35_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_29_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_23_5644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_53_5636.jpg', '/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_48_6682.jpg', '/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_41_5643.jpg', '/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_35_6637.jpg', '/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_29_5636.jpg', '/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_23_5644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_53_5636.jpg
/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_48_6682.jpg
/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_41_5643.jpg
/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_35_6637.jpg
/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_29_5636.jpg
/home/nano/Desktop/images/18032025/16/20/image_18032025_16_20_23_5644.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345160967","1345160928","1345160945","1345160906","1345160881","1345160956"],"photo_ids_order":["1345160881","1345160906","1345160928","1345160945","1345160956","1345160967"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/499f2efeaa31a5e3fd547516108596e1.jpg","text":"TemporaryFile(/tmp/multipartBody6794147056187984992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311292677,"filename":"image_18032025_16_20_23_5644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/20389c58f3011420aae4b6bd53545d32.jpg","text":"TemporaryFile(/tmp/multipartBody1017222712796505378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311292677,"filename":"image_18032025_16_20_41_5643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ea52277b9524133b17f07c72d0b8f7b.jpg","text":"TemporaryFile(/tmp/multipartBody1727268224325950054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311292677,"filename":"image_18032025_16_20_35_6637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2321ee76b7eb50e8b2573a90dc0048b3.jpg","text":"TemporaryFile(/tmp/multipartBody2655446538988236488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311292677,"filename":"image_18032025_16_20_48_6682.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f896ec6d9f7e631195ee16748d259aab.jpg","text":"TemporaryFile(/tmp/multipartBody1175891131882303281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311292677,"filename":"image_18032025_16_20_53_5636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/654867377df3afdc6ba95caab9d350f1.jpg","text":"TemporaryFile(/tmp/multipartBody398514614352575025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311292677,"filename":"image_18032025_16_20_29_5636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345160928","file1":"1345160906","file0":"1345160881","file4":"1345160956","file5":"1345160967","file3":"1345160945"},"map_files_photo_id_array":[{"photo_id":"1345160967","filename":"file5"},{"photo_id":"1345160928","filename":"file2"},{"photo_id":"1345160956","filename":"file4"},{"photo_id":"1345160906","filename":"file1"},{"photo_id":"1345160881","filename":"file0"},{"photo_id":"1345160945","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345160967":["hashtag1","hashtag2"]},{"1345160928":["hashtag1","hashtag2"]},{"1345160945":["hashtag1","hashtag2"]},{"1345160906":["hashtag1","hashtag2"]},{"1345160881":["hashtag1","hashtag2"]},{"1345160956":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345160967, 1345160928, 1345160945, 1345160906, 1345160881, 1345160956)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.94739770889282 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:21:32.441269
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_54_6628.jpg', 2), ('/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_47_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_42_6633.jpg', 2), ('/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_35_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_29_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_24_6649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_54_6628.jpg', '/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_47_5614.jpg', '/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_42_6633.jpg', '/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_35_5616.jpg', '/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_29_5634.jpg', '/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_24_6649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_54_6628.jpg
/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_47_5614.jpg
/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_42_6633.jpg
/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_35_5616.jpg
/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_29_5634.jpg
/home/nano/Desktop/images/18032025/16/21/image_18032025_16_21_24_6649.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345161041","1345161209","1345161023","1345161181","1345161136","1345161087"],"photo_ids_order":["1345161023","1345161041","1345161087","1345161136","1345161181","1345161209"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/452675636ef27698f43f852636b92542.jpg","text":"TemporaryFile(/tmp/multipartBody1074542905507903466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311352788,"filename":"image_18032025_16_21_47_5614.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e5051a81102c13019823103ac88aeb42.jpg","text":"TemporaryFile(/tmp/multipartBody3511778592905990703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311352788,"filename":"image_18032025_16_21_24_6649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1052f9b20bf3abb9c5f76853b108785c.jpg","text":"TemporaryFile(/tmp/multipartBody7913715579892150672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311352788,"filename":"image_18032025_16_21_54_6628.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6996f03223a13d577da93b11b58ebdb0.jpg","text":"TemporaryFile(/tmp/multipartBody5130558783912556638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311352788,"filename":"image_18032025_16_21_29_5634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/436b033e66120063c5e97288119ff897.jpg","text":"TemporaryFile(/tmp/multipartBody1217063382640305772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311352788,"filename":"image_18032025_16_21_35_5616.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e7aa5a71014d348ee47db4d1c284e23.jpg","text":"TemporaryFile(/tmp/multipartBody279117118486198519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311352788,"filename":"image_18032025_16_21_42_6633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345161087","file1":"1345161041","file0":"1345161023","file4":"1345161181","file5":"1345161209","file3":"1345161136"},"map_files_photo_id_array":[{"photo_id":"1345161209","filename":"file5"},{"photo_id":"1345161087","filename":"file2"},{"photo_id":"1345161181","filename":"file4"},{"photo_id":"1345161041","filename":"file1"},{"photo_id":"1345161023","filename":"file0"},{"photo_id":"1345161136","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345161041":["hashtag1","hashtag2"]},{"1345161209":["hashtag1","hashtag2"]},{"1345161023":["hashtag1","hashtag2"]},{"1345161181":["hashtag1","hashtag2"]},{"1345161136":["hashtag1","hashtag2"]},{"1345161087":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345161041, 1345161209, 1345161023, 1345161181, 1345161136, 1345161087)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.900838375091553 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:22:32.594144
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_54_6781.jpg', 2), ('/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_47_5791.jpg', 2), ('/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_41_5692.jpg', 2), ('/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_35_5739.jpg', 2), ('/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_30_6704.jpg', 2), ('/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_23_5648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_54_6781.jpg', '/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_47_5791.jpg', '/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_41_5692.jpg', '/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_35_5739.jpg', '/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_30_6704.jpg', '/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_23_5648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_54_6781.jpg
/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_47_5791.jpg
/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_41_5692.jpg
/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_35_5739.jpg
/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_30_6704.jpg
/home/nano/Desktop/images/18032025/16/22/image_18032025_16_22_23_5648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345161387","1345161392","1345161383","1345161347","1345161376","1345161396"],"photo_ids_order":["1345161347","1345161376","1345161383","1345161387","1345161392","1345161396"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b0bf79b9b8d3d9fe38aa3fc6c54e4042.jpg","text":"TemporaryFile(/tmp/multipartBody1840587717076740276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311413121,"filename":"image_18032025_16_22_35_5739.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/657e6d3a010e17cdcf3ce3c6e54881fc.jpg","text":"TemporaryFile(/tmp/multipartBody6121708408506505676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311413121,"filename":"image_18032025_16_22_30_6704.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9e6599002645d3897cf887a1e9377897.jpg","text":"TemporaryFile(/tmp/multipartBody1040867639260582129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311413121,"filename":"image_18032025_16_22_41_5692.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/06f9a73e0ac35261ac51c17812a7e101.jpg","text":"TemporaryFile(/tmp/multipartBody5881955431080590994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311413121,"filename":"image_18032025_16_22_54_6781.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c6d4f5becaf3d02f5d272a57ce39405.jpg","text":"TemporaryFile(/tmp/multipartBody620332286170819528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311413121,"filename":"image_18032025_16_22_47_5791.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/469aecb5f8c77290a9707d0019d896a3.jpg","text":"TemporaryFile(/tmp/multipartBody4309896949420179814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311413121,"filename":"image_18032025_16_22_23_5648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345161383","file1":"1345161376","file0":"1345161347","file4":"1345161392","file5":"1345161396","file3":"1345161387"},"map_files_photo_id_array":[{"photo_id":"1345161396","filename":"file5"},{"photo_id":"1345161383","filename":"file2"},{"photo_id":"1345161392","filename":"file4"},{"photo_id":"1345161376","filename":"file1"},{"photo_id":"1345161347","filename":"file0"},{"photo_id":"1345161387","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345161387":["hashtag1","hashtag2"]},{"1345161392":["hashtag1","hashtag2"]},{"1345161383":["hashtag1","hashtag2"]},{"1345161347":["hashtag1","hashtag2"]},{"1345161376":["hashtag1","hashtag2"]},{"1345161396":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345161387, 1345161392, 1345161383, 1345161347, 1345161376, 1345161396)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.93756556510925 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:23:32.710927
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_53_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_47_5735.jpg', 2), ('/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_42_5732.jpg', 2), ('/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_36_6775.jpg', 2), ('/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_29_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_23_6072.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_53_5621.jpg', '/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_47_5735.jpg', '/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_42_5732.jpg', '/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_36_6775.jpg', '/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_29_5685.jpg', '/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_23_6072.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_53_5621.jpg
/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_47_5735.jpg
/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_42_5732.jpg
/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_36_6775.jpg
/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_29_5685.jpg
/home/nano/Desktop/images/18032025/16/23/image_18032025_16_23_23_6072.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345161630","1345161633","1345161615","1345161620","1345161625","1345161610"],"photo_ids_order":["1345161610","1345161615","1345161620","1345161625","1345161630","1345161633"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/55fdb44d16e9e5205cc7317c13571a86.jpg","text":"TemporaryFile(/tmp/multipartBody6333610723857105868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311473182,"filename":"image_18032025_16_23_29_5685.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c6ef2043ea7aa451e15fd121ba05c4f.jpg","text":"TemporaryFile(/tmp/multipartBody3495812594696974418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311473182,"filename":"image_18032025_16_23_23_6072.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a154f26f8dc5d16d07983f60f5b4b4b.jpg","text":"TemporaryFile(/tmp/multipartBody651993812926338906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311473182,"filename":"image_18032025_16_23_47_5735.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/994ccbab9d1ab7f4f371225ac110636d.jpg","text":"TemporaryFile(/tmp/multipartBody1956389280993985022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311473182,"filename":"image_18032025_16_23_42_5732.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c3b9fef83a1dadee506dbd7e68009e21.jpg","text":"TemporaryFile(/tmp/multipartBody4601385671924001805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311473182,"filename":"image_18032025_16_23_36_6775.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c67df43e28ec3754a710646ebffb3497.jpg","text":"TemporaryFile(/tmp/multipartBody8829280198006185516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311473182,"filename":"image_18032025_16_23_53_5621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345161620","file1":"1345161615","file0":"1345161610","file4":"1345161630","file5":"1345161633","file3":"1345161625"},"map_files_photo_id_array":[{"photo_id":"1345161633","filename":"file5"},{"photo_id":"1345161620","filename":"file2"},{"photo_id":"1345161630","filename":"file4"},{"photo_id":"1345161615","filename":"file1"},{"photo_id":"1345161610","filename":"file0"},{"photo_id":"1345161625","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345161630":["hashtag1","hashtag2"]},{"1345161633":["hashtag1","hashtag2"]},{"1345161615":["hashtag1","hashtag2"]},{"1345161620":["hashtag1","hashtag2"]},{"1345161625":["hashtag1","hashtag2"]},{"1345161610":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345161630, 1345161633, 1345161615, 1345161620, 1345161625, 1345161610)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.187906503677368 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:24:31.871331
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_54_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_48_6112.jpg', 2), ('/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_42_6124.jpg', 2), ('/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_35_6100.jpg', 2), ('/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_29_6164.jpg', 2), ('/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_23_5696.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_54_6144.jpg', '/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_48_6112.jpg', '/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_42_6124.jpg', '/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_35_6100.jpg', '/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_29_6164.jpg', '/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_23_5696.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_54_6144.jpg
/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_48_6112.jpg
/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_42_6124.jpg
/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_35_6100.jpg
/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_29_6164.jpg
/home/nano/Desktop/images/18032025/16/24/image_18032025_16_24_23_5696.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345161674","1345161668","1345161683","1345161679","1345161661","1345161655"],"photo_ids_order":["1345161655","1345161661","1345161668","1345161674","1345161679","1345161683"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f8938de64703bf67ae46f8f6b6d373f6.jpg","text":"TemporaryFile(/tmp/multipartBody5518755374156010222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311532319,"filename":"image_18032025_16_24_35_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4aabcfef4276182f9724ace192d11971.jpg","text":"TemporaryFile(/tmp/multipartBody421286851758894576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311532319,"filename":"image_18032025_16_24_42_6124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/457d475a87510913cdc743c2bf9bd7d6.jpg","text":"TemporaryFile(/tmp/multipartBody5344806984074812068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311532319,"filename":"image_18032025_16_24_23_5696.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12a3f5d40234e1661ee5c1c283c952df.jpg","text":"TemporaryFile(/tmp/multipartBody6651835625481813412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311532319,"filename":"image_18032025_16_24_29_6164.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bcb818779e7244f64ca4abfd7d0847be.jpg","text":"TemporaryFile(/tmp/multipartBody428256476743063310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311532319,"filename":"image_18032025_16_24_48_6112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9e4df37c9864630b364ffc818adca547.jpg","text":"TemporaryFile(/tmp/multipartBody6136901842296097140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311532319,"filename":"image_18032025_16_24_54_6144.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345161668","file1":"1345161661","file0":"1345161655","file4":"1345161679","file5":"1345161683","file3":"1345161674"},"map_files_photo_id_array":[{"photo_id":"1345161683","filename":"file5"},{"photo_id":"1345161668","filename":"file2"},{"photo_id":"1345161679","filename":"file4"},{"photo_id":"1345161661","filename":"file1"},{"photo_id":"1345161655","filename":"file0"},{"photo_id":"1345161674","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345161674":["hashtag1","hashtag2"]},{"1345161668":["hashtag1","hashtag2"]},{"1345161683":["hashtag1","hashtag2"]},{"1345161679":["hashtag1","hashtag2"]},{"1345161661":["hashtag1","hashtag2"]},{"1345161655":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345161674, 1345161668, 1345161683, 1345161679, 1345161661, 1345161655)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.08344054222107 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:25:31.985472
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_53_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_47_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_41_6181.jpg', 2), ('/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_35_5137.jpg', 2), ('/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_30_6155.jpg', 2), ('/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_24_6147.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_53_6128.jpg', '/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_47_6151.jpg', '/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_41_6181.jpg', '/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_35_5137.jpg', '/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_30_6155.jpg', '/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_24_6147.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_53_6128.jpg
/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_47_6151.jpg
/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_41_6181.jpg
/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_35_5137.jpg
/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_30_6155.jpg
/home/nano/Desktop/images/18032025/16/25/image_18032025_16_25_24_6147.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345161744","1345161740","1345161728","1345161736","1345161730","1345161724"],"photo_ids_order":["1345161724","1345161728","1345161730","1345161736","1345161740","1345161744"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca83cc345cd2cff7b8e0923043de0c72.jpg","text":"TemporaryFile(/tmp/multipartBody4931735980662175777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311592623,"filename":"image_18032025_16_25_24_6147.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e074695586bc6a5f89639032f4eb3d2.jpg","text":"TemporaryFile(/tmp/multipartBody7239004973494672997asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311592623,"filename":"image_18032025_16_25_30_6155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a744f341eae77178bc9db82017c614c0.jpg","text":"TemporaryFile(/tmp/multipartBody5780036639582729682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311592623,"filename":"image_18032025_16_25_47_6151.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac5596a2cb8b2ba2a2cb2779de1d0c03.jpg","text":"TemporaryFile(/tmp/multipartBody2914237974027192410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311592623,"filename":"image_18032025_16_25_35_5137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9d2488ab1773877badab8a2c69e405a9.jpg","text":"TemporaryFile(/tmp/multipartBody3224594577502152348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311592623,"filename":"image_18032025_16_25_41_6181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e082672e20e3e69a250bd95064e65a46.jpg","text":"TemporaryFile(/tmp/multipartBody5027505865798092863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311592623,"filename":"image_18032025_16_25_53_6128.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345161730","file1":"1345161728","file0":"1345161724","file4":"1345161740","file5":"1345161744","file3":"1345161736"},"map_files_photo_id_array":[{"photo_id":"1345161744","filename":"file5"},{"photo_id":"1345161730","filename":"file2"},{"photo_id":"1345161740","filename":"file4"},{"photo_id":"1345161728","filename":"file1"},{"photo_id":"1345161724","filename":"file0"},{"photo_id":"1345161736","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345161744":["hashtag1","hashtag2"]},{"1345161740":["hashtag1","hashtag2"]},{"1345161728":["hashtag1","hashtag2"]},{"1345161736":["hashtag1","hashtag2"]},{"1345161730":["hashtag1","hashtag2"]},{"1345161724":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345161744, 1345161740, 1345161728, 1345161736, 1345161730, 1345161724)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.14509654045105 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:26:32.101341
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_54_6170.jpg', 2), ('/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_48_6138.jpg', 2), ('/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_41_6138.jpg', 2), ('/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_35_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_29_6139.jpg', 2), ('/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_23_6141.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_54_6170.jpg', '/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_48_6138.jpg', '/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_41_6138.jpg', '/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_35_6147.jpg', '/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_29_6139.jpg', '/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_23_6141.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_54_6170.jpg
/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_48_6138.jpg
/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_41_6138.jpg
/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_35_6147.jpg
/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_29_6139.jpg
/home/nano/Desktop/images/18032025/16/26/image_18032025_16_26_23_6141.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345161939","1345161998","1345162001","1345162004","1345161994","1345161970"],"photo_ids_order":["1345161939","1345161970","1345161994","1345161998","1345162001","1345162004"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/106b07b14a0ce300f13cb8ad4e8af657.jpg","text":"TemporaryFile(/tmp/multipartBody5986454920738918039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311652741,"filename":"image_18032025_16_26_54_6170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7132f540b8fafa3fe1cbb5fb948a85eb.jpg","text":"TemporaryFile(/tmp/multipartBody2059995283788920642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311652741,"filename":"image_18032025_16_26_35_6147.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/267f630f7cbfb80d7eb4278280a932a3.jpg","text":"TemporaryFile(/tmp/multipartBody6062800819372646600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311652741,"filename":"image_18032025_16_26_29_6139.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1711dd928eefdebb47882e078f08fbfb.jpg","text":"TemporaryFile(/tmp/multipartBody5356011638898414000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311652741,"filename":"image_18032025_16_26_23_6141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47c4fb863961989f2d735eb0ea1f8057.jpg","text":"TemporaryFile(/tmp/multipartBody5406323785411630590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311652741,"filename":"image_18032025_16_26_41_6138.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dda883ae7e71e0117ac6f6bb0dc66553.jpg","text":"TemporaryFile(/tmp/multipartBody9055178379829365769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311652741,"filename":"image_18032025_16_26_48_6138.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345161994","file1":"1345161970","file0":"1345161939","file4":"1345162001","file5":"1345162004","file3":"1345161998"},"map_files_photo_id_array":[{"photo_id":"1345162004","filename":"file5"},{"photo_id":"1345161994","filename":"file2"},{"photo_id":"1345162001","filename":"file4"},{"photo_id":"1345161970","filename":"file1"},{"photo_id":"1345161939","filename":"file0"},{"photo_id":"1345161998","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345161939":["hashtag1","hashtag2"]},{"1345161998":["hashtag1","hashtag2"]},{"1345162001":["hashtag1","hashtag2"]},{"1345162004":["hashtag1","hashtag2"]},{"1345161994":["hashtag1","hashtag2"]},{"1345161970":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345161939, 1345161998, 1345162001, 1345162004, 1345161994, 1345161970)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.074755907058716 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:27:32.233092
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_53_6175.jpg', 2), ('/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_47_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_41_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_35_5128.jpg', 2), ('/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_30_6171.jpg', 2), ('/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_24_6135.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_53_6175.jpg', '/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_47_6140.jpg', '/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_41_6145.jpg', '/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_35_5128.jpg', '/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_30_6171.jpg', '/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_24_6135.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_53_6175.jpg
/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_47_6140.jpg
/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_41_6145.jpg
/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_35_5128.jpg
/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_30_6171.jpg
/home/nano/Desktop/images/18032025/16/27/image_18032025_16_27_24_6135.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345162520","1345162459","1345162213","1345162479","1345162287","1345162368"],"photo_ids_order":["1345162213","1345162287","1345162368","1345162459","1345162479","1345162520"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62604d985c4a09f8356941d44690760d.jpg","text":"TemporaryFile(/tmp/multipartBody167502264607380252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311712850,"filename":"image_18032025_16_27_24_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/09bb4b59d4dc6445991f284baf2e7526.jpg","text":"TemporaryFile(/tmp/multipartBody234066698941892007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311712850,"filename":"image_18032025_16_27_35_5128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ccee616745b7c559792474ec5f97a5be.jpg","text":"TemporaryFile(/tmp/multipartBody3436469638018893110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311712850,"filename":"image_18032025_16_27_53_6175.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/701b228d3917cfd46035b102d57f036f.jpg","text":"TemporaryFile(/tmp/multipartBody1966186543530939273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311712850,"filename":"image_18032025_16_27_30_6171.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e51fd96d7a486ffc6fe82de327f860b4.jpg","text":"TemporaryFile(/tmp/multipartBody4230344046962070960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311712850,"filename":"image_18032025_16_27_47_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ab2d38bbe0ff21d4b48e9414890a7ba2.jpg","text":"TemporaryFile(/tmp/multipartBody7641130352381323310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311712850,"filename":"image_18032025_16_27_41_6145.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345162368","file1":"1345162287","file0":"1345162213","file4":"1345162479","file5":"1345162520","file3":"1345162459"},"map_files_photo_id_array":[{"photo_id":"1345162520","filename":"file5"},{"photo_id":"1345162368","filename":"file2"},{"photo_id":"1345162479","filename":"file4"},{"photo_id":"1345162287","filename":"file1"},{"photo_id":"1345162213","filename":"file0"},{"photo_id":"1345162459","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345162520":["hashtag1","hashtag2"]},{"1345162459":["hashtag1","hashtag2"]},{"1345162213":["hashtag1","hashtag2"]},{"1345162479":["hashtag1","hashtag2"]},{"1345162287":["hashtag1","hashtag2"]},{"1345162368":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345162520, 1345162459, 1345162213, 1345162479, 1345162287, 1345162368)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.76865005493164 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:28:32.348437
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_53_5136.jpg', 2), ('/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_48_6179.jpg', 2), ('/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_42_6154.jpg', 2), ('/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_35_6158.jpg', 2), ('/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_29_6155.jpg', 2), ('/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_23_6143.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_53_5136.jpg', '/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_48_6179.jpg', '/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_42_6154.jpg', '/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_35_6158.jpg', '/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_29_6155.jpg', '/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_23_6143.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_53_5136.jpg
/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_48_6179.jpg
/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_42_6154.jpg
/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_35_6158.jpg
/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_29_6155.jpg
/home/nano/Desktop/images/18032025/16/28/image_18032025_16_28_23_6143.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345162910","1345162901","1345162805","1345162906","1345162881","1345162851"],"photo_ids_order":["1345162805","1345162851","1345162881","1345162901","1345162906","1345162910"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e3884dc3445f2dccb2f91ad567ccbb2.jpg","text":"TemporaryFile(/tmp/multipartBody3704472955728008328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311772905,"filename":"image_18032025_16_28_23_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/513ba1dba622fae5837077b36e35582b.jpg","text":"TemporaryFile(/tmp/multipartBody593682129781149162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311772905,"filename":"image_18032025_16_28_35_6158.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c03d6153739e315126f6f7e69758c20.jpg","text":"TemporaryFile(/tmp/multipartBody7843600823552043203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311772905,"filename":"image_18032025_16_28_53_5136.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/16efa796fb1b3b741f046384cd23aabf.jpg","text":"TemporaryFile(/tmp/multipartBody7198787660112017868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311772905,"filename":"image_18032025_16_28_29_6155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1f0d33c53e4347079d6dfb7beae7de53.jpg","text":"TemporaryFile(/tmp/multipartBody2131366029052013938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311772905,"filename":"image_18032025_16_28_42_6154.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ea7b48523f9c518c52ecfab265776df.jpg","text":"TemporaryFile(/tmp/multipartBody4518390976051500436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311772905,"filename":"image_18032025_16_28_48_6179.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345162881","file1":"1345162851","file0":"1345162805","file4":"1345162906","file5":"1345162910","file3":"1345162901"},"map_files_photo_id_array":[{"photo_id":"1345162910","filename":"file5"},{"photo_id":"1345162881","filename":"file2"},{"photo_id":"1345162906","filename":"file4"},{"photo_id":"1345162851","filename":"file1"},{"photo_id":"1345162805","filename":"file0"},{"photo_id":"1345162901","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345162910":["hashtag1","hashtag2"]},{"1345162901":["hashtag1","hashtag2"]},{"1345162805":["hashtag1","hashtag2"]},{"1345162906":["hashtag1","hashtag2"]},{"1345162881":["hashtag1","hashtag2"]},{"1345162851":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345162910, 1345162901, 1345162805, 1345162906, 1345162881, 1345162851)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.89540958404541 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:29:32.512727
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_54_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_47_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_41_6143.jpg', 2), ('/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_35_6184.jpg', 2), ('/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_29_5139.jpg', 2), ('/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_24_6150.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_54_6153.jpg', '/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_47_6153.jpg', '/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_41_6143.jpg', '/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_35_6184.jpg', '/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_29_5139.jpg', '/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_24_6150.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_54_6153.jpg
/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_47_6153.jpg
/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_41_6143.jpg
/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_35_6184.jpg
/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_29_5139.jpg
/home/nano/Desktop/images/18032025/16/29/image_18032025_16_29_24_6150.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345162985","1345163032","1345162995","1345163025","1345163037","1345163022"],"photo_ids_order":["1345162985","1345162995","1345163022","1345163025","1345163032","1345163037"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0846be5b5cba1e0f49185e179bf8823c.jpg","text":"TemporaryFile(/tmp/multipartBody2138347462634133265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311833059,"filename":"image_18032025_16_29_54_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9e5de36efabc4ba5ab7c61b4410171bb.jpg","text":"TemporaryFile(/tmp/multipartBody7090551281158827334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311833059,"filename":"image_18032025_16_29_29_5139.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb321d230e85edf5bd60bea10acd8d4d.jpg","text":"TemporaryFile(/tmp/multipartBody8013137806386209550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311833059,"filename":"image_18032025_16_29_47_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b40020580d0e8fa6c0de3867f8f357d4.jpg","text":"TemporaryFile(/tmp/multipartBody8212572032761904224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311833059,"filename":"image_18032025_16_29_35_6184.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ebed3000b9dec2c352a85500c33e6584.jpg","text":"TemporaryFile(/tmp/multipartBody6204612138484203673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311833059,"filename":"image_18032025_16_29_24_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63433acbadac94eb9beee497dd72c09d.jpg","text":"TemporaryFile(/tmp/multipartBody6042308693071089858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311833059,"filename":"image_18032025_16_29_41_6143.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345163022","file1":"1345162995","file0":"1345162985","file4":"1345163032","file5":"1345163037","file3":"1345163025"},"map_files_photo_id_array":[{"photo_id":"1345163037","filename":"file5"},{"photo_id":"1345163022","filename":"file2"},{"photo_id":"1345163032","filename":"file4"},{"photo_id":"1345162995","filename":"file1"},{"photo_id":"1345162985","filename":"file0"},{"photo_id":"1345163025","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345162985":["hashtag1","hashtag2"]},{"1345163032":["hashtag1","hashtag2"]},{"1345162995":["hashtag1","hashtag2"]},{"1345163025":["hashtag1","hashtag2"]},{"1345163037":["hashtag1","hashtag2"]},{"1345163022":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345162985, 1345163032, 1345162995, 1345163025, 1345163037, 1345163022)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.45443630218506 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:31:03.108233
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_53_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_47_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_41_5146.jpg', 2), ('/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_36_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_30_6146.jpg', 2), ('/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_23_6155.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_53_6153.jpg', '/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_47_6153.jpg', '/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_41_5146.jpg', '/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_36_6152.jpg', '/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_30_6146.jpg', '/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_23_6155.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_53_6153.jpg
/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_47_6153.jpg
/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_41_5146.jpg
/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_36_6152.jpg
/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_30_6146.jpg
/home/nano/Desktop/images/18032025/16/30/image_18032025_16_30_23_6155.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345163057","1345163150","1345163053","1345163088","1345163061","1345163118"],"photo_ids_order":["1345163053","1345163057","1345163061","1345163088","1345163118","1345163150"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b81c52ce68c1e212415ef18cb49b052a.jpg","text":"TemporaryFile(/tmp/multipartBody2697681671464383220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311923587,"filename":"image_18032025_16_30_47_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b0c0e5c2760ba3acd61f0e208b79131b.jpg","text":"TemporaryFile(/tmp/multipartBody8202211095659707532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311923587,"filename":"image_18032025_16_30_23_6155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/60dd9af8a32bbf011481f519a8db501b.jpg","text":"TemporaryFile(/tmp/multipartBody2410780711993698313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311923587,"filename":"image_18032025_16_30_53_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/723ef258873e47af9e16f0ccc78f05b3.jpg","text":"TemporaryFile(/tmp/multipartBody5827292208597182873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311923587,"filename":"image_18032025_16_30_36_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd2097b9ca6448ddec5a7de4a8102107.jpg","text":"TemporaryFile(/tmp/multipartBody5664799358856804853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311923587,"filename":"image_18032025_16_30_41_5146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1fb7b3071d436045a1ed2dd8c5c1ac3e.jpg","text":"TemporaryFile(/tmp/multipartBody6712946917666211049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311923587,"filename":"image_18032025_16_30_30_6146.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345163061","file1":"1345163057","file0":"1345163053","file4":"1345163118","file5":"1345163150","file3":"1345163088"},"map_files_photo_id_array":[{"photo_id":"1345163150","filename":"file5"},{"photo_id":"1345163061","filename":"file2"},{"photo_id":"1345163118","filename":"file4"},{"photo_id":"1345163057","filename":"file1"},{"photo_id":"1345163053","filename":"file0"},{"photo_id":"1345163088","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345163057":["hashtag1","hashtag2"]},{"1345163150":["hashtag1","hashtag2"]},{"1345163053":["hashtag1","hashtag2"]},{"1345163088":["hashtag1","hashtag2"]},{"1345163061":["hashtag1","hashtag2"]},{"1345163118":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345163057, 1345163150, 1345163053, 1345163088, 1345163061, 1345163118)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.17091131210327 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:32:02.187770
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_54_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_48_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_41_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_35_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_29_6156.jpg', 2), ('/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_23_5148.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_54_6150.jpg', '/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_48_6147.jpg', '/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_41_6153.jpg', '/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_35_6150.jpg', '/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_29_6156.jpg', '/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_23_5148.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_54_6150.jpg
/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_48_6147.jpg
/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_41_6153.jpg
/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_35_6150.jpg
/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_29_6156.jpg
/home/nano/Desktop/images/18032025/16/31/image_18032025_16_31_23_5148.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345163549","1345163618","1345163647","1345163496","1345163583","1345163673"],"photo_ids_order":["1345163496","1345163549","1345163583","1345163618","1345163647","1345163673"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/beb741fc53626a42fe3b0151f6a9059d.jpg","text":"TemporaryFile(/tmp/multipartBody4325368423536883512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311982666,"filename":"image_18032025_16_31_48_6147.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a91ee4cd1125f8e9caabb9137a5a3f26.jpg","text":"TemporaryFile(/tmp/multipartBody6149500790098664666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311982666,"filename":"image_18032025_16_31_35_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f56acb54304e178632556fcc878db821.jpg","text":"TemporaryFile(/tmp/multipartBody4602726023768191726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311982666,"filename":"image_18032025_16_31_29_6156.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be398a11d751cc6e0fedb04024da22e7.jpg","text":"TemporaryFile(/tmp/multipartBody6496697678951969653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311982666,"filename":"image_18032025_16_31_54_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6161e6180d58f90c47ab3970377b24d1.jpg","text":"TemporaryFile(/tmp/multipartBody4256893804836129621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311982666,"filename":"image_18032025_16_31_41_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/22736ede76844bfb42e2385c2c3de3bd.jpg","text":"TemporaryFile(/tmp/multipartBody6922256104966958022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742311982666,"filename":"image_18032025_16_31_23_5148.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345163583","file1":"1345163549","file0":"1345163496","file4":"1345163647","file5":"1345163673","file3":"1345163618"},"map_files_photo_id_array":[{"photo_id":"1345163673","filename":"file5"},{"photo_id":"1345163583","filename":"file2"},{"photo_id":"1345163647","filename":"file4"},{"photo_id":"1345163549","filename":"file1"},{"photo_id":"1345163496","filename":"file0"},{"photo_id":"1345163618","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345163549":["hashtag1","hashtag2"]},{"1345163618":["hashtag1","hashtag2"]},{"1345163647":["hashtag1","hashtag2"]},{"1345163496":["hashtag1","hashtag2"]},{"1345163583":["hashtag1","hashtag2"]},{"1345163673":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345163549, 1345163618, 1345163647, 1345163496, 1345163583, 1345163673)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.848878860473633 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:33:02.473670
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_53_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_47_6146.jpg', 2), ('/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_41_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_35_5142.jpg', 2), ('/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_30_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_24_6152.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_53_6150.jpg', '/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_47_6146.jpg', '/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_41_6153.jpg', '/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_35_5142.jpg', '/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_30_6153.jpg', '/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_24_6152.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_53_6150.jpg
/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_47_6146.jpg
/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_41_6153.jpg
/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_35_5142.jpg
/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_30_6153.jpg
/home/nano/Desktop/images/18032025/16/32/image_18032025_16_32_24_6152.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345163983","1345163986","1345164016","1345163968","1345163979","1345163990"],"photo_ids_order":["1345163968","1345163979","1345163983","1345163986","1345163990","1345164016"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1673fde51a860ec50cb4e94002eac0a3.jpg","text":"TemporaryFile(/tmp/multipartBody3563096286474713028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312042928,"filename":"image_18032025_16_32_41_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f411831f24017b60612708ba9efefeff.jpg","text":"TemporaryFile(/tmp/multipartBody5604785963749135034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312042928,"filename":"image_18032025_16_32_35_5142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fdee4806d69fe50bac11ac899d7ce000.jpg","text":"TemporaryFile(/tmp/multipartBody2878408632768970330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312042928,"filename":"image_18032025_16_32_24_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aebbb337cc4fe066e27e179c9f484643.jpg","text":"TemporaryFile(/tmp/multipartBody6699425367664767616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312042928,"filename":"image_18032025_16_32_53_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/32cb0e783aac3d5842c8df49ae2fb631.jpg","text":"TemporaryFile(/tmp/multipartBody6439066672592025209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312042928,"filename":"image_18032025_16_32_47_6146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ee2f28137a586c509a8b4b336aff472.jpg","text":"TemporaryFile(/tmp/multipartBody6034477239179940766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312042928,"filename":"image_18032025_16_32_30_6153.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345163983","file1":"1345163979","file0":"1345163968","file4":"1345163990","file5":"1345164016","file3":"1345163986"},"map_files_photo_id_array":[{"photo_id":"1345164016","filename":"file5"},{"photo_id":"1345163983","filename":"file2"},{"photo_id":"1345163990","filename":"file4"},{"photo_id":"1345163979","filename":"file1"},{"photo_id":"1345163968","filename":"file0"},{"photo_id":"1345163986","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345163983":["hashtag1","hashtag2"]},{"1345163986":["hashtag1","hashtag2"]},{"1345164016":["hashtag1","hashtag2"]},{"1345163968":["hashtag1","hashtag2"]},{"1345163979":["hashtag1","hashtag2"]},{"1345163990":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345163983, 1345163986, 1345164016, 1345163968, 1345163979, 1345163990)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.908812046051025 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:34:02.758713
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_53_5149.jpg', 2), ('/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_48_6176.jpg', 2), ('/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_42_6177.jpg', 2), ('/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_35_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_29_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_23_6188.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_53_5149.jpg', '/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_48_6176.jpg', '/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_42_6177.jpg', '/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_35_6151.jpg', '/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_29_6145.jpg', '/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_23_6188.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_53_5149.jpg
/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_48_6176.jpg
/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_42_6177.jpg
/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_35_6151.jpg
/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_29_6145.jpg
/home/nano/Desktop/images/18032025/16/33/image_18032025_16_33_23_6188.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3818798065185547 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:34:32.120217
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_54_6185.jpg', 2), ('/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_47_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_41_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_35_6186.jpg', 2), ('/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_29_5142.jpg', 2), ('/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_24_6162.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_54_6185.jpg', '/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_47_6150.jpg', '/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_41_6153.jpg', '/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_35_6186.jpg', '/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_29_5142.jpg', '/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_24_6162.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_54_6185.jpg
/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_47_6150.jpg
/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_41_6153.jpg
/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_35_6186.jpg
/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_29_5142.jpg
/home/nano/Desktop/images/18032025/16/34/image_18032025_16_34_24_6162.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345164445","1345164418","1345164450","1345164453","1345164447","1345164455"],"photo_ids_order":["1345164418","1345164445","1345164447","1345164450","1345164453","1345164455"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fdb33df2d6c9838d35ec5919d3b15a33.jpg","text":"TemporaryFile(/tmp/multipartBody3158636897679638012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312132588,"filename":"image_18032025_16_34_47_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49b840483654715ba207103d4a0a04c9.jpg","text":"TemporaryFile(/tmp/multipartBody3043866336330162390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312132588,"filename":"image_18032025_16_34_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/3/18/ebcc096a63498ba5ca61b9c220f945de.jpg","text":"TemporaryFile(/tmp/multipartBody6344783561043765521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312132588,"filename":"image_18032025_16_34_35_6186.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d85a3a0c29faaf6689a5d24c4cbc424a.jpg","text":"TemporaryFile(/tmp/multipartBody3374625606142670351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312132588,"filename":"image_18032025_16_34_29_5142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/74a0eae8d476ca3d944fae441f8fa60a.jpg","text":"TemporaryFile(/tmp/multipartBody8408765397769950634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312132588,"filename":"image_18032025_16_34_41_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/98ebd4e61549a7a13f65d87cf2b06274.jpg","text":"TemporaryFile(/tmp/multipartBody8212304810852864886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312132588,"filename":"image_18032025_16_34_24_6162.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345164447","file1":"1345164445","file0":"1345164418","file4":"1345164453","file5":"1345164455","file3":"1345164450"},"map_files_photo_id_array":[{"photo_id":"1345164455","filename":"file5"},{"photo_id":"1345164447","filename":"file2"},{"photo_id":"1345164453","filename":"file4"},{"photo_id":"1345164445","filename":"file1"},{"photo_id":"1345164418","filename":"file0"},{"photo_id":"1345164450","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345164445":["hashtag1","hashtag2"]},{"1345164418":["hashtag1","hashtag2"]},{"1345164450":["hashtag1","hashtag2"]},{"1345164453":["hashtag1","hashtag2"]},{"1345164447":["hashtag1","hashtag2"]},{"1345164455":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345164445, 1345164418, 1345164450, 1345164453, 1345164447, 1345164455)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.233288526535034 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:35:32.217421
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_53_6183.jpg', 2), ('/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_47_6188.jpg', 2), ('/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_41_5142.jpg', 2), ('/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_36_6154.jpg', 2), ('/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_30_6154.jpg', 2), ('/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_23_6160.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_53_6183.jpg', '/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_47_6188.jpg', '/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_41_5142.jpg', '/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_36_6154.jpg', '/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_30_6154.jpg', '/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_23_6160.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_53_6183.jpg
/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_47_6188.jpg
/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_41_5142.jpg
/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_36_6154.jpg
/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_30_6154.jpg
/home/nano/Desktop/images/18032025/16/35/image_18032025_16_35_23_6160.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345164547","1345164640","1345164562","1345164606","1345164689","1345164578"],"photo_ids_order":["1345164547","1345164562","1345164578","1345164606","1345164640","1345164689"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0844a01df98974148ee78b70c905d65d.jpg","text":"TemporaryFile(/tmp/multipartBody5404762669226515623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312192678,"filename":"image_18032025_16_35_53_6183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3c4c4c3d60717e2a5d21b4cf8810056e.jpg","text":"TemporaryFile(/tmp/multipartBody4380595503756541605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312192678,"filename":"image_18032025_16_35_30_6154.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9f12442eeff69d81de2e2d8d6c5e698.jpg","text":"TemporaryFile(/tmp/multipartBody6049787400627361050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312192678,"filename":"image_18032025_16_35_47_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7b2a866a0bb2827bfa81da26230aeee6.jpg","text":"TemporaryFile(/tmp/multipartBody2536228561463389834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312192678,"filename":"image_18032025_16_35_36_6154.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0fc84e406fae172d253c45119f61c358.jpg","text":"TemporaryFile(/tmp/multipartBody1224659984730831909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312192678,"filename":"image_18032025_16_35_23_6160.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d704f84e29bd9a9d3a651e696882d1e8.jpg","text":"TemporaryFile(/tmp/multipartBody813201725343833433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312192678,"filename":"image_18032025_16_35_41_5142.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345164578","file1":"1345164562","file0":"1345164547","file4":"1345164640","file5":"1345164689","file3":"1345164606"},"map_files_photo_id_array":[{"photo_id":"1345164689","filename":"file5"},{"photo_id":"1345164578","filename":"file2"},{"photo_id":"1345164640","filename":"file4"},{"photo_id":"1345164562","filename":"file1"},{"photo_id":"1345164547","filename":"file0"},{"photo_id":"1345164606","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345164547":["hashtag1","hashtag2"]},{"1345164640":["hashtag1","hashtag2"]},{"1345164562":["hashtag1","hashtag2"]},{"1345164606":["hashtag1","hashtag2"]},{"1345164689":["hashtag1","hashtag2"]},{"1345164578":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345164547, 1345164640, 1345164562, 1345164606, 1345164689, 1345164578)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.1196608543396 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:36:32.313870
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_54_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_48_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_42_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_35_6143.jpg', 2), ('/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_29_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_23_6149.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_54_6142.jpg', '/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_48_6140.jpg', '/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_42_6142.jpg', '/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_35_6143.jpg', '/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_29_6147.jpg', '/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_23_6149.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_54_6142.jpg
/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_48_6140.jpg
/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_42_6142.jpg
/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_35_6143.jpg
/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_29_6147.jpg
/home/nano/Desktop/images/18032025/16/36/image_18032025_16_36_23_6149.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345164938","1345164988","1345165012","1345164966","1345164977","1345164914"],"photo_ids_order":["1345164914","1345164938","1345164966","1345164977","1345164988","1345165012"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3dc9dcdb831b1b5c6f5c025455a3250b.jpg","text":"TemporaryFile(/tmp/multipartBody7901675876643286237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312252782,"filename":"image_18032025_16_36_48_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ce0a4fca331884bfb9bcbac80d540b0.jpg","text":"TemporaryFile(/tmp/multipartBody61357122523374098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312252782,"filename":"image_18032025_16_36_29_6147.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27bd021a9ea41974ba566cdfb5e151bc.jpg","text":"TemporaryFile(/tmp/multipartBody3434802678422050753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312252782,"filename":"image_18032025_16_36_23_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/15ef6649a4b81e943e2c6eefc31f3f44.jpg","text":"TemporaryFile(/tmp/multipartBody1655942227410116305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312252782,"filename":"image_18032025_16_36_42_6142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d8c2d9f9395dca5b7010b90f91a00e71.jpg","text":"TemporaryFile(/tmp/multipartBody6736708345515068017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312252782,"filename":"image_18032025_16_36_35_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/75d7e4ce02fc5c8514e62657ad28ad4d.jpg","text":"TemporaryFile(/tmp/multipartBody4201773511025835976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312252782,"filename":"image_18032025_16_36_54_6142.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345164966","file1":"1345164938","file0":"1345164914","file4":"1345164988","file5":"1345165012","file3":"1345164977"},"map_files_photo_id_array":[{"photo_id":"1345165012","filename":"file5"},{"photo_id":"1345164966","filename":"file2"},{"photo_id":"1345164988","filename":"file4"},{"photo_id":"1345164938","filename":"file1"},{"photo_id":"1345164914","filename":"file0"},{"photo_id":"1345164977","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345164938":["hashtag1","hashtag2"]},{"1345164988":["hashtag1","hashtag2"]},{"1345165012":["hashtag1","hashtag2"]},{"1345164966":["hashtag1","hashtag2"]},{"1345164977":["hashtag1","hashtag2"]},{"1345164914":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345164938, 1345164988, 1345165012, 1345164966, 1345164977, 1345164914)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.651511430740356 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:37:32.531123
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_53_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_47_6143.jpg', 2), ('/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_41_6175.jpg', 2), ('/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_35_5137.jpg', 2), ('/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_30_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_24_6176.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_53_6141.jpg', '/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_47_6143.jpg', '/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_41_6175.jpg', '/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_35_5137.jpg', '/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_30_6147.jpg', '/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_24_6176.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_53_6141.jpg
/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_47_6143.jpg
/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_41_6175.jpg
/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_35_5137.jpg
/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_30_6147.jpg
/home/nano/Desktop/images/18032025/16/37/image_18032025_16_37_24_6176.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345165177","1345165149","1345165154","1345165145","1345165118","1345165165"],"photo_ids_order":["1345165118","1345165145","1345165149","1345165154","1345165165","1345165177"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ab323a87bbc9958d525c86a5d84d090.jpg","text":"TemporaryFile(/tmp/multipartBody5868616800621295231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312312984,"filename":"image_18032025_16_37_24_6176.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63adb805761781f6e3b09416a2aca447.jpg","text":"TemporaryFile(/tmp/multipartBody4856531765559430531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312312984,"filename":"image_18032025_16_37_41_6175.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/70840794f3b4ef0f249322e78df30559.jpg","text":"TemporaryFile(/tmp/multipartBody6147489460879188764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312312984,"filename":"image_18032025_16_37_35_5137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d7d16036e33e5447cede13ba9478e92.jpg","text":"TemporaryFile(/tmp/multipartBody2898945170076851114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312312984,"filename":"image_18032025_16_37_47_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2546a57bc11374bc7cc721f1aac878d9.jpg","text":"TemporaryFile(/tmp/multipartBody3036371678140348115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312312984,"filename":"image_18032025_16_37_53_6141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6b68140f8c5d0c70d4a40901f204c575.jpg","text":"TemporaryFile(/tmp/multipartBody527276400029407988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312312984,"filename":"image_18032025_16_37_30_6147.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345165149","file1":"1345165145","file0":"1345165118","file4":"1345165165","file5":"1345165177","file3":"1345165154"},"map_files_photo_id_array":[{"photo_id":"1345165177","filename":"file5"},{"photo_id":"1345165149","filename":"file2"},{"photo_id":"1345165165","filename":"file4"},{"photo_id":"1345165145","filename":"file1"},{"photo_id":"1345165118","filename":"file0"},{"photo_id":"1345165154","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345165177":["hashtag1","hashtag2"]},{"1345165149":["hashtag1","hashtag2"]},{"1345165154":["hashtag1","hashtag2"]},{"1345165145":["hashtag1","hashtag2"]},{"1345165118":["hashtag1","hashtag2"]},{"1345165165":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345165177, 1345165149, 1345165154, 1345165145, 1345165118, 1345165165)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.622896909713745 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:38:32.660469
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_48_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_42_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_35_6129.jpg', 2), ('/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_29_6136.jpg', 2), ('/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_23_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_17_6144.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_48_6140.jpg', '/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_42_6140.jpg', '/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_35_6129.jpg', '/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_29_6136.jpg', '/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_23_6144.jpg', '/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_17_6144.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_48_6140.jpg
/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_42_6140.jpg
/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_35_6129.jpg
/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_29_6136.jpg
/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_23_6144.jpg
/home/nano/Desktop/images/18032025/16/38/image_18032025_16_38_17_6144.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345165354","1345165333","1345165405","1345165397","1345165381","1345165400"],"photo_ids_order":["1345165333","1345165354","1345165381","1345165397","1345165400","1345165405"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3225f927df929cd336ec3bd0a7c5647a.jpg","text":"TemporaryFile(/tmp/multipartBody5316777896512194549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312373130,"filename":"image_18032025_16_38_42_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f22376938bf269838b2faa8ec628d381.jpg","text":"TemporaryFile(/tmp/multipartBody5103783228561618330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312373130,"filename":"image_18032025_16_38_48_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b12ad865c30ef89d02285350e81df713.jpg","text":"TemporaryFile(/tmp/multipartBody8180275129731841960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312373130,"filename":"image_18032025_16_38_17_6144.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b11d0450eb918c047fd7fddaba0a913a.jpg","text":"TemporaryFile(/tmp/multipartBody4831267808460835594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312373130,"filename":"image_18032025_16_38_29_6136.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d1aac8824f50f75848a7a59c1d5ca386.jpg","text":"TemporaryFile(/tmp/multipartBody5541985554802481136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312373130,"filename":"image_18032025_16_38_35_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4bb18c930329552f029e7ccbfd57f8c5.jpg","text":"TemporaryFile(/tmp/multipartBody7513371689642164527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312373130,"filename":"image_18032025_16_38_23_6144.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345165381","file1":"1345165354","file0":"1345165333","file4":"1345165400","file5":"1345165405","file3":"1345165397"},"map_files_photo_id_array":[{"photo_id":"1345165405","filename":"file5"},{"photo_id":"1345165381","filename":"file2"},{"photo_id":"1345165400","filename":"file4"},{"photo_id":"1345165354","filename":"file1"},{"photo_id":"1345165333","filename":"file0"},{"photo_id":"1345165397","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345165354":["hashtag1","hashtag2"]},{"1345165333":["hashtag1","hashtag2"]},{"1345165405":["hashtag1","hashtag2"]},{"1345165397":["hashtag1","hashtag2"]},{"1345165381":["hashtag1","hashtag2"]},{"1345165400":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345165354, 1345165333, 1345165405, 1345165397, 1345165381, 1345165400)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.19180488586426 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:39:31.756508
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_53_6172.jpg', 2), ('/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_47_6131.jpg', 2), ('/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_41_6139.jpg', 2), ('/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_35_5134.jpg', 2), ('/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_30_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_24_6140.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_53_6172.jpg', '/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_47_6131.jpg', '/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_41_6139.jpg', '/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_35_5134.jpg', '/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_30_6134.jpg', '/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_24_6140.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_53_6172.jpg
/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_47_6131.jpg
/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_41_6139.jpg
/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_35_5134.jpg
/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_30_6134.jpg
/home/nano/Desktop/images/18032025/16/39/image_18032025_16_39_24_6140.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345165579","1345165570","1345165558","1345165519","1345165540","1345165545"],"photo_ids_order":["1345165519","1345165540","1345165545","1345165558","1345165570","1345165579"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/902c7cef335e1aa8222788ef37745e22.jpg","text":"TemporaryFile(/tmp/multipartBody4048073658142467469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312432208,"filename":"image_18032025_16_39_24_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1dad5804acf23f682f8b5b6197b1a1d8.jpg","text":"TemporaryFile(/tmp/multipartBody3696233859989675869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312432208,"filename":"image_18032025_16_39_30_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8a0d6dee8c35b975b991c4c865951414.jpg","text":"TemporaryFile(/tmp/multipartBody5780050700110204630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312432208,"filename":"image_18032025_16_39_35_5134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8ea8afc580a59b19dbd39beaa83d3d0b.jpg","text":"TemporaryFile(/tmp/multipartBody503063701631998186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312432208,"filename":"image_18032025_16_39_53_6172.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2e4c703e0c5745086c8ee0108f63f8c3.jpg","text":"TemporaryFile(/tmp/multipartBody4660602182006025368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312432208,"filename":"image_18032025_16_39_47_6131.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/048b3e19c0cc4b334f2a31dbfec8853b.jpg","text":"TemporaryFile(/tmp/multipartBody1946350091201835619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312432208,"filename":"image_18032025_16_39_41_6139.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345165545","file1":"1345165540","file0":"1345165519","file4":"1345165570","file5":"1345165579","file3":"1345165558"},"map_files_photo_id_array":[{"photo_id":"1345165579","filename":"file5"},{"photo_id":"1345165545","filename":"file2"},{"photo_id":"1345165570","filename":"file4"},{"photo_id":"1345165540","filename":"file1"},{"photo_id":"1345165519","filename":"file0"},{"photo_id":"1345165558","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345165579":["hashtag1","hashtag2"]},{"1345165570":["hashtag1","hashtag2"]},{"1345165558":["hashtag1","hashtag2"]},{"1345165519":["hashtag1","hashtag2"]},{"1345165540":["hashtag1","hashtag2"]},{"1345165545":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345165579, 1345165570, 1345165558, 1345165519, 1345165540, 1345165545)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.10933971405029 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:40:31.881345
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_53_5123.jpg', 2), ('/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_48_6133.jpg', 2), ('/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_42_6171.jpg', 2), ('/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_35_6172.jpg', 2), ('/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_29_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_23_6143.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_53_5123.jpg', '/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_48_6133.jpg', '/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_42_6171.jpg', '/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_35_6172.jpg', '/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_29_6140.jpg', '/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_23_6143.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_53_5123.jpg
/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_48_6133.jpg
/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_42_6171.jpg
/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_35_6172.jpg
/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_29_6140.jpg
/home/nano/Desktop/images/18032025/16/40/image_18032025_16_40_23_6143.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345165636","1345165612","1345165621","1345165626","1345165631","1345165616"],"photo_ids_order":["1345165612","1345165616","1345165621","1345165626","1345165631","1345165636"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/53add676c2cd8a2f48eeeb263755f49c.jpg","text":"TemporaryFile(/tmp/multipartBody41078874381439699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312492385,"filename":"image_18032025_16_40_23_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3088aecd25c3c4a5e9242892c2972351.jpg","text":"TemporaryFile(/tmp/multipartBody5578583004791930140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312492385,"filename":"image_18032025_16_40_53_5123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01861d0922e893801cf26a5fc405d78a.jpg","text":"TemporaryFile(/tmp/multipartBody536202446140530583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312492385,"filename":"image_18032025_16_40_42_6171.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6442c5ca3f3955963e0ec936031ff0e3.jpg","text":"TemporaryFile(/tmp/multipartBody3198721720857970676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312492385,"filename":"image_18032025_16_40_35_6172.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0848b2478b296b1c0a02e54b49f0d1f.jpg","text":"TemporaryFile(/tmp/multipartBody4336129206612008912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312492385,"filename":"image_18032025_16_40_29_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4b68457d2bd9cdd46c829958b3d0fee8.jpg","text":"TemporaryFile(/tmp/multipartBody5308872155152686742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312492385,"filename":"image_18032025_16_40_48_6133.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345165621","file1":"1345165616","file0":"1345165612","file4":"1345165631","file5":"1345165636","file3":"1345165626"},"map_files_photo_id_array":[{"photo_id":"1345165636","filename":"file5"},{"photo_id":"1345165621","filename":"file2"},{"photo_id":"1345165631","filename":"file4"},{"photo_id":"1345165616","filename":"file1"},{"photo_id":"1345165612","filename":"file0"},{"photo_id":"1345165626","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345165636":["hashtag1","hashtag2"]},{"1345165612":["hashtag1","hashtag2"]},{"1345165621":["hashtag1","hashtag2"]},{"1345165626":["hashtag1","hashtag2"]},{"1345165631":["hashtag1","hashtag2"]},{"1345165616":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345165636, 1345165612, 1345165621, 1345165626, 1345165631, 1345165616)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.27186870574951 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:41:31.986156
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_53_6137.jpg', 2), ('/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_41_6174.jpg', 2), ('/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_35_5161.jpg', 2), ('/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_30_6130.jpg', 2), ('/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_24_6133.jpg', 2), ('/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_17_6135.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_53_6137.jpg', '/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_41_6174.jpg', '/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_35_5161.jpg', '/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_30_6130.jpg', '/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_24_6133.jpg', '/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_17_6135.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_53_6137.jpg
/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_41_6174.jpg
/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_35_5161.jpg
/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_30_6130.jpg
/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_24_6133.jpg
/home/nano/Desktop/images/18032025/16/41/image_18032025_16_41_17_6135.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345165816","1345165810","1345165878","1345165868","1345165844","1345165873"],"photo_ids_order":["1345165810","1345165816","1345165844","1345165868","1345165873","1345165878"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/72f7ed9196f01f8acf2fe301115aa4ca.jpg","text":"TemporaryFile(/tmp/multipartBody3574485900216758339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312552450,"filename":"image_18032025_16_41_41_6174.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/78d62b3b764c048270398545217eff27.jpg","text":"TemporaryFile(/tmp/multipartBody9087678029271908419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312552450,"filename":"image_18032025_16_41_53_6137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/448f8ff804a261327833538efe2bf2e5.jpg","text":"TemporaryFile(/tmp/multipartBody8932521904831840869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312552450,"filename":"image_18032025_16_41_17_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd892b79e13efd75de027df175e6aaf4.jpg","text":"TemporaryFile(/tmp/multipartBody2852227457035170730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312552450,"filename":"image_18032025_16_41_30_6130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c10bb3ae74b38956132e353255c051c9.jpg","text":"TemporaryFile(/tmp/multipartBody9130631837806724058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312552450,"filename":"image_18032025_16_41_35_5161.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f96e8eef8c599c0f17f99ee0b42d226a.jpg","text":"TemporaryFile(/tmp/multipartBody5695526104488721407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312552450,"filename":"image_18032025_16_41_24_6133.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345165844","file1":"1345165816","file0":"1345165810","file4":"1345165873","file5":"1345165878","file3":"1345165868"},"map_files_photo_id_array":[{"photo_id":"1345165878","filename":"file5"},{"photo_id":"1345165844","filename":"file2"},{"photo_id":"1345165873","filename":"file4"},{"photo_id":"1345165816","filename":"file1"},{"photo_id":"1345165810","filename":"file0"},{"photo_id":"1345165868","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345165816":["hashtag1","hashtag2"]},{"1345165810":["hashtag1","hashtag2"]},{"1345165878":["hashtag1","hashtag2"]},{"1345165868":["hashtag1","hashtag2"]},{"1345165844":["hashtag1","hashtag2"]},{"1345165873":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345165816, 1345165810, 1345165878, 1345165868, 1345165844, 1345165873)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.0417582988739 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:42:32.093557
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_53_5132.jpg', 2), ('/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_48_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_42_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_35_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_29_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_23_6149.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_53_5132.jpg', '/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_48_6141.jpg', '/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_42_6142.jpg', '/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_35_6141.jpg', '/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_29_6134.jpg', '/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_23_6149.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_53_5132.jpg
/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_48_6141.jpg
/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_42_6142.jpg
/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_35_6141.jpg
/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_29_6134.jpg
/home/nano/Desktop/images/18032025/16/42/image_18032025_16_42_23_6149.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345166097","1345166127","1345166007","1345165986","1345166057","1345165982"],"photo_ids_order":["1345165982","1345165986","1345166007","1345166057","1345166097","1345166127"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f4e1405566712674744389863378fa41.jpg","text":"TemporaryFile(/tmp/multipartBody1903997239524997264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312612647,"filename":"image_18032025_16_42_29_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9c2b1ee0ca4ec51668bcdf14da581ef.jpg","text":"TemporaryFile(/tmp/multipartBody4802558635899784460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312612647,"filename":"image_18032025_16_42_23_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ebc31fa434662c452be40b92f6ff7ac.jpg","text":"TemporaryFile(/tmp/multipartBody8273211503583075307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312612647,"filename":"image_18032025_16_42_42_6142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd140b7aa23ff306f84c79fa123ae7ea.jpg","text":"TemporaryFile(/tmp/multipartBody8175988952562873244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312612647,"filename":"image_18032025_16_42_48_6141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84161b583767594c1ea9b449661a49cb.jpg","text":"TemporaryFile(/tmp/multipartBody816524918757139240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312612647,"filename":"image_18032025_16_42_35_6141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7db0430f3ee12fceaadd496c092f17a5.jpg","text":"TemporaryFile(/tmp/multipartBody9113290908420273718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312612647,"filename":"image_18032025_16_42_53_5132.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345166007","file1":"1345165986","file0":"1345165982","file4":"1345166097","file5":"1345166127","file3":"1345166057"},"map_files_photo_id_array":[{"photo_id":"1345166127","filename":"file5"},{"photo_id":"1345166007","filename":"file2"},{"photo_id":"1345166097","filename":"file4"},{"photo_id":"1345165986","filename":"file1"},{"photo_id":"1345165982","filename":"file0"},{"photo_id":"1345166057","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345166097":["hashtag1","hashtag2"]},{"1345166127":["hashtag1","hashtag2"]},{"1345166007":["hashtag1","hashtag2"]},{"1345165986":["hashtag1","hashtag2"]},{"1345166057":["hashtag1","hashtag2"]},{"1345165982":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345166097, 1345166127, 1345166007, 1345165986, 1345166057, 1345165982)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.46189785003662 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:43:32.209587
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_35_5121.jpg', 2), ('/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_30_6143.jpg', 2), ('/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_24_6173.jpg', 2), ('/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_17_6057.jpg', 2), ('/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_11_6174.jpg', 2), ('/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_05_6168.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_35_5121.jpg', '/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_30_6143.jpg', '/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_24_6173.jpg', '/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_17_6057.jpg', '/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_11_6174.jpg', '/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_05_6168.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_35_5121.jpg
/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_30_6143.jpg
/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_24_6173.jpg
/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_17_6057.jpg
/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_11_6174.jpg
/home/nano/Desktop/images/18032025/16/43/image_18032025_16_43_05_6168.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345166302","1345166388","1345166364","1345166291","1345166309","1345166332"],"photo_ids_order":["1345166291","1345166302","1345166309","1345166332","1345166364","1345166388"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e31777baaa442bf81ea84101ce2fab4.jpg","text":"TemporaryFile(/tmp/multipartBody155231484739072789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312672789,"filename":"image_18032025_16_43_30_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ea3365f79918bfd3c56c857149c87aae.jpg","text":"TemporaryFile(/tmp/multipartBody5561797035392311984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312672789,"filename":"image_18032025_16_43_05_6168.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bdab56eefd26d367851c71eff7977088.jpg","text":"TemporaryFile(/tmp/multipartBody7667871637806818922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312672789,"filename":"image_18032025_16_43_11_6174.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6c87055f780c179a950a7e52d93fee3.jpg","text":"TemporaryFile(/tmp/multipartBody2170828106599092824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312672789,"filename":"image_18032025_16_43_35_5121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d4a2eb2c014627f9bada2b2e434fd6dc.jpg","text":"TemporaryFile(/tmp/multipartBody7975038500820976215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312672789,"filename":"image_18032025_16_43_24_6173.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6eae0def8823e99a3bc2991e5f015789.jpg","text":"TemporaryFile(/tmp/multipartBody3552603471185924579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312672789,"filename":"image_18032025_16_43_17_6057.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345166309","file1":"1345166302","file0":"1345166291","file4":"1345166364","file5":"1345166388","file3":"1345166332"},"map_files_photo_id_array":[{"photo_id":"1345166388","filename":"file5"},{"photo_id":"1345166309","filename":"file2"},{"photo_id":"1345166364","filename":"file4"},{"photo_id":"1345166302","filename":"file1"},{"photo_id":"1345166291","filename":"file0"},{"photo_id":"1345166332","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345166302":["hashtag1","hashtag2"]},{"1345166388":["hashtag1","hashtag2"]},{"1345166364":["hashtag1","hashtag2"]},{"1345166291":["hashtag1","hashtag2"]},{"1345166309":["hashtag1","hashtag2"]},{"1345166332":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345166302, 1345166388, 1345166364, 1345166291, 1345166309, 1345166332)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.11034274101257 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:44:32.430146
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_54_6163.jpg', 2), ('/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_48_6164.jpg', 2), ('/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_41_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_35_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_29_6136.jpg', 2), ('/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_23_6135.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_54_6163.jpg', '/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_48_6164.jpg', '/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_41_6134.jpg', '/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_35_6127.jpg', '/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_29_6136.jpg', '/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_23_6135.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_54_6163.jpg
/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_48_6164.jpg
/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_41_6134.jpg
/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_35_6127.jpg
/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_29_6136.jpg
/home/nano/Desktop/images/18032025/16/44/image_18032025_16_44_23_6135.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345166506","1345166547","1345166566","1345166560","1345166536","1345166521"],"photo_ids_order":["1345166506","1345166521","1345166536","1345166547","1345166560","1345166566"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a766f2c60ac5817ef12ea2a4f570aca.jpg","text":"TemporaryFile(/tmp/multipartBody928408999410178986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312733049,"filename":"image_18032025_16_44_54_6163.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ef76e9e728c1f47b988926029b39901c.jpg","text":"TemporaryFile(/tmp/multipartBody7641211383772020120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312733049,"filename":"image_18032025_16_44_35_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d93fb3444408bb29943cbfd5a2c5ffcc.jpg","text":"TemporaryFile(/tmp/multipartBody1719672938074423814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312733049,"filename":"image_18032025_16_44_23_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/83a65e6d9588260f976a6ed606dd1018.jpg","text":"TemporaryFile(/tmp/multipartBody3452982428239295654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312733049,"filename":"image_18032025_16_44_29_6136.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/97d6e2ee3653a5e7433abf657208b82d.jpg","text":"TemporaryFile(/tmp/multipartBody357374147073007094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312733049,"filename":"image_18032025_16_44_41_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/79189b42bf978c0a2d6bfb5be20d47c3.jpg","text":"TemporaryFile(/tmp/multipartBody1948667666320580806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312733049,"filename":"image_18032025_16_44_48_6164.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345166536","file1":"1345166521","file0":"1345166506","file4":"1345166560","file5":"1345166566","file3":"1345166547"},"map_files_photo_id_array":[{"photo_id":"1345166566","filename":"file5"},{"photo_id":"1345166536","filename":"file2"},{"photo_id":"1345166560","filename":"file4"},{"photo_id":"1345166521","filename":"file1"},{"photo_id":"1345166506","filename":"file0"},{"photo_id":"1345166547","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345166506":["hashtag1","hashtag2"]},{"1345166547":["hashtag1","hashtag2"]},{"1345166566":["hashtag1","hashtag2"]},{"1345166560":["hashtag1","hashtag2"]},{"1345166536":["hashtag1","hashtag2"]},{"1345166521":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345166506, 1345166547, 1345166566, 1345166560, 1345166536, 1345166521)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.86902141571045 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:45:32.524261
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_47_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_41_5122.jpg', 2), ('/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_36_6131.jpg', 2), ('/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_30_6131.jpg', 2), ('/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_24_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_17_6132.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_47_6165.jpg', '/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_41_5122.jpg', '/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_36_6131.jpg', '/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_30_6131.jpg', '/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_24_6148.jpg', '/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_17_6132.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_47_6165.jpg
/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_41_5122.jpg
/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_36_6131.jpg
/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_30_6131.jpg
/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_24_6148.jpg
/home/nano/Desktop/images/18032025/16/45/image_18032025_16_45_17_6132.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345166658","1345166646","1345166654","1345166663","1345166642","1345166650"],"photo_ids_order":["1345166642","1345166646","1345166650","1345166654","1345166658","1345166663"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b913de0b35167a5574915f13fdb1750c.jpg","text":"TemporaryFile(/tmp/multipartBody3842830604020434753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312792983,"filename":"image_18032025_16_45_24_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/202f8310888666678286524c06b84195.jpg","text":"TemporaryFile(/tmp/multipartBody9160143170778513863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312792983,"filename":"image_18032025_16_45_41_5122.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aa0c62bdd7187da05cc9134782b3daef.jpg","text":"TemporaryFile(/tmp/multipartBody138070583671819897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312792983,"filename":"image_18032025_16_45_30_6131.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c4729cbb95d9102d715ad36cf5e712c7.jpg","text":"TemporaryFile(/tmp/multipartBody2373285062235697585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312792983,"filename":"image_18032025_16_45_17_6132.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fc6cdde0058d09b3c687a3194b2dc08d.jpg","text":"TemporaryFile(/tmp/multipartBody4386476893014165430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312792983,"filename":"image_18032025_16_45_47_6165.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4cc53c3dbba6c661bb8aaa06e5fff03.jpg","text":"TemporaryFile(/tmp/multipartBody6412729872900921941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312792983,"filename":"image_18032025_16_45_36_6131.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345166650","file1":"1345166646","file0":"1345166642","file4":"1345166658","file5":"1345166663","file3":"1345166654"},"map_files_photo_id_array":[{"photo_id":"1345166663","filename":"file5"},{"photo_id":"1345166650","filename":"file2"},{"photo_id":"1345166658","filename":"file4"},{"photo_id":"1345166646","filename":"file1"},{"photo_id":"1345166642","filename":"file0"},{"photo_id":"1345166654","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345166658":["hashtag1","hashtag2"]},{"1345166646":["hashtag1","hashtag2"]},{"1345166654":["hashtag1","hashtag2"]},{"1345166663":["hashtag1","hashtag2"]},{"1345166642":["hashtag1","hashtag2"]},{"1345166650":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345166658, 1345166646, 1345166654, 1345166663, 1345166642, 1345166650)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.546674489974976 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:46:32.647525
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_54_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_47_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_41_6131.jpg', 2), ('/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_35_6154.jpg', 2), ('/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_29_6132.jpg', 2), ('/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_23_5114.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_54_6128.jpg', '/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_47_6128.jpg', '/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_41_6131.jpg', '/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_35_6154.jpg', '/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_29_6132.jpg', '/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_23_5114.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_54_6128.jpg
/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_47_6128.jpg
/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_41_6131.jpg
/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_35_6154.jpg
/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_29_6132.jpg
/home/nano/Desktop/images/18032025/16/46/image_18032025_16_46_23_5114.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345166803","1345166796","1345166798","1345166817","1345166810","1345166813"],"photo_ids_order":["1345166796","1345166798","1345166803","1345166810","1345166813","1345166817"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/220f290ce7b8578f7f9b4b5f92ff804e.jpg","text":"TemporaryFile(/tmp/multipartBody7213100819128572750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312853087,"filename":"image_18032025_16_46_41_6131.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fdd523ac48418e6ef65805b158d50df0.jpg","text":"TemporaryFile(/tmp/multipartBody1233642334482224638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312853087,"filename":"image_18032025_16_46_54_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/534e10023476baff9130c1453ea83ca2.jpg","text":"TemporaryFile(/tmp/multipartBody3765851597704155063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312853087,"filename":"image_18032025_16_46_47_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/44b718fcb555ac07228a0a917c2aae99.jpg","text":"TemporaryFile(/tmp/multipartBody7725921020144402934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312853087,"filename":"image_18032025_16_46_23_5114.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3bc747006c02a1df5bbde6326a64595.jpg","text":"TemporaryFile(/tmp/multipartBody7228015322522440189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312853087,"filename":"image_18032025_16_46_35_6154.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c431676c7860ccee1abc1544bc6a2adf.jpg","text":"TemporaryFile(/tmp/multipartBody8659652803153319585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312853087,"filename":"image_18032025_16_46_29_6132.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345166803","file1":"1345166798","file0":"1345166796","file4":"1345166813","file5":"1345166817","file3":"1345166810"},"map_files_photo_id_array":[{"photo_id":"1345166817","filename":"file5"},{"photo_id":"1345166803","filename":"file2"},{"photo_id":"1345166813","filename":"file4"},{"photo_id":"1345166798","filename":"file1"},{"photo_id":"1345166796","filename":"file0"},{"photo_id":"1345166810","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345166803":["hashtag1","hashtag2"]},{"1345166796":["hashtag1","hashtag2"]},{"1345166798":["hashtag1","hashtag2"]},{"1345166817":["hashtag1","hashtag2"]},{"1345166810":["hashtag1","hashtag2"]},{"1345166813":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345166803, 1345166796, 1345166798, 1345166817, 1345166810, 1345166813)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.52048921585083 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:47:32.753422
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_53_5115.jpg', 2), ('/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_48_6126.jpg', 2), ('/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_42_6133.jpg', 2), ('/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_36_6130.jpg', 2), ('/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_29_6130.jpg', 2), ('/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_23_6129.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_53_5115.jpg', '/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_48_6126.jpg', '/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_42_6133.jpg', '/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_36_6130.jpg', '/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_29_6130.jpg', '/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_23_6129.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_53_5115.jpg
/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_48_6126.jpg
/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_42_6133.jpg
/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_36_6130.jpg
/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_29_6130.jpg
/home/nano/Desktop/images/18032025/16/47/image_18032025_16_47_23_6129.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345166880","1345166870","1345166849","1345166875","1345166866","1345166842"],"photo_ids_order":["1345166842","1345166849","1345166866","1345166870","1345166875","1345166880"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b03c509e84458d1a4fa73e0d0177cfa.jpg","text":"TemporaryFile(/tmp/multipartBody2860894985437425009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312913205,"filename":"image_18032025_16_47_23_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a379b75d25ff40964636d7785c70d2a.jpg","text":"TemporaryFile(/tmp/multipartBody2398258919550705199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312913205,"filename":"image_18032025_16_47_36_6130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af3a9cb5b71dd1351ad903f4f60dd1df.jpg","text":"TemporaryFile(/tmp/multipartBody5801935536638868202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312913205,"filename":"image_18032025_16_47_48_6126.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/377a02626bd6c3ad91f76af326d9e026.jpg","text":"TemporaryFile(/tmp/multipartBody5680309440792348071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312913205,"filename":"image_18032025_16_47_29_6130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d2ce9c47865737b798884d071a640ed0.jpg","text":"TemporaryFile(/tmp/multipartBody9037021896802463196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312913205,"filename":"image_18032025_16_47_42_6133.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1516527a8bd7bad848e798a307bccb83.jpg","text":"TemporaryFile(/tmp/multipartBody8360949080246324057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312913205,"filename":"image_18032025_16_47_53_5115.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345166866","file1":"1345166849","file0":"1345166842","file4":"1345166875","file5":"1345166880","file3":"1345166870"},"map_files_photo_id_array":[{"photo_id":"1345166880","filename":"file5"},{"photo_id":"1345166866","filename":"file2"},{"photo_id":"1345166875","filename":"file4"},{"photo_id":"1345166849","filename":"file1"},{"photo_id":"1345166842","filename":"file0"},{"photo_id":"1345166870","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345166880":["hashtag1","hashtag2"]},{"1345166870":["hashtag1","hashtag2"]},{"1345166849":["hashtag1","hashtag2"]},{"1345166875":["hashtag1","hashtag2"]},{"1345166866":["hashtag1","hashtag2"]},{"1345166842":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345166880, 1345166870, 1345166849, 1345166875, 1345166866, 1345166842)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.71937823295593 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:48:31.843187
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_53_6159.jpg', 2), ('/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_47_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_41_6129.jpg', 2), ('/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_35_5129.jpg', 2), ('/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_30_6132.jpg', 2), ('/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_24_6128.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_53_6159.jpg', '/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_47_6165.jpg', '/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_41_6129.jpg', '/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_35_5129.jpg', '/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_30_6132.jpg', '/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_24_6128.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_53_6159.jpg
/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_47_6165.jpg
/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_41_6129.jpg
/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_35_5129.jpg
/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_30_6132.jpg
/home/nano/Desktop/images/18032025/16/48/image_18032025_16_48_24_6128.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345166905","1345166895","1345166919","1345166916","1345166901","1345166909"],"photo_ids_order":["1345166895","1345166901","1345166905","1345166909","1345166916","1345166919"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6b71c2916245152197709ead8f666847.jpg","text":"TemporaryFile(/tmp/multipartBody6127460839504579583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312972293,"filename":"image_18032025_16_48_41_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90777bfd4ba66b091fa7dd7bc7e53cf1.jpg","text":"TemporaryFile(/tmp/multipartBody2226847087785037489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312972293,"filename":"image_18032025_16_48_53_6159.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/53b4c48df97c2b0e49ab38d82820c05c.jpg","text":"TemporaryFile(/tmp/multipartBody6110390890893525409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312972293,"filename":"image_18032025_16_48_24_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a3b32c7132852b9075346382d1705bc6.jpg","text":"TemporaryFile(/tmp/multipartBody4683064261648008904asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312972293,"filename":"image_18032025_16_48_30_6132.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ebdcd33fac662de9366b18d2577ac47d.jpg","text":"TemporaryFile(/tmp/multipartBody7301402172167832854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312972293,"filename":"image_18032025_16_48_47_6165.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f268c6160cf2f0deed327cd700ac1cbe.jpg","text":"TemporaryFile(/tmp/multipartBody8147421466295498890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742312972293,"filename":"image_18032025_16_48_35_5129.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345166905","file1":"1345166901","file0":"1345166895","file4":"1345166916","file5":"1345166919","file3":"1345166909"},"map_files_photo_id_array":[{"photo_id":"1345166919","filename":"file5"},{"photo_id":"1345166905","filename":"file2"},{"photo_id":"1345166916","filename":"file4"},{"photo_id":"1345166901","filename":"file1"},{"photo_id":"1345166895","filename":"file0"},{"photo_id":"1345166909","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345166905":["hashtag1","hashtag2"]},{"1345166895":["hashtag1","hashtag2"]},{"1345166919":["hashtag1","hashtag2"]},{"1345166916":["hashtag1","hashtag2"]},{"1345166901":["hashtag1","hashtag2"]},{"1345166909":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345166905, 1345166895, 1345166919, 1345166916, 1345166901, 1345166909)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.66934776306152 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:49:31.917571
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_53_5885.jpg', 2), ('/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_47_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_41_6000.jpg', 2), ('/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_35_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_29_6130.jpg', 2), ('/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_23_6130.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_53_5885.jpg', '/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_47_6079.jpg', '/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_41_6000.jpg', '/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_35_6120.jpg', '/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_29_6130.jpg', '/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_23_6130.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_53_5885.jpg
/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_47_6079.jpg
/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_41_6000.jpg
/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_35_6120.jpg
/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_29_6130.jpg
/home/nano/Desktop/images/18032025/16/49/image_18032025_16_49_23_6130.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345167156","1345166943","1345167257","1345166954","1345166936","1345166950"],"photo_ids_order":["1345166936","1345166943","1345166950","1345166954","1345167156","1345167257"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/39a415efaa05e306939df3537d2b5c08.jpg","text":"TemporaryFile(/tmp/multipartBody4168875512941003372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313032353,"filename":"image_18032025_16_49_29_6130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a9a61f29f6f4627f6207075364e10d15.jpg","text":"TemporaryFile(/tmp/multipartBody2606326975344088490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313032353,"filename":"image_18032025_16_49_47_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/159b25f1281c9b5400852b0580f074b2.jpg","text":"TemporaryFile(/tmp/multipartBody6904647798972546687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313032353,"filename":"image_18032025_16_49_23_6130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/749c439df388fe4425bc86c05e699ad4.jpg","text":"TemporaryFile(/tmp/multipartBody1800036227390918735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313032353,"filename":"image_18032025_16_49_35_6120.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6398d0e52ffc4a252e34b8324a81abc.jpg","text":"TemporaryFile(/tmp/multipartBody7930760212763137437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313032353,"filename":"image_18032025_16_49_53_5885.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ba7ec689e9ed385bd713fc44b58f4ce1.jpg","text":"TemporaryFile(/tmp/multipartBody7337920884150434199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313032353,"filename":"image_18032025_16_49_41_6000.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345166950","file1":"1345166943","file0":"1345166936","file4":"1345167156","file5":"1345167257","file3":"1345166954"},"map_files_photo_id_array":[{"photo_id":"1345167257","filename":"file5"},{"photo_id":"1345166950","filename":"file2"},{"photo_id":"1345167156","filename":"file4"},{"photo_id":"1345166943","filename":"file1"},{"photo_id":"1345166936","filename":"file0"},{"photo_id":"1345166954","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345167156":["hashtag1","hashtag2"]},{"1345166943":["hashtag1","hashtag2"]},{"1345167257":["hashtag1","hashtag2"]},{"1345166954":["hashtag1","hashtag2"]},{"1345166936":["hashtag1","hashtag2"]},{"1345166950":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345167156, 1345166943, 1345167257, 1345166954, 1345166936, 1345166950)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.40616822242737 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:50:32.062609
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_53_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_47_5915.jpg', 2), ('/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_41_6014.jpg', 2), ('/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_35_6006.jpg', 2), ('/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_29_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_23_5908.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_53_5751.jpg', '/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_47_5915.jpg', '/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_41_6014.jpg', '/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_35_6006.jpg', '/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_29_6079.jpg', '/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_23_5908.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_53_5751.jpg
/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_47_5915.jpg
/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_41_6014.jpg
/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_35_6006.jpg
/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_29_6079.jpg
/home/nano/Desktop/images/18032025/16/50/image_18032025_16_50_23_5908.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345167339","1345167344","1345167353","1345167349","1345167334","1345167358"],"photo_ids_order":["1345167334","1345167339","1345167344","1345167349","1345167353","1345167358"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dc68b8c382b487f3e186463e4cd52689.jpg","text":"TemporaryFile(/tmp/multipartBody9149120262666008054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313092481,"filename":"image_18032025_16_50_47_5915.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/562a1f14908f6352e3006e8d61a36bb8.jpg","text":"TemporaryFile(/tmp/multipartBody5751028727474039563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313092481,"filename":"image_18032025_16_50_41_6014.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/182d9881ced803e73071b49e5fe4dd33.jpg","text":"TemporaryFile(/tmp/multipartBody2759826293175965492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313092481,"filename":"image_18032025_16_50_29_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bb19de4999f737822a394a7948a90077.jpg","text":"TemporaryFile(/tmp/multipartBody6936865401343360635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313092481,"filename":"image_18032025_16_50_35_6006.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/93ca51f6619fdd4e808dad8af8d7311b.jpg","text":"TemporaryFile(/tmp/multipartBody6044991781970940972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313092481,"filename":"image_18032025_16_50_53_5751.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ff8e6fa00e115d7d862610898ef85148.jpg","text":"TemporaryFile(/tmp/multipartBody6622502235661904040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313092481,"filename":"image_18032025_16_50_23_5908.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345167344","file1":"1345167339","file0":"1345167334","file4":"1345167353","file5":"1345167358","file3":"1345167349"},"map_files_photo_id_array":[{"photo_id":"1345167358","filename":"file5"},{"photo_id":"1345167344","filename":"file2"},{"photo_id":"1345167353","filename":"file4"},{"photo_id":"1345167339","filename":"file1"},{"photo_id":"1345167334","filename":"file0"},{"photo_id":"1345167349","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345167339":["hashtag1","hashtag2"]},{"1345167344":["hashtag1","hashtag2"]},{"1345167353":["hashtag1","hashtag2"]},{"1345167349":["hashtag1","hashtag2"]},{"1345167334":["hashtag1","hashtag2"]},{"1345167358":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345167339, 1345167344, 1345167353, 1345167349, 1345167334, 1345167358)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.104466915130615 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:51:32.142756
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_53_5716.jpg', 2), ('/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_47_5935.jpg', 2), ('/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_41_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_35_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_29_5964.jpg', 2), ('/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_17_5837.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_53_5716.jpg', '/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_47_5935.jpg', '/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_41_6041.jpg', '/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_35_5908.jpg', '/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_29_5964.jpg', '/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_17_5837.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_53_5716.jpg
/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_47_5935.jpg
/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_41_6041.jpg
/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_35_5908.jpg
/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_29_5964.jpg
/home/nano/Desktop/images/18032025/16/51/image_18032025_16_51_17_5837.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345167372","1345167395","1345167380","1345167391","1345167385","1345167376"],"photo_ids_order":["1345167372","1345167376","1345167380","1345167385","1345167391","1345167395"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6e375f59ddc6760f52e28356e944b249.jpg","text":"TemporaryFile(/tmp/multipartBody5168880235263871574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313152556,"filename":"image_18032025_16_51_53_5716.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/30582108f422cd8f0595695c5918e821.jpg","text":"TemporaryFile(/tmp/multipartBody4701234608353912369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313152556,"filename":"image_18032025_16_51_17_5837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2647f8523124772d5c296649902a5685.jpg","text":"TemporaryFile(/tmp/multipartBody4266128679993462669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313152556,"filename":"image_18032025_16_51_41_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a33f0188ab50725017c617fcea4b6e5.jpg","text":"TemporaryFile(/tmp/multipartBody4204651752919757833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313152556,"filename":"image_18032025_16_51_29_5964.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2128bf56ce14ef47cf19419bcae1be8a.jpg","text":"TemporaryFile(/tmp/multipartBody7888922424150174669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313152556,"filename":"image_18032025_16_51_35_5908.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6a9a5cba8086b0f3e0367c6ad5125d3.jpg","text":"TemporaryFile(/tmp/multipartBody6042341609656693192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313152556,"filename":"image_18032025_16_51_47_5935.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345167380","file1":"1345167376","file0":"1345167372","file4":"1345167391","file5":"1345167395","file3":"1345167385"},"map_files_photo_id_array":[{"photo_id":"1345167395","filename":"file5"},{"photo_id":"1345167380","filename":"file2"},{"photo_id":"1345167391","filename":"file4"},{"photo_id":"1345167376","filename":"file1"},{"photo_id":"1345167372","filename":"file0"},{"photo_id":"1345167385","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345167372":["hashtag1","hashtag2"]},{"1345167395":["hashtag1","hashtag2"]},{"1345167380":["hashtag1","hashtag2"]},{"1345167391":["hashtag1","hashtag2"]},{"1345167385":["hashtag1","hashtag2"]},{"1345167376":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345167372, 1345167395, 1345167380, 1345167391, 1345167385, 1345167376)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.84988069534302 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:52:32.277141
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_47_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_41_6025.jpg', 2), ('/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_35_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_29_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_24_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_05_5928.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_47_6060.jpg', '/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_41_6025.jpg', '/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_35_5863.jpg', '/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_29_5873.jpg', '/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_24_5788.jpg', '/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_05_5928.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_47_6060.jpg
/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_41_6025.jpg
/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_35_5863.jpg
/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_29_5873.jpg
/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_24_5788.jpg
/home/nano/Desktop/images/18032025/16/52/image_18032025_16_52_05_5928.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345167426","1345167435","1345167431","1345167416","1345167421","1345167412"],"photo_ids_order":["1345167412","1345167416","1345167421","1345167426","1345167431","1345167435"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/020b176c5e43e6127605e43b86db69e6.jpg","text":"TemporaryFile(/tmp/multipartBody1048989479277512161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313212670,"filename":"image_18032025_16_52_29_5873.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3ba1421e33fe468e61cfc95dee8e220f.jpg","text":"TemporaryFile(/tmp/multipartBody986987022144958927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313212670,"filename":"image_18032025_16_52_05_5928.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a50b6a117f10e696743119fa4a46e93e.jpg","text":"TemporaryFile(/tmp/multipartBody6326548361719028323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313212670,"filename":"image_18032025_16_52_24_5788.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c4ba9d3cf9161cff9fe714ec5386144.jpg","text":"TemporaryFile(/tmp/multipartBody8959484044737072224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313212670,"filename":"image_18032025_16_52_41_6025.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7a6dac59880b0ea5cfd37d965ccc2a26.jpg","text":"TemporaryFile(/tmp/multipartBody4395424249927397794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313212670,"filename":"image_18032025_16_52_35_5863.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/70eafb989152107eb98b18be96f498bc.jpg","text":"TemporaryFile(/tmp/multipartBody3748872597321431318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313212670,"filename":"image_18032025_16_52_47_6060.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345167421","file1":"1345167416","file0":"1345167412","file4":"1345167431","file5":"1345167435","file3":"1345167426"},"map_files_photo_id_array":[{"photo_id":"1345167435","filename":"file5"},{"photo_id":"1345167421","filename":"file2"},{"photo_id":"1345167431","filename":"file4"},{"photo_id":"1345167416","filename":"file1"},{"photo_id":"1345167412","filename":"file0"},{"photo_id":"1345167426","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345167426":["hashtag1","hashtag2"]},{"1345167435":["hashtag1","hashtag2"]},{"1345167431":["hashtag1","hashtag2"]},{"1345167416":["hashtag1","hashtag2"]},{"1345167421":["hashtag1","hashtag2"]},{"1345167412":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345167426, 1345167435, 1345167431, 1345167416, 1345167421, 1345167412)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.55595374107361 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:53:32.375985
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_53_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_47_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_41_6040.jpg', 2), ('/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_35_5696.jpg', 2), ('/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_30_5940.jpg', 2), ('/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_24_5947.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_53_5709.jpg', '/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_47_6007.jpg', '/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_41_6040.jpg', '/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_35_5696.jpg', '/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_30_5940.jpg', '/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_24_5947.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_53_5709.jpg
/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_47_6007.jpg
/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_41_6040.jpg
/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_35_5696.jpg
/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_30_5940.jpg
/home/nano/Desktop/images/18032025/16/53/image_18032025_16_53_24_5947.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345167468","1345167476","1345167455","1345167464","1345167472","1345167460"],"photo_ids_order":["1345167455","1345167460","1345167464","1345167468","1345167472","1345167476"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fc1421f411ed3e2c2302ef98d7a32edc.jpg","text":"TemporaryFile(/tmp/multipartBody1953072126275879156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313272772,"filename":"image_18032025_16_53_35_5696.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/edfa00dcb403816ce95bb156faf3524f.jpg","text":"TemporaryFile(/tmp/multipartBody8540097248497877168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313272772,"filename":"image_18032025_16_53_24_5947.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a76f081bf1aff31aa86c2b7a8afe14c9.jpg","text":"TemporaryFile(/tmp/multipartBody1906927653227239877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313272772,"filename":"image_18032025_16_53_53_5709.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/08de9b8eb93c4a2cf410591af58d8306.jpg","text":"TemporaryFile(/tmp/multipartBody2736372325865561748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313272772,"filename":"image_18032025_16_53_41_6040.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4558f3d6a7570830f09c1ee5c370f3e7.jpg","text":"TemporaryFile(/tmp/multipartBody1037396390605104254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313272772,"filename":"image_18032025_16_53_30_5940.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6518659ea10e2b89ba6a21ed1bf1934.jpg","text":"TemporaryFile(/tmp/multipartBody8705944660538917455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313272772,"filename":"image_18032025_16_53_47_6007.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345167464","file1":"1345167460","file0":"1345167455","file4":"1345167472","file5":"1345167476","file3":"1345167468"},"map_files_photo_id_array":[{"photo_id":"1345167476","filename":"file5"},{"photo_id":"1345167464","filename":"file2"},{"photo_id":"1345167472","filename":"file4"},{"photo_id":"1345167460","filename":"file1"},{"photo_id":"1345167455","filename":"file0"},{"photo_id":"1345167468","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345167468":["hashtag1","hashtag2"]},{"1345167476":["hashtag1","hashtag2"]},{"1345167455":["hashtag1","hashtag2"]},{"1345167464":["hashtag1","hashtag2"]},{"1345167472":["hashtag1","hashtag2"]},{"1345167460":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345167468, 1345167476, 1345167455, 1345167464, 1345167472, 1345167460)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.376527070999146 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:54:32.553514
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_53_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_47_5928.jpg', 2), ('/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_41_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_35_5912.jpg', 2), ('/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_29_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_24_6039.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_53_5751.jpg', '/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_47_5928.jpg', '/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_41_6086.jpg', '/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_35_5912.jpg', '/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_29_5743.jpg', '/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_24_6039.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_53_5751.jpg
/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_47_5928.jpg
/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_41_6086.jpg
/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_35_5912.jpg
/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_29_5743.jpg
/home/nano/Desktop/images/18032025/16/54/image_18032025_16_54_24_6039.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345167501","1345167512","1345167515","1345167509","1345167505","1345167498"],"photo_ids_order":["1345167498","1345167501","1345167505","1345167509","1345167512","1345167515"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3aea5e3107e9a7e0be1747a77f7a1347.jpg","text":"TemporaryFile(/tmp/multipartBody6716069596279587421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313332938,"filename":"image_18032025_16_54_47_5928.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/df2bbb25e7661dbef8b0d8586ab06460.jpg","text":"TemporaryFile(/tmp/multipartBody2016881367890559187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313332938,"filename":"image_18032025_16_54_29_5743.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f230c84a6d93ed5488bf3a41ed1af44f.jpg","text":"TemporaryFile(/tmp/multipartBody6514415770508718924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313332938,"filename":"image_18032025_16_54_24_6039.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a44b52c9c382208760dbab25f6dcab45.jpg","text":"TemporaryFile(/tmp/multipartBody6847045209082648671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313332938,"filename":"image_18032025_16_54_35_5912.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d06d4e49c19acf261125d9adb2470b1f.jpg","text":"TemporaryFile(/tmp/multipartBody1140993883321715009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313332938,"filename":"image_18032025_16_54_41_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4a08756955fa4e9fd9a19910c64778b.jpg","text":"TemporaryFile(/tmp/multipartBody3273990968903536933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313332938,"filename":"image_18032025_16_54_53_5751.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345167505","file1":"1345167501","file0":"1345167498","file4":"1345167512","file5":"1345167515","file3":"1345167509"},"map_files_photo_id_array":[{"photo_id":"1345167515","filename":"file5"},{"photo_id":"1345167505","filename":"file2"},{"photo_id":"1345167512","filename":"file4"},{"photo_id":"1345167501","filename":"file1"},{"photo_id":"1345167498","filename":"file0"},{"photo_id":"1345167509","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345167501":["hashtag1","hashtag2"]},{"1345167512":["hashtag1","hashtag2"]},{"1345167515":["hashtag1","hashtag2"]},{"1345167509":["hashtag1","hashtag2"]},{"1345167505":["hashtag1","hashtag2"]},{"1345167498":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345167501, 1345167512, 1345167515, 1345167509, 1345167505, 1345167498)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.09540796279907 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:55:32.635390
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_53_5874.jpg', 2), ('/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_47_6037.jpg', 2), ('/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_41_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_35_5960.jpg', 2), ('/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_29_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_24_6042.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_53_5874.jpg', '/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_47_6037.jpg', '/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_41_5878.jpg', '/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_35_5960.jpg', '/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_29_5851.jpg', '/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_24_6042.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_53_5874.jpg
/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_47_6037.jpg
/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_41_5878.jpg
/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_35_5960.jpg
/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_29_5851.jpg
/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_24_6042.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345167663","1345167558","1345167534","1345167694","1345167589","1345167625"],"photo_ids_order":["1345167534","1345167558","1345167589","1345167625","1345167663","1345167694"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1600fdedf9d6141829a2f2619efdd30b.jpg","text":"TemporaryFile(/tmp/multipartBody8718022110309543417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313393093,"filename":"image_18032025_16_55_29_5851.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10ea226552e23dcfad6f822e1289192a.jpg","text":"TemporaryFile(/tmp/multipartBody7171013971144492960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313393093,"filename":"image_18032025_16_55_47_6037.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cb2141edf1fe19d44ffc4727924637fd.jpg","text":"TemporaryFile(/tmp/multipartBody9040762298097146646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313393093,"filename":"image_18032025_16_55_53_5874.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a1e72580d830cfe960550cc0a08ff363.jpg","text":"TemporaryFile(/tmp/multipartBody1060513924669891784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313393093,"filename":"image_18032025_16_55_24_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a286326711061d6bcca6de1753a80fea.jpg","text":"TemporaryFile(/tmp/multipartBody1642822756993794356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313393093,"filename":"image_18032025_16_55_41_5878.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90ac9ca3707f835a89a4ecf1747e0974.jpg","text":"TemporaryFile(/tmp/multipartBody1117109157549081616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313393093,"filename":"image_18032025_16_55_35_5960.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345167589","file1":"1345167558","file0":"1345167534","file4":"1345167663","file5":"1345167694","file3":"1345167625"},"map_files_photo_id_array":[{"photo_id":"1345167694","filename":"file5"},{"photo_id":"1345167589","filename":"file2"},{"photo_id":"1345167663","filename":"file4"},{"photo_id":"1345167558","filename":"file1"},{"photo_id":"1345167534","filename":"file0"},{"photo_id":"1345167625","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345167663":["hashtag1","hashtag2"]},{"1345167558":["hashtag1","hashtag2"]},{"1345167534":["hashtag1","hashtag2"]},{"1345167694":["hashtag1","hashtag2"]},{"1345167589":["hashtag1","hashtag2"]},{"1345167625":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345167663, 1345167558, 1345167534, 1345167694, 1345167589, 1345167625)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.19805550575256 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:56:32.730433
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_53_5849.jpg', 2), ('/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_47_5917.jpg', 2), ('/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_41_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_35_5948.jpg', 2), ('/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_29_5695.jpg', 2), ('/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_24_6017.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_53_5849.jpg', '/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_47_5917.jpg', '/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_41_6079.jpg', '/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_35_5948.jpg', '/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_29_5695.jpg', '/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_24_6017.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_53_5849.jpg
/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_47_5917.jpg
/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_41_6079.jpg
/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_35_5948.jpg
/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_29_5695.jpg
/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_24_6017.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345168058","1345168013","1345167976","1345168126","1345168080","1345168149"],"photo_ids_order":["1345167976","1345168013","1345168058","1345168080","1345168126","1345168149"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9bdc2807f44de8cb35356b4215d70794.jpg","text":"TemporaryFile(/tmp/multipartBody7601700619554829353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313454192,"filename":"image_18032025_16_56_41_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/65a85d2239bba726e6cbc4bf8e8b3ccc.jpg","text":"TemporaryFile(/tmp/multipartBody3169255432523526637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313454192,"filename":"image_18032025_16_56_47_5917.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8998b17b8f7428560baef71d521c173a.jpg","text":"TemporaryFile(/tmp/multipartBody8519831083836869558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313454192,"filename":"image_18032025_16_56_53_5849.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/701b369608dde8a79917245c4f03da77.jpg","text":"TemporaryFile(/tmp/multipartBody5994328378207666069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313454192,"filename":"image_18032025_16_56_29_5695.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/740cfa0818d01fdf29b970dea5bbd1a4.jpg","text":"TemporaryFile(/tmp/multipartBody5265846678348583560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313454192,"filename":"image_18032025_16_56_35_5948.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dcdabca94435bbd87d2db017b2367143.jpg","text":"TemporaryFile(/tmp/multipartBody4211504325268803718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313454192,"filename":"image_18032025_16_56_24_6017.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345168058","file1":"1345168013","file0":"1345167976","file4":"1345168126","file5":"1345168149","file3":"1345168080"},"map_files_photo_id_array":[{"photo_id":"1345168149","filename":"file5"},{"photo_id":"1345168058","filename":"file2"},{"photo_id":"1345168126","filename":"file4"},{"photo_id":"1345168013","filename":"file1"},{"photo_id":"1345167976","filename":"file0"},{"photo_id":"1345168080","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345168058":["hashtag1","hashtag2"]},{"1345168013":["hashtag1","hashtag2"]},{"1345167976":["hashtag1","hashtag2"]},{"1345168126":["hashtag1","hashtag2"]},{"1345168080":["hashtag1","hashtag2"]},{"1345168149":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345168058, 1345168013, 1345167976, 1345168126, 1345168080, 1345168149)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.471311807632446 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:57:31.846324
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_41_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_35_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_30_6707.jpg', 2), ('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_23_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_11_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_05_6020.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_41_6045.jpg', '/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_35_5660.jpg', '/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_30_6707.jpg', '/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_23_6046.jpg', '/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_11_5797.jpg', '/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_05_6020.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_41_6045.jpg
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_35_5660.jpg
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_30_6707.jpg
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_23_6046.jpg
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_11_5797.jpg
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_05_6020.jpg
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:58:02.105898
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_41_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_35_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_30_6707.jpg', 2), ('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_23_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_11_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_05_6020.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_41_6045.jpg', '/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_35_5660.jpg', '/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_30_6707.jpg', '/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_23_6046.jpg', '/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_11_5797.jpg', '/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_05_6020.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_41_6045.jpg
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_35_5660.jpg
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_30_6707.jpg
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_23_6046.jpg
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_11_5797.jpg
/home/nano/Desktop/images/18032025/16/57/image_18032025_16_57_05_6020.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345168535","1345168529","1345168531","1345168504","1345168533","1345168524"],"photo_ids_order":["1345168504","1345168524","1345168529","1345168531","1345168533","1345168535"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/40dea73df019bbed3071a68c7969a28f.jpg","text":"TemporaryFile(/tmp/multipartBody6759407399799602865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313542497,"filename":"image_18032025_16_57_05_6020.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/60ed939ba9031324fc22fdd2ef056ad9.jpg","text":"TemporaryFile(/tmp/multipartBody7360555805452640186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313542497,"filename":"image_18032025_16_57_30_6707.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/740c07d0a8d1f75e58999a9969bc5ac4.jpg","text":"TemporaryFile(/tmp/multipartBody4283709838923891520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313542497,"filename":"image_18032025_16_57_23_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/112a21fc1bd337c5fa0dccdcb349774e.jpg","text":"TemporaryFile(/tmp/multipartBody2803014757172831212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313542497,"filename":"image_18032025_16_57_41_6045.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bb98f2ee501978fdfd2046d309d284d5.jpg","text":"TemporaryFile(/tmp/multipartBody7633785599891501993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313542497,"filename":"image_18032025_16_57_11_5797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/335f98111b8a7d0e67462af276a12772.jpg","text":"TemporaryFile(/tmp/multipartBody5040956154003816614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313542497,"filename":"image_18032025_16_57_35_5660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345168529","file1":"1345168524","file0":"1345168504","file4":"1345168533","file5":"1345168535","file3":"1345168531"},"map_files_photo_id_array":[{"photo_id":"1345168535","filename":"file5"},{"photo_id":"1345168529","filename":"file2"},{"photo_id":"1345168533","filename":"file4"},{"photo_id":"1345168524","filename":"file1"},{"photo_id":"1345168504","filename":"file0"},{"photo_id":"1345168531","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345168535":["hashtag1","hashtag2"]},{"1345168529":["hashtag1","hashtag2"]},{"1345168531":["hashtag1","hashtag2"]},{"1345168504":["hashtag1","hashtag2"]},{"1345168533":["hashtag1","hashtag2"]},{"1345168524":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345168535, 1345168529, 1345168531, 1345168504, 1345168533, 1345168524)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.990537405014038 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 16:59:03.166269
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_59_5935.jpg', 2), ('/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_18_6750.jpg', 2), ('/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_11_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_05_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_59_5958.jpg', 2), ('/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_17_5882.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_59_5935.jpg', '/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_18_6750.jpg', '/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_11_5829.jpg', '/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_05_6061.jpg', '/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_59_5958.jpg', '/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_17_5882.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_59_5935.jpg
/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_18_6750.jpg
/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_11_5829.jpg
/home/nano/Desktop/images/18032025/16/56/image_18032025_16_56_05_6061.jpg
/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_59_5958.jpg
/home/nano/Desktop/images/18032025/16/55/image_18032025_16_55_17_5882.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345168553","1345168558","1345168543","1345168537","1345168548","1345168563"],"photo_ids_order":["1345168537","1345168543","1345168548","1345168553","1345168558","1345168563"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/02092abaf9ca914c061d0aa321c748d9.jpg","text":"TemporaryFile(/tmp/multipartBody6942510376903760918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313603602,"filename":"image_18032025_16_56_05_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ad93a74808e95cc74034cfaba948596.jpg","text":"TemporaryFile(/tmp/multipartBody9104223981098804961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313603602,"filename":"image_18032025_16_55_59_5958.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fc60a73189f4ab57dbcdd3c4a100e8ec.jpg","text":"TemporaryFile(/tmp/multipartBody5076899215115205822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313603602,"filename":"image_18032025_16_56_18_6750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9720c2f8af867ed2dfcc3a46e2c7f877.jpg","text":"TemporaryFile(/tmp/multipartBody5028616730252755296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313603602,"filename":"image_18032025_16_56_59_5935.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b2beb9ffbd45596e566b568c54fc1ff7.jpg","text":"TemporaryFile(/tmp/multipartBody3755867424662463917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313603602,"filename":"image_18032025_16_56_11_5829.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e52752dbfcbec9ad359df4531db427e.jpg","text":"TemporaryFile(/tmp/multipartBody6450883988752614496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313603602,"filename":"image_18032025_16_55_17_5882.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345168548","file1":"1345168543","file0":"1345168537","file4":"1345168558","file5":"1345168563","file3":"1345168553"},"map_files_photo_id_array":[{"photo_id":"1345168563","filename":"file5"},{"photo_id":"1345168548","filename":"file2"},{"photo_id":"1345168558","filename":"file4"},{"photo_id":"1345168543","filename":"file1"},{"photo_id":"1345168537","filename":"file0"},{"photo_id":"1345168553","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345168553":["hashtag1","hashtag2"]},{"1345168558":["hashtag1","hashtag2"]},{"1345168543":["hashtag1","hashtag2"]},{"1345168537":["hashtag1","hashtag2"]},{"1345168548":["hashtag1","hashtag2"]},{"1345168563":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345168553, 1345168558, 1345168543, 1345168537, 1345168548, 1345168563)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.834110260009766 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:00:03.052850
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_54_6750.jpg', 2), ('/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_47_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_41_5816.jpg', 2), ('/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_35_5746.jpg', 2), ('/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_30_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_24_6753.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_54_6750.jpg', '/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_47_5743.jpg', '/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_41_5816.jpg', '/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_35_5746.jpg', '/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_30_5750.jpg', '/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_24_6753.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_54_6750.jpg
/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_47_5743.jpg
/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_41_5816.jpg
/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_35_5746.jpg
/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_30_5750.jpg
/home/nano/Desktop/images/18032025/16/59/image_18032025_16_59_24_6753.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345169288","1345169089","1345169374","1345169344","1345169316","1345169195"],"photo_ids_order":["1345169089","1345169195","1345169288","1345169316","1345169344","1345169374"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8fb6311fd12d497b7f389a5a1c0b45e.jpg","text":"TemporaryFile(/tmp/multipartBody6130483523458149762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313663457,"filename":"image_18032025_16_59_41_5816.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2157c645f697177e58e6a4edda7c7664.jpg","text":"TemporaryFile(/tmp/multipartBody6932858111536430178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313663457,"filename":"image_18032025_16_59_54_6750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/70562ac5563d35b292b4266ea1bfca16.jpg","text":"TemporaryFile(/tmp/multipartBody6244046420615320053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313663457,"filename":"image_18032025_16_59_24_6753.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ddb32b1aeac530cc070ad35ab00f21a.jpg","text":"TemporaryFile(/tmp/multipartBody1233941451888984186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313663457,"filename":"image_18032025_16_59_30_5750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c16339909cdc45d2d168bee6fafb7631.jpg","text":"TemporaryFile(/tmp/multipartBody5255701414598228270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313663457,"filename":"image_18032025_16_59_35_5746.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0a2d651c724e386b6fa2ee1f1518b7dd.jpg","text":"TemporaryFile(/tmp/multipartBody7203329567454218842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313663457,"filename":"image_18032025_16_59_47_5743.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345169288","file1":"1345169195","file0":"1345169089","file4":"1345169344","file5":"1345169374","file3":"1345169316"},"map_files_photo_id_array":[{"photo_id":"1345169374","filename":"file5"},{"photo_id":"1345169288","filename":"file2"},{"photo_id":"1345169344","filename":"file4"},{"photo_id":"1345169195","filename":"file1"},{"photo_id":"1345169089","filename":"file0"},{"photo_id":"1345169316","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345169288":["hashtag1","hashtag2"]},{"1345169089":["hashtag1","hashtag2"]},{"1345169374":["hashtag1","hashtag2"]},{"1345169344":["hashtag1","hashtag2"]},{"1345169316":["hashtag1","hashtag2"]},{"1345169195":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345169288, 1345169089, 1345169374, 1345169344, 1345169316, 1345169195)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.29680895805359 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:01:02.261666
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_53_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_47_5705.jpg', 2), ('/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_41_5759.jpg', 2), ('/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_36_6751.jpg', 2), ('/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_29_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_23_5954.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_53_5752.jpg', '/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_47_5705.jpg', '/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_41_5759.jpg', '/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_36_6751.jpg', '/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_29_5862.jpg', '/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_23_5954.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_53_5752.jpg
/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_47_5705.jpg
/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_41_5759.jpg
/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_36_6751.jpg
/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_29_5862.jpg
/home/nano/Desktop/images/18032025/17/00/image_18032025_17_00_23_5954.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345169759","1345169950","1345169871","1345169844","1345169925","1345169897"],"photo_ids_order":["1345169759","1345169844","1345169871","1345169897","1345169925","1345169950"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c1f909b5ec391d5bfa9b868a00173d79.jpg","text":"TemporaryFile(/tmp/multipartBody4966224069375921170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313722646,"filename":"image_18032025_17_00_53_5752.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d4d305c3102574e39c5a394b373e90a.jpg","text":"TemporaryFile(/tmp/multipartBody7007156840552280990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313722646,"filename":"image_18032025_17_00_23_5954.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/207096aa13175e2bce0b2cb12708d44c.jpg","text":"TemporaryFile(/tmp/multipartBody5040582566090169781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313722646,"filename":"image_18032025_17_00_41_5759.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e01eb0ebd442c89875b2eb589164b94.jpg","text":"TemporaryFile(/tmp/multipartBody4884087082444711822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313722646,"filename":"image_18032025_17_00_47_5705.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af2d956617393f11ccf5a58cf5e5476e.jpg","text":"TemporaryFile(/tmp/multipartBody7033081291443435804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313722646,"filename":"image_18032025_17_00_29_5862.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/257439be01c21915b1350a5972a67c7a.jpg","text":"TemporaryFile(/tmp/multipartBody7546624307829768332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313722646,"filename":"image_18032025_17_00_36_6751.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345169871","file1":"1345169844","file0":"1345169759","file4":"1345169925","file5":"1345169950","file3":"1345169897"},"map_files_photo_id_array":[{"photo_id":"1345169950","filename":"file5"},{"photo_id":"1345169871","filename":"file2"},{"photo_id":"1345169925","filename":"file4"},{"photo_id":"1345169844","filename":"file1"},{"photo_id":"1345169759","filename":"file0"},{"photo_id":"1345169897","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345169759":["hashtag1","hashtag2"]},{"1345169950":["hashtag1","hashtag2"]},{"1345169871":["hashtag1","hashtag2"]},{"1345169844":["hashtag1","hashtag2"]},{"1345169925":["hashtag1","hashtag2"]},{"1345169897":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345169759, 1345169950, 1345169871, 1345169844, 1345169925, 1345169897)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.92660427093506 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:02:02.304158
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_53_5939.jpg', 2), ('/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_41_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_36_6783.jpg', 2), ('/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_29_5802.jpg', 2), ('/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_23_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_17_5842.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_53_5939.jpg', '/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_41_5709.jpg', '/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_36_6783.jpg', '/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_29_5802.jpg', '/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_23_5769.jpg', '/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_17_5842.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_53_5939.jpg
/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_41_5709.jpg
/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_36_6783.jpg
/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_29_5802.jpg
/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_23_5769.jpg
/home/nano/Desktop/images/18032025/17/01/image_18032025_17_01_17_5842.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345170164","1345170161","1345170193","1345170154","1345170157","1345170168"],"photo_ids_order":["1345170154","1345170157","1345170161","1345170164","1345170168","1345170193"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a053d8e90a65fc254fe709a979500378.jpg","text":"TemporaryFile(/tmp/multipartBody5837348678769810549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313782720,"filename":"image_18032025_17_01_29_5802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/64be65e8674125de9f1cc0507962e479.jpg","text":"TemporaryFile(/tmp/multipartBody4846562033724220029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313782720,"filename":"image_18032025_17_01_36_6783.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d7b9fb254dc914542af10de9dd22dc58.jpg","text":"TemporaryFile(/tmp/multipartBody3083993697111398611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313782720,"filename":"image_18032025_17_01_17_5842.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9d6aa6f3fd316928def73c819c4c618e.jpg","text":"TemporaryFile(/tmp/multipartBody5141125917415809056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313782720,"filename":"image_18032025_17_01_53_5939.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b16ced480e6911aa6be5074b56a02165.jpg","text":"TemporaryFile(/tmp/multipartBody293085722828881213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313782720,"filename":"image_18032025_17_01_41_5709.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/861f829526d9e2e2b8d6113f62d2b661.jpg","text":"TemporaryFile(/tmp/multipartBody3896547857494820669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313782720,"filename":"image_18032025_17_01_23_5769.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345170161","file1":"1345170157","file0":"1345170154","file4":"1345170168","file5":"1345170193","file3":"1345170164"},"map_files_photo_id_array":[{"photo_id":"1345170193","filename":"file5"},{"photo_id":"1345170161","filename":"file2"},{"photo_id":"1345170168","filename":"file4"},{"photo_id":"1345170157","filename":"file1"},{"photo_id":"1345170154","filename":"file0"},{"photo_id":"1345170164","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345170164":["hashtag1","hashtag2"]},{"1345170161":["hashtag1","hashtag2"]},{"1345170193":["hashtag1","hashtag2"]},{"1345170154":["hashtag1","hashtag2"]},{"1345170157":["hashtag1","hashtag2"]},{"1345170168":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345170164, 1345170161, 1345170193, 1345170154, 1345170157, 1345170168)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.542136907577515 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:03:02.494615
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_05_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_54_6652.jpg', 2), ('/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_47_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_41_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_36_6734.jpg', 2), ('/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_29_5808.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_05_5657.jpg', '/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_54_6652.jpg', '/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_47_5637.jpg', '/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_41_5629.jpg', '/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_36_6734.jpg', '/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_29_5808.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_05_5657.jpg
/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_54_6652.jpg
/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_47_5637.jpg
/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_41_5629.jpg
/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_36_6734.jpg
/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_29_5808.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345170417","1345170386","1345170383","1345170379","1345170394","1345170390"],"photo_ids_order":["1345170379","1345170383","1345170386","1345170390","1345170394","1345170417"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7759b75583507780a5aca58ad6ad9101.jpg","text":"TemporaryFile(/tmp/multipartBody4674538733771655930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313842840,"filename":"image_18032025_17_02_29_5808.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6b917b678e4250a3ab549a74ac9e0536.jpg","text":"TemporaryFile(/tmp/multipartBody1898681883606176848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313842840,"filename":"image_18032025_17_02_47_5637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/510ec55af81d5f0fcb7467b45b6cdb3b.jpg","text":"TemporaryFile(/tmp/multipartBody3968495030157262255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313842840,"filename":"image_18032025_17_02_54_6652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f8706d082a96c1e568d38cd827ca7aa8.jpg","text":"TemporaryFile(/tmp/multipartBody3114019498400739099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313842840,"filename":"image_18032025_17_03_05_5657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd04330535aca3f392c7f0e7424c9d4f.jpg","text":"TemporaryFile(/tmp/multipartBody2095587030723728791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313842840,"filename":"image_18032025_17_02_36_6734.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/98c17721b2d0fdb3ada0824352b21df4.jpg","text":"TemporaryFile(/tmp/multipartBody4557742754056632612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313842840,"filename":"image_18032025_17_02_41_5629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345170386","file1":"1345170383","file0":"1345170379","file4":"1345170394","file5":"1345170417","file3":"1345170390"},"map_files_photo_id_array":[{"photo_id":"1345170417","filename":"file5"},{"photo_id":"1345170386","filename":"file2"},{"photo_id":"1345170394","filename":"file4"},{"photo_id":"1345170383","filename":"file1"},{"photo_id":"1345170379","filename":"file0"},{"photo_id":"1345170390","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345170417":["hashtag1","hashtag2"]},{"1345170386":["hashtag1","hashtag2"]},{"1345170383":["hashtag1","hashtag2"]},{"1345170379":["hashtag1","hashtag2"]},{"1345170394":["hashtag1","hashtag2"]},{"1345170390":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345170417, 1345170386, 1345170383, 1345170379, 1345170394, 1345170390)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.12331223487854 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:04:02.883691
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_29_6162.jpg', 2), ('/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_23_6009.jpg', 2), ('/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_17_5692.jpg', 2), ('/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_12_6676.jpg', 2), ('/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_59_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_23_5935.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_29_6162.jpg', '/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_23_6009.jpg', '/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_17_5692.jpg', '/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_12_6676.jpg', '/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_59_5624.jpg', '/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_23_5935.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_29_6162.jpg
/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_23_6009.jpg
/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_17_5692.jpg
/home/nano/Desktop/images/18032025/17/03/image_18032025_17_03_12_6676.jpg
/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_59_5624.jpg
/home/nano/Desktop/images/18032025/17/02/image_18032025_17_02_23_5935.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3236982822418213 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:04:32.187591
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_53_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_48_6621.jpg', 2), ('/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_41_5795.jpg', 2), ('/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_35_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_30_6631.jpg', 2), ('/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_23_5981.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_53_5609.jpg', '/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_48_6621.jpg', '/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_41_5795.jpg', '/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_35_5612.jpg', '/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_30_6631.jpg', '/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_23_5981.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_53_5609.jpg
/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_48_6621.jpg
/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_41_5795.jpg
/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_35_5612.jpg
/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_30_6631.jpg
/home/nano/Desktop/images/18032025/17/04/image_18032025_17_04_23_5981.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345170548","1345170631","1345170576","1345170543","1345170606","1345170540"],"photo_ids_order":["1345170540","1345170543","1345170548","1345170576","1345170606","1345170631"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90be8212644cd6510d204a5090f1b74a.jpg","text":"TemporaryFile(/tmp/multipartBody4642073246928119105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313932582,"filename":"image_18032025_17_04_41_5795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af7cb78805243019b8f3ef136353f178.jpg","text":"TemporaryFile(/tmp/multipartBody8171397252169558649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313932582,"filename":"image_18032025_17_04_23_5981.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f5496e1410b8e6c1c4805ea733b5594.jpg","text":"TemporaryFile(/tmp/multipartBody2204083042226302998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313932582,"filename":"image_18032025_17_04_35_5612.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9fa00ed07eb3c1a731b792a6eb725072.jpg","text":"TemporaryFile(/tmp/multipartBody3999882348205181989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313932582,"filename":"image_18032025_17_04_48_6621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7216607cd0400206c9d14328dc263ef4.jpg","text":"TemporaryFile(/tmp/multipartBody129405333432808600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313932582,"filename":"image_18032025_17_04_30_6631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3434452970acb257301b09f4c1d0b63.jpg","text":"TemporaryFile(/tmp/multipartBody2875450870482691719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313932582,"filename":"image_18032025_17_04_53_5609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345170548","file1":"1345170543","file0":"1345170540","file4":"1345170606","file5":"1345170631","file3":"1345170576"},"map_files_photo_id_array":[{"photo_id":"1345170631","filename":"file5"},{"photo_id":"1345170548","filename":"file2"},{"photo_id":"1345170606","filename":"file4"},{"photo_id":"1345170543","filename":"file1"},{"photo_id":"1345170540","filename":"file0"},{"photo_id":"1345170576","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345170548":["hashtag1","hashtag2"]},{"1345170631":["hashtag1","hashtag2"]},{"1345170576":["hashtag1","hashtag2"]},{"1345170543":["hashtag1","hashtag2"]},{"1345170606":["hashtag1","hashtag2"]},{"1345170540":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345170548, 1345170631, 1345170576, 1345170543, 1345170606, 1345170540)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.57181406021118 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:05:32.282412
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_53_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_47_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_42_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_35_5730.jpg', 2), ('/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_29_5659.jpg', 2), ('/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_24_6625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_53_5750.jpg', '/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_47_5646.jpg', '/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_42_6642.jpg', '/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_35_5730.jpg', '/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_29_5659.jpg', '/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_24_6625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_53_5750.jpg
/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_47_5646.jpg
/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_42_6642.jpg
/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_35_5730.jpg
/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_29_5659.jpg
/home/nano/Desktop/images/18032025/17/05/image_18032025_17_05_24_6625.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171037","1345171040","1345171022","1345171048","1345171044","1345171053"],"photo_ids_order":["1345171022","1345171037","1345171040","1345171044","1345171048","1345171053"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b44a63b77d1670512bb227c2d57c0fe8.jpg","text":"TemporaryFile(/tmp/multipartBody8894301800569571144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313992623,"filename":"image_18032025_17_05_47_5646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0b72442ff2acf033191c6c0cbb616ced.jpg","text":"TemporaryFile(/tmp/multipartBody9206301879278293239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313992623,"filename":"image_18032025_17_05_42_6642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/81ebf476d92e68569ee2e365be9e56ba.jpg","text":"TemporaryFile(/tmp/multipartBody4882370686046636660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313992623,"filename":"image_18032025_17_05_53_5750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5d08f4f334207aaa76fb02ade47a72df.jpg","text":"TemporaryFile(/tmp/multipartBody4078820610431661159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313992623,"filename":"image_18032025_17_05_29_5659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/89198a5b0e0e5aec9dddcf1c94b9b282.jpg","text":"TemporaryFile(/tmp/multipartBody4174126423605878015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313992623,"filename":"image_18032025_17_05_35_5730.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bfc398bdf25c6efbb280b6f9381bddc9.jpg","text":"TemporaryFile(/tmp/multipartBody3739780479864851785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742313992623,"filename":"image_18032025_17_05_24_6625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171040","file1":"1345171037","file0":"1345171022","file4":"1345171048","file5":"1345171053","file3":"1345171044"},"map_files_photo_id_array":[{"photo_id":"1345171053","filename":"file5"},{"photo_id":"1345171040","filename":"file2"},{"photo_id":"1345171048","filename":"file4"},{"photo_id":"1345171037","filename":"file1"},{"photo_id":"1345171022","filename":"file0"},{"photo_id":"1345171044","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171037":["hashtag1","hashtag2"]},{"1345171040":["hashtag1","hashtag2"]},{"1345171022":["hashtag1","hashtag2"]},{"1345171048":["hashtag1","hashtag2"]},{"1345171044":["hashtag1","hashtag2"]},{"1345171053":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171037, 1345171040, 1345171022, 1345171048, 1345171044, 1345171053)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.451815128326416 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:06:32.399867
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_54_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_48_6785.jpg', 2), ('/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_41_5804.jpg', 2), ('/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_35_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_29_5814.jpg', 2), ('/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_23_5863.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_54_6091.jpg', '/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_48_6785.jpg', '/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_41_5804.jpg', '/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_35_5838.jpg', '/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_29_5814.jpg', '/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_23_5863.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_54_6091.jpg
/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_48_6785.jpg
/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_41_5804.jpg
/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_35_5838.jpg
/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_29_5814.jpg
/home/nano/Desktop/images/18032025/17/06/image_18032025_17_06_23_5863.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171084","1345171080","1345171071","1345171091","1345171088","1345171076"],"photo_ids_order":["1345171071","1345171076","1345171080","1345171084","1345171088","1345171091"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c7e7ff1ee92a9b8918dfc7840aaadb9c.jpg","text":"TemporaryFile(/tmp/multipartBody3350536977829758839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314052836,"filename":"image_18032025_17_06_35_5838.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad9f05d953f133599420e39d84765f39.jpg","text":"TemporaryFile(/tmp/multipartBody2903161039973046111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314052836,"filename":"image_18032025_17_06_41_5804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0b079763bfb630d4274d8334a9a82da1.jpg","text":"TemporaryFile(/tmp/multipartBody2813231315435999259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314052836,"filename":"image_18032025_17_06_54_6091.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b5114549381201949712364cb985cdcb.jpg","text":"TemporaryFile(/tmp/multipartBody3213867908372707187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314052836,"filename":"image_18032025_17_06_23_5863.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7ae39c09ed1d736ba7539e7bba990deb.jpg","text":"TemporaryFile(/tmp/multipartBody225033335121537637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314052836,"filename":"image_18032025_17_06_29_5814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a4a27bf9bc6e175e404dcfeaa988f07d.jpg","text":"TemporaryFile(/tmp/multipartBody6738623247324080177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314052836,"filename":"image_18032025_17_06_48_6785.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171080","file1":"1345171076","file0":"1345171071","file4":"1345171088","file5":"1345171091","file3":"1345171084"},"map_files_photo_id_array":[{"photo_id":"1345171091","filename":"file5"},{"photo_id":"1345171080","filename":"file2"},{"photo_id":"1345171088","filename":"file4"},{"photo_id":"1345171076","filename":"file1"},{"photo_id":"1345171071","filename":"file0"},{"photo_id":"1345171084","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171084":["hashtag1","hashtag2"]},{"1345171080":["hashtag1","hashtag2"]},{"1345171071":["hashtag1","hashtag2"]},{"1345171091":["hashtag1","hashtag2"]},{"1345171088":["hashtag1","hashtag2"]},{"1345171076":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171084, 1345171080, 1345171071, 1345171091, 1345171088, 1345171076)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.09603977203369 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:07:32.508727
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_53_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_47_5999.jpg', 2), ('/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_41_5940.jpg', 2), ('/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_35_5826.jpg', 2), ('/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_30_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_24_6826.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_53_6086.jpg', '/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_47_5999.jpg', '/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_41_5940.jpg', '/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_35_5826.jpg', '/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_30_5867.jpg', '/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_24_6826.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_53_6086.jpg
/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_47_5999.jpg
/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_41_5940.jpg
/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_35_5826.jpg
/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_30_5867.jpg
/home/nano/Desktop/images/18032025/17/07/image_18032025_17_07_24_6826.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171112","1345171115","1345171109","1345171123","1345171117","1345171119"],"photo_ids_order":["1345171109","1345171112","1345171115","1345171117","1345171119","1345171123"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6cd6c828518acd6f9f1b0b32428a7dc7.jpg","text":"TemporaryFile(/tmp/multipartBody7732437041238479127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314112931,"filename":"image_18032025_17_07_47_5999.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fbce97de18906545e823562ce8eace56.jpg","text":"TemporaryFile(/tmp/multipartBody6676070368745835642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314112931,"filename":"image_18032025_17_07_41_5940.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7cbc69eff6c747a21ba329474e259d07.jpg","text":"TemporaryFile(/tmp/multipartBody6643939197481084217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314112931,"filename":"image_18032025_17_07_53_6086.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/46104dd494d29378826bbc7723e581c9.jpg","text":"TemporaryFile(/tmp/multipartBody6185490966704040476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314112931,"filename":"image_18032025_17_07_24_6826.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f10963db536b675cd22ba37c10a1a8dc.jpg","text":"TemporaryFile(/tmp/multipartBody6515691701987952850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314112931,"filename":"image_18032025_17_07_35_5826.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/883fbe6fd043b044154e80b5ca56c043.jpg","text":"TemporaryFile(/tmp/multipartBody116651549443869874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314112931,"filename":"image_18032025_17_07_30_5867.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171115","file1":"1345171112","file0":"1345171109","file4":"1345171119","file5":"1345171123","file3":"1345171117"},"map_files_photo_id_array":[{"photo_id":"1345171123","filename":"file5"},{"photo_id":"1345171115","filename":"file2"},{"photo_id":"1345171119","filename":"file4"},{"photo_id":"1345171112","filename":"file1"},{"photo_id":"1345171109","filename":"file0"},{"photo_id":"1345171117","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171112":["hashtag1","hashtag2"]},{"1345171115":["hashtag1","hashtag2"]},{"1345171109":["hashtag1","hashtag2"]},{"1345171123":["hashtag1","hashtag2"]},{"1345171117":["hashtag1","hashtag2"]},{"1345171119":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171112, 1345171115, 1345171109, 1345171123, 1345171117, 1345171119)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.6268892288208 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:08:32.599937
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_53_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_47_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_42_6881.jpg', 2), ('/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_35_5183.jpg', 2), ('/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_30_6134.jpg', 2), ('/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_24_5815.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_53_5794.jpg', '/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_47_5766.jpg', '/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_42_6881.jpg', '/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_35_5183.jpg', '/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_30_6134.jpg', '/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_24_5815.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_53_5794.jpg
/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_47_5766.jpg
/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_42_6881.jpg
/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_35_5183.jpg
/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_30_6134.jpg
/home/nano/Desktop/images/18032025/17/08/image_18032025_17_08_24_5815.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171148","1345171147","1345171161","1345171158","1345171152","1345171155"],"photo_ids_order":["1345171147","1345171148","1345171152","1345171155","1345171158","1345171161"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5c72aae8013909f9fcb9686370fc783.jpg","text":"TemporaryFile(/tmp/multipartBody7349355180512210733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314173045,"filename":"image_18032025_17_08_47_5766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1dfaa7d0252c01d1364f63c62bbc1110.jpg","text":"TemporaryFile(/tmp/multipartBody3956341244524181877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314173045,"filename":"image_18032025_17_08_53_5794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d5809f31d2908aeffce41fbe9e76bfbc.jpg","text":"TemporaryFile(/tmp/multipartBody6424706678169098614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314173045,"filename":"image_18032025_17_08_24_5815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9e5e35b258777ce08a910ccae5c47bd3.jpg","text":"TemporaryFile(/tmp/multipartBody5270497838374893837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314173045,"filename":"image_18032025_17_08_30_6134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85225a3a05d82c3e8f335188e0618748.jpg","text":"TemporaryFile(/tmp/multipartBody7993312215250391403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314173045,"filename":"image_18032025_17_08_42_6881.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6b67a7628d4dbf00d7f5a248330a8888.jpg","text":"TemporaryFile(/tmp/multipartBody8239201788033618231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314173045,"filename":"image_18032025_17_08_35_5183.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171152","file1":"1345171148","file0":"1345171147","file4":"1345171158","file5":"1345171161","file3":"1345171155"},"map_files_photo_id_array":[{"photo_id":"1345171161","filename":"file5"},{"photo_id":"1345171152","filename":"file2"},{"photo_id":"1345171158","filename":"file4"},{"photo_id":"1345171148","filename":"file1"},{"photo_id":"1345171147","filename":"file0"},{"photo_id":"1345171155","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171148":["hashtag1","hashtag2"]},{"1345171147":["hashtag1","hashtag2"]},{"1345171161":["hashtag1","hashtag2"]},{"1345171158":["hashtag1","hashtag2"]},{"1345171152":["hashtag1","hashtag2"]},{"1345171155":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171148, 1345171147, 1345171161, 1345171158, 1345171152, 1345171155)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.1272873878479 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:09:32.704444
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_53_5599.jpg', 2), ('/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_48_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_41_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_35_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_30_6853.jpg', 2), ('/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_23_5810.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_53_5599.jpg', '/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_48_6616.jpg', '/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_41_5667.jpg', '/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_35_5668.jpg', '/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_30_6853.jpg', '/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_23_5810.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_53_5599.jpg
/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_48_6616.jpg
/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_41_5667.jpg
/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_35_5668.jpg
/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_30_6853.jpg
/home/nano/Desktop/images/18032025/17/09/image_18032025_17_09_23_5810.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171184","1345171217","1345171205","1345171191","1345171215","1345171187"],"photo_ids_order":["1345171184","1345171187","1345171191","1345171205","1345171215","1345171217"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/16eb0d012428f9031a57e7bff895e10f.jpg","text":"TemporaryFile(/tmp/multipartBody6566610617213878079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314233039,"filename":"image_18032025_17_09_53_5599.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b11e3af524b342b5259c1233e7994d7d.jpg","text":"TemporaryFile(/tmp/multipartBody9076570359498039525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314233039,"filename":"image_18032025_17_09_23_5810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/716efacc5abd94d66138e7e3ac018227.jpg","text":"TemporaryFile(/tmp/multipartBody5511773494906721180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314233039,"filename":"image_18032025_17_09_35_5668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/adc460b47806a0ad2374d6bd86097431.jpg","text":"TemporaryFile(/tmp/multipartBody8947344128462583965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314233039,"filename":"image_18032025_17_09_41_5667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/17b2b91d3ad92db12c99ec02cc606ef8.jpg","text":"TemporaryFile(/tmp/multipartBody7041204415929856208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314233039,"filename":"image_18032025_17_09_30_6853.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/09aa61024e67ee126bfe59337e8291e6.jpg","text":"TemporaryFile(/tmp/multipartBody7721959681667516082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314233039,"filename":"image_18032025_17_09_48_6616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171191","file1":"1345171187","file0":"1345171184","file4":"1345171215","file5":"1345171217","file3":"1345171205"},"map_files_photo_id_array":[{"photo_id":"1345171217","filename":"file5"},{"photo_id":"1345171191","filename":"file2"},{"photo_id":"1345171215","filename":"file4"},{"photo_id":"1345171187","filename":"file1"},{"photo_id":"1345171184","filename":"file0"},{"photo_id":"1345171205","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171184":["hashtag1","hashtag2"]},{"1345171217":["hashtag1","hashtag2"]},{"1345171205":["hashtag1","hashtag2"]},{"1345171191":["hashtag1","hashtag2"]},{"1345171215":["hashtag1","hashtag2"]},{"1345171187":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171184, 1345171217, 1345171205, 1345171191, 1345171215, 1345171187)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.81967568397522 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:10:31.809855
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_53_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_47_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_42_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_35_5624.jpg', 2), ('/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_29_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_24_6660.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_53_5652.jpg', '/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_47_5644.jpg', '/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_42_6656.jpg', '/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_35_5624.jpg', '/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_29_5655.jpg', '/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_24_6660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_53_5652.jpg
/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_47_5644.jpg
/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_42_6656.jpg
/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_35_5624.jpg
/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_29_5655.jpg
/home/nano/Desktop/images/18032025/17/10/image_18032025_17_10_24_6660.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171256","1345171241","1345171250","1345171244","1345171247","1345171253"],"photo_ids_order":["1345171241","1345171244","1345171247","1345171250","1345171253","1345171256"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a4d8645c088ec17bdc19fde1069d754.jpg","text":"TemporaryFile(/tmp/multipartBody855485338639061228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314292143,"filename":"image_18032025_17_10_24_6660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8801252e9d9e209fa8f7330862d0909e.jpg","text":"TemporaryFile(/tmp/multipartBody1440807783350415618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314292143,"filename":"image_18032025_17_10_53_5652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/40df3e89d8a0b1a4c38e2f9927e3e5a8.jpg","text":"TemporaryFile(/tmp/multipartBody7900118775092277376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314292143,"filename":"image_18032025_17_10_35_5624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43faeca4e6d36b78541f96f09d902701.jpg","text":"TemporaryFile(/tmp/multipartBody4127072390103062778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314292143,"filename":"image_18032025_17_10_47_5644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d0fc329e1b616bdbe3dc8edc387b319.jpg","text":"TemporaryFile(/tmp/multipartBody7739574263530934211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314292143,"filename":"image_18032025_17_10_42_6656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4e3636db25ea8f428a9b00880a005ee.jpg","text":"TemporaryFile(/tmp/multipartBody5569932153730511428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314292143,"filename":"image_18032025_17_10_29_5655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171247","file1":"1345171244","file0":"1345171241","file4":"1345171253","file5":"1345171256","file3":"1345171250"},"map_files_photo_id_array":[{"photo_id":"1345171256","filename":"file5"},{"photo_id":"1345171247","filename":"file2"},{"photo_id":"1345171253","filename":"file4"},{"photo_id":"1345171244","filename":"file1"},{"photo_id":"1345171241","filename":"file0"},{"photo_id":"1345171250","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171256":["hashtag1","hashtag2"]},{"1345171241":["hashtag1","hashtag2"]},{"1345171250":["hashtag1","hashtag2"]},{"1345171244":["hashtag1","hashtag2"]},{"1345171247":["hashtag1","hashtag2"]},{"1345171253":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171256, 1345171241, 1345171250, 1345171244, 1345171247, 1345171253)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.118576049804688 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:11:31.921630
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_53_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_48_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_41_5686.jpg', 2), ('/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_35_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_30_6660.jpg', 2), ('/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_23_5625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_53_5651.jpg', '/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_48_6647.jpg', '/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_41_5686.jpg', '/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_35_5637.jpg', '/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_30_6660.jpg', '/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_23_5625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_53_5651.jpg
/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_48_6647.jpg
/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_41_5686.jpg
/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_35_5637.jpg
/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_30_6660.jpg
/home/nano/Desktop/images/18032025/17/11/image_18032025_17_11_23_5625.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171287","1345171296","1345171281","1345171290","1345171284","1345171278"],"photo_ids_order":["1345171278","1345171281","1345171284","1345171287","1345171290","1345171296"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/04ecdbe64391d7c2d5da9d6ead6c708c.jpg","text":"TemporaryFile(/tmp/multipartBody3267799156011824680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314352247,"filename":"image_18032025_17_11_35_5637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2189bb809fffa32c0db458eb8c0dc5e3.jpg","text":"TemporaryFile(/tmp/multipartBody9028740117148482068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314352247,"filename":"image_18032025_17_11_23_5625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1c128f95a3d1d8b0c6c2513ae9d0e2bb.jpg","text":"TemporaryFile(/tmp/multipartBody1953334354963867229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314352247,"filename":"image_18032025_17_11_48_6647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d60de6b2a97cf1c16e63202f0335c1ad.jpg","text":"TemporaryFile(/tmp/multipartBody884102649272356680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314352247,"filename":"image_18032025_17_11_30_6660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1f6dc607fc2cc0f960dbf9368fef32ad.jpg","text":"TemporaryFile(/tmp/multipartBody6888405469841645588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314352247,"filename":"image_18032025_17_11_41_5686.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f09585d0053f033eb3499b97075b72da.jpg","text":"TemporaryFile(/tmp/multipartBody6055448946836371939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314352247,"filename":"image_18032025_17_11_53_5651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171284","file1":"1345171281","file0":"1345171278","file4":"1345171290","file5":"1345171296","file3":"1345171287"},"map_files_photo_id_array":[{"photo_id":"1345171296","filename":"file5"},{"photo_id":"1345171284","filename":"file2"},{"photo_id":"1345171290","filename":"file4"},{"photo_id":"1345171281","filename":"file1"},{"photo_id":"1345171278","filename":"file0"},{"photo_id":"1345171287","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171287":["hashtag1","hashtag2"]},{"1345171296":["hashtag1","hashtag2"]},{"1345171281":["hashtag1","hashtag2"]},{"1345171290":["hashtag1","hashtag2"]},{"1345171284":["hashtag1","hashtag2"]},{"1345171278":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171287, 1345171296, 1345171281, 1345171290, 1345171284, 1345171278)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.38535690307617 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:12:32.029705
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_53_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_47_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_42_6743.jpg', 2), ('/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_35_5713.jpg', 2), ('/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_29_5700.jpg', 2), ('/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_24_6652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_53_5830.jpg', '/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_47_5673.jpg', '/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_42_6743.jpg', '/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_35_5713.jpg', '/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_29_5700.jpg', '/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_24_6652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_53_5830.jpg
/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_47_5673.jpg
/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_42_6743.jpg
/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_35_5713.jpg
/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_29_5700.jpg
/home/nano/Desktop/images/18032025/17/12/image_18032025_17_12_24_6652.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171331","1345171327","1345171318","1345171323","1345171335","1345171320"],"photo_ids_order":["1345171318","1345171320","1345171323","1345171327","1345171331","1345171335"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12d24225dff2d1c1774bb5fe6e0e6d94.jpg","text":"TemporaryFile(/tmp/multipartBody5141955117043238713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314412400,"filename":"image_18032025_17_12_29_5700.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01f5f78621e6bd267258c704faf91c7c.jpg","text":"TemporaryFile(/tmp/multipartBody2270370580500362122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314412400,"filename":"image_18032025_17_12_35_5713.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e78659b489275f853864ecc8e66272da.jpg","text":"TemporaryFile(/tmp/multipartBody7704976924291890476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314412400,"filename":"image_18032025_17_12_53_5830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/743915ea651833a1918d2a6f4d6bf87b.jpg","text":"TemporaryFile(/tmp/multipartBody4810836055042785967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314412400,"filename":"image_18032025_17_12_42_6743.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8bb058fe59ab184a149bb60087d83a45.jpg","text":"TemporaryFile(/tmp/multipartBody3754382347429017134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314412400,"filename":"image_18032025_17_12_24_6652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/675779c0361fc5ea1fb7479f964655d3.jpg","text":"TemporaryFile(/tmp/multipartBody936024301603469661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314412400,"filename":"image_18032025_17_12_47_5673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171323","file1":"1345171320","file0":"1345171318","file4":"1345171331","file5":"1345171335","file3":"1345171327"},"map_files_photo_id_array":[{"photo_id":"1345171335","filename":"file5"},{"photo_id":"1345171323","filename":"file2"},{"photo_id":"1345171331","filename":"file4"},{"photo_id":"1345171320","filename":"file1"},{"photo_id":"1345171318","filename":"file0"},{"photo_id":"1345171327","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171331":["hashtag1","hashtag2"]},{"1345171327":["hashtag1","hashtag2"]},{"1345171318":["hashtag1","hashtag2"]},{"1345171323":["hashtag1","hashtag2"]},{"1345171335":["hashtag1","hashtag2"]},{"1345171320":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171331, 1345171327, 1345171318, 1345171323, 1345171335, 1345171320)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.0401394367218 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:13:32.137009
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_53_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_47_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_42_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_36_6764.jpg', 2), ('/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_29_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_23_5780.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_53_5766.jpg', '/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_47_5855.jpg', '/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_42_5809.jpg', '/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_36_6764.jpg', '/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_29_5772.jpg', '/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_23_5780.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_53_5766.jpg
/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_47_5855.jpg
/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_42_5809.jpg
/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_36_6764.jpg
/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_29_5772.jpg
/home/nano/Desktop/images/18032025/17/13/image_18032025_17_13_23_5780.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171361","1345171358","1345171375","1345171365","1345171379","1345171370"],"photo_ids_order":["1345171358","1345171361","1345171365","1345171370","1345171375","1345171379"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d28e60f1ee05ab98d20037ce8e45102f.jpg","text":"TemporaryFile(/tmp/multipartBody5286111457649772211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314472536,"filename":"image_18032025_17_13_47_5855.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e7332c23f7c921485fe2a822987df75f.jpg","text":"TemporaryFile(/tmp/multipartBody4632756526145633568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314472536,"filename":"image_18032025_17_13_53_5766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd7f5efa2a4c5ec86640559cc9435d46.jpg","text":"TemporaryFile(/tmp/multipartBody899663466489726475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314472536,"filename":"image_18032025_17_13_29_5772.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/152c1ac63b3c228f90ae2b6a066046d7.jpg","text":"TemporaryFile(/tmp/multipartBody2607089118014132816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314472536,"filename":"image_18032025_17_13_42_5809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ba9121085efad069060b8dde5fce19b.jpg","text":"TemporaryFile(/tmp/multipartBody7167135563228239511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314472536,"filename":"image_18032025_17_13_23_5780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/856e94fa2e3051f0a966b79aad8fa508.jpg","text":"TemporaryFile(/tmp/multipartBody5316118507051223298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314472536,"filename":"image_18032025_17_13_36_6764.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171365","file1":"1345171361","file0":"1345171358","file4":"1345171375","file5":"1345171379","file3":"1345171370"},"map_files_photo_id_array":[{"photo_id":"1345171379","filename":"file5"},{"photo_id":"1345171365","filename":"file2"},{"photo_id":"1345171375","filename":"file4"},{"photo_id":"1345171361","filename":"file1"},{"photo_id":"1345171358","filename":"file0"},{"photo_id":"1345171370","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171361":["hashtag1","hashtag2"]},{"1345171358":["hashtag1","hashtag2"]},{"1345171375":["hashtag1","hashtag2"]},{"1345171365":["hashtag1","hashtag2"]},{"1345171379":["hashtag1","hashtag2"]},{"1345171370":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171361, 1345171358, 1345171375, 1345171365, 1345171379, 1345171370)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.303131341934204 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:14:32.255653
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_53_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_48_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_41_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_35_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_30_6669.jpg', 2), ('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_23_5749.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_53_5619.jpg', '/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_48_6657.jpg', '/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_41_5643.jpg', '/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_35_5613.jpg', '/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_30_6669.jpg', '/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_23_5749.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_53_5619.jpg
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_48_6657.jpg
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_41_5643.jpg
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_35_5613.jpg
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_30_6669.jpg
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_23_5749.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.2570171356201172 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:15:02.755470
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_53_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_48_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_41_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_35_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_30_6669.jpg', 2), ('/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_23_5749.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_53_5619.jpg', '/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_48_6657.jpg', '/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_41_5643.jpg', '/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_35_5613.jpg', '/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_30_6669.jpg', '/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_23_5749.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_53_5619.jpg
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_48_6657.jpg
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_41_5643.jpg
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_35_5613.jpg
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_30_6669.jpg
/home/nano/Desktop/images/18032025/17/14/image_18032025_17_14_23_5749.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171433","1345171427","1345171421","1345171430","1345171424","1345171418"],"photo_ids_order":["1345171418","1345171421","1345171424","1345171427","1345171430","1345171433"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e2bcec1f45f4d1ed8a651ffb439c6d17.jpg","text":"TemporaryFile(/tmp/multipartBody9116344491672939871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314563074,"filename":"image_18032025_17_14_23_5749.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8fe113b4027ed65fc3b401d3adc28fc0.jpg","text":"TemporaryFile(/tmp/multipartBody6417275612589734686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314563074,"filename":"image_18032025_17_14_35_5613.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/efb59786a7004ef34a1eb730a4ee676f.jpg","text":"TemporaryFile(/tmp/multipartBody7063513126841014211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314563074,"filename":"image_18032025_17_14_48_6657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6ae6025343d41d14e1b3f14d7b73d5f.jpg","text":"TemporaryFile(/tmp/multipartBody1249296556440867142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314563074,"filename":"image_18032025_17_14_30_6669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/659dffba3da09a835bad2721b018ca40.jpg","text":"TemporaryFile(/tmp/multipartBody1626529706710434642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314563074,"filename":"image_18032025_17_14_41_5643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/99e88fe61595c3f4095650460f5b2338.jpg","text":"TemporaryFile(/tmp/multipartBody7082204044863618637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314563074,"filename":"image_18032025_17_14_53_5619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171424","file1":"1345171421","file0":"1345171418","file4":"1345171430","file5":"1345171433","file3":"1345171427"},"map_files_photo_id_array":[{"photo_id":"1345171433","filename":"file5"},{"photo_id":"1345171424","filename":"file2"},{"photo_id":"1345171430","filename":"file4"},{"photo_id":"1345171421","filename":"file1"},{"photo_id":"1345171418","filename":"file0"},{"photo_id":"1345171427","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171433":["hashtag1","hashtag2"]},{"1345171427":["hashtag1","hashtag2"]},{"1345171421":["hashtag1","hashtag2"]},{"1345171430":["hashtag1","hashtag2"]},{"1345171424":["hashtag1","hashtag2"]},{"1345171418":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171433, 1345171427, 1345171421, 1345171430, 1345171424, 1345171418)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.185607194900513 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:16:02.962122
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_54_6673.jpg', 2), ('/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_47_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_41_5616.jpg', 2), ('/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_36_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_29_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_23_5640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_54_6673.jpg', '/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_47_5627.jpg', '/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_41_5616.jpg', '/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_36_6635.jpg', '/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_29_5640.jpg', '/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_23_5640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_54_6673.jpg
/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_47_5627.jpg
/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_41_5616.jpg
/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_36_6635.jpg
/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_29_5640.jpg
/home/nano/Desktop/images/18032025/17/15/image_18032025_17_15_23_5640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171474","1345171462","1345171479","1345171470","1345171466","1345171451"],"photo_ids_order":["1345171451","1345171462","1345171466","1345171470","1345171474","1345171479"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f09d156599a12db200060e8ffd03e0ee.jpg","text":"TemporaryFile(/tmp/multipartBody5160511286967816658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314623301,"filename":"image_18032025_17_15_29_5640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63df308612435a079eb00c1d748377a2.jpg","text":"TemporaryFile(/tmp/multipartBody6133958641635900863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314623301,"filename":"image_18032025_17_15_47_5627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3361a87cc0177cee10ff636d556abfc8.jpg","text":"TemporaryFile(/tmp/multipartBody5711857254446637282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314623301,"filename":"image_18032025_17_15_23_5640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/96aae43e5c7b22b18d9bf80cd037510d.jpg","text":"TemporaryFile(/tmp/multipartBody9130190982149319955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314623301,"filename":"image_18032025_17_15_36_6635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ad097920eef128e3845f80d829180af.jpg","text":"TemporaryFile(/tmp/multipartBody6985787709116087301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314623301,"filename":"image_18032025_17_15_41_5616.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c1db41bd5ca3f41dc8fc54ff9268aa8.jpg","text":"TemporaryFile(/tmp/multipartBody3406759133988340374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314623301,"filename":"image_18032025_17_15_54_6673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171466","file1":"1345171462","file0":"1345171451","file4":"1345171474","file5":"1345171479","file3":"1345171470"},"map_files_photo_id_array":[{"photo_id":"1345171479","filename":"file5"},{"photo_id":"1345171466","filename":"file2"},{"photo_id":"1345171474","filename":"file4"},{"photo_id":"1345171462","filename":"file1"},{"photo_id":"1345171451","filename":"file0"},{"photo_id":"1345171470","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171474":["hashtag1","hashtag2"]},{"1345171462":["hashtag1","hashtag2"]},{"1345171479":["hashtag1","hashtag2"]},{"1345171470":["hashtag1","hashtag2"]},{"1345171466":["hashtag1","hashtag2"]},{"1345171451":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171474, 1345171462, 1345171479, 1345171470, 1345171466, 1345171451)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 64.10050940513611 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:17:32.664643
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_53_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_47_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_41_5777.jpg', 2), ('/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_35_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_29_5738.jpg', 2), ('/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_24_6768.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_53_5844.jpg', '/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_47_6070.jpg', '/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_41_5777.jpg', '/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_35_5772.jpg', '/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_29_5738.jpg', '/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_24_6768.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_53_5844.jpg
/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_47_6070.jpg
/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_41_5777.jpg
/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_35_5772.jpg
/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_29_5738.jpg
/home/nano/Desktop/images/18032025/17/17/image_18032025_17_17_24_6768.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171504","1345171521","1345171533","1345171527","1345171515","1345171509"],"photo_ids_order":["1345171504","1345171509","1345171515","1345171521","1345171527","1345171533"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8ee1d2d471169d3a388ae1437cee9c13.jpg","text":"TemporaryFile(/tmp/multipartBody1764665269144547594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314713074,"filename":"image_18032025_17_17_53_5844.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/51043013eb34b3c5cd50bc9f5f94f86c.jpg","text":"TemporaryFile(/tmp/multipartBody335106508229954612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314713074,"filename":"image_18032025_17_17_35_5772.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5331f4273e9f73e4dca46f3d61764130.jpg","text":"TemporaryFile(/tmp/multipartBody7818742547406085683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314713074,"filename":"image_18032025_17_17_24_6768.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3cfd1d79ce477f1c814ad781b5a01bdf.jpg","text":"TemporaryFile(/tmp/multipartBody1947069216910552943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314713074,"filename":"image_18032025_17_17_29_5738.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/952603e447981a5a770dff016ad4651e.jpg","text":"TemporaryFile(/tmp/multipartBody8599738520542439365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314713074,"filename":"image_18032025_17_17_41_5777.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4cdaa51e473c7b8be02e5d919cc2517c.jpg","text":"TemporaryFile(/tmp/multipartBody7611201949390897433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314713074,"filename":"image_18032025_17_17_47_6070.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171515","file1":"1345171509","file0":"1345171504","file4":"1345171527","file5":"1345171533","file3":"1345171521"},"map_files_photo_id_array":[{"photo_id":"1345171533","filename":"file5"},{"photo_id":"1345171515","filename":"file2"},{"photo_id":"1345171527","filename":"file4"},{"photo_id":"1345171509","filename":"file1"},{"photo_id":"1345171504","filename":"file0"},{"photo_id":"1345171521","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171504":["hashtag1","hashtag2"]},{"1345171521":["hashtag1","hashtag2"]},{"1345171533":["hashtag1","hashtag2"]},{"1345171527":["hashtag1","hashtag2"]},{"1345171515":["hashtag1","hashtag2"]},{"1345171509":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171504, 1345171521, 1345171533, 1345171527, 1345171515, 1345171509)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.220377206802368 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:18:32.734981
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_54_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_47_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_41_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_36_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_29_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_24_6667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_54_6651.jpg', '/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_47_5629.jpg', '/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_41_5627.jpg', '/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_36_6655.jpg', '/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_29_5647.jpg', '/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_24_6667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_54_6651.jpg
/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_47_5629.jpg
/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_41_5627.jpg
/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_36_6655.jpg
/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_29_5647.jpg
/home/nano/Desktop/images/18032025/17/18/image_18032025_17_18_24_6667.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171555","1345171549","1345171566","1345171575","1345171571","1345171559"],"photo_ids_order":["1345171549","1345171555","1345171559","1345171566","1345171571","1345171575"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e7ed82bb4eb6ce4e46fbc8c63cf9f25.jpg","text":"TemporaryFile(/tmp/multipartBody5631947672056741105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314773067,"filename":"image_18032025_17_18_47_5629.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19a43a3f93f4eab91381d1ace234cf85.jpg","text":"TemporaryFile(/tmp/multipartBody8909608490452026380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314773067,"filename":"image_18032025_17_18_54_6651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/76c02c8e24fed5749e9183fe90e012d6.jpg","text":"TemporaryFile(/tmp/multipartBody175785654631146167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314773067,"filename":"image_18032025_17_18_36_6655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7744b42665b291f3cae1bad26a44f1a5.jpg","text":"TemporaryFile(/tmp/multipartBody85342925683304010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314773067,"filename":"image_18032025_17_18_24_6667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/72396718920d73734ef1a7e3ae682c20.jpg","text":"TemporaryFile(/tmp/multipartBody9061398869780500313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314773067,"filename":"image_18032025_17_18_29_5647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4d2e6d92467f8f219fc120bc19866644.jpg","text":"TemporaryFile(/tmp/multipartBody6534910189598446576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314773067,"filename":"image_18032025_17_18_41_5627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171559","file1":"1345171555","file0":"1345171549","file4":"1345171571","file5":"1345171575","file3":"1345171566"},"map_files_photo_id_array":[{"photo_id":"1345171575","filename":"file5"},{"photo_id":"1345171559","filename":"file2"},{"photo_id":"1345171571","filename":"file4"},{"photo_id":"1345171555","filename":"file1"},{"photo_id":"1345171549","filename":"file0"},{"photo_id":"1345171566","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171555":["hashtag1","hashtag2"]},{"1345171549":["hashtag1","hashtag2"]},{"1345171566":["hashtag1","hashtag2"]},{"1345171575":["hashtag1","hashtag2"]},{"1345171571":["hashtag1","hashtag2"]},{"1345171559":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171555, 1345171549, 1345171566, 1345171575, 1345171571, 1345171559)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.981507062911987 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:19:31.861098
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_54_6625.jpg', 2), ('/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_47_5690.jpg', 2), ('/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_41_5731.jpg', 2), ('/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_35_5973.jpg', 2), ('/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_29_6100.jpg', 2), ('/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_23_5947.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_54_6625.jpg', '/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_47_5690.jpg', '/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_41_5731.jpg', '/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_35_5973.jpg', '/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_29_6100.jpg', '/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_23_5947.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_54_6625.jpg
/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_47_5690.jpg
/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_41_5731.jpg
/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_35_5973.jpg
/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_29_6100.jpg
/home/nano/Desktop/images/18032025/17/19/image_18032025_17_19_23_5947.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171625","1345171588","1345171630","1345171609","1345171595","1345171583"],"photo_ids_order":["1345171583","1345171588","1345171595","1345171609","1345171625","1345171630"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/747fc54c44ed01c0d8b3721b474e6b23.jpg","text":"TemporaryFile(/tmp/multipartBody8673783570957300337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314832232,"filename":"image_18032025_17_19_29_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e347c14da683da4858b9a85b02b98594.jpg","text":"TemporaryFile(/tmp/multipartBody866105549089531033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314832232,"filename":"image_18032025_17_19_47_5690.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6e778c26ba28cc671e4ce7a65495b6f.jpg","text":"TemporaryFile(/tmp/multipartBody5231128433306544831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314832232,"filename":"image_18032025_17_19_23_5947.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/93d14f7a0476fc90fe1e0724d32695a9.jpg","text":"TemporaryFile(/tmp/multipartBody4600919794022226341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314832232,"filename":"image_18032025_17_19_35_5973.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1eb74a8da1a6ead801788698cc2e9383.jpg","text":"TemporaryFile(/tmp/multipartBody5643877623666733978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314832232,"filename":"image_18032025_17_19_41_5731.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/697283a69583351d43337e48a1bbd7ec.jpg","text":"TemporaryFile(/tmp/multipartBody2221608549519650685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314832232,"filename":"image_18032025_17_19_54_6625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171595","file1":"1345171588","file0":"1345171583","file4":"1345171625","file5":"1345171630","file3":"1345171609"},"map_files_photo_id_array":[{"photo_id":"1345171630","filename":"file5"},{"photo_id":"1345171595","filename":"file2"},{"photo_id":"1345171625","filename":"file4"},{"photo_id":"1345171588","filename":"file1"},{"photo_id":"1345171583","filename":"file0"},{"photo_id":"1345171609","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171625":["hashtag1","hashtag2"]},{"1345171588":["hashtag1","hashtag2"]},{"1345171630":["hashtag1","hashtag2"]},{"1345171609":["hashtag1","hashtag2"]},{"1345171595":["hashtag1","hashtag2"]},{"1345171583":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171625, 1345171588, 1345171630, 1345171609, 1345171595, 1345171583)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.127501487731934 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:20:31.982391
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_54_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_48_5900.jpg', 2), ('/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_42_6823.jpg', 2), ('/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_35_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_29_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_23_5893.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_54_6105.jpg', '/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_48_5900.jpg', '/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_42_6823.jpg', '/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_35_5754.jpg', '/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_29_5881.jpg', '/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_23_5893.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_54_6105.jpg
/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_48_5900.jpg
/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_42_6823.jpg
/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_35_5754.jpg
/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_29_5881.jpg
/home/nano/Desktop/images/18032025/17/20/image_18032025_17_20_23_5893.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171655","1345171649","1345171666","1345171638","1345171661","1345171643"],"photo_ids_order":["1345171638","1345171643","1345171649","1345171655","1345171661","1345171666"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/56fe99f6b6177fe1f16da131250a4442.jpg","text":"TemporaryFile(/tmp/multipartBody2322038368530430457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314892411,"filename":"image_18032025_17_20_35_5754.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bc9659e3d2607ffbd9d7581addc04442.jpg","text":"TemporaryFile(/tmp/multipartBody7535095758452543588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314892411,"filename":"image_18032025_17_20_42_6823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7230222007c427433ab1ac9c2ed7e7c3.jpg","text":"TemporaryFile(/tmp/multipartBody7672167097032638209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314892411,"filename":"image_18032025_17_20_23_5893.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4578e496ead37128bb722ff2786aa9d9.jpg","text":"TemporaryFile(/tmp/multipartBody7842318049632807304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314892411,"filename":"image_18032025_17_20_54_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/33af0babee89486d79fa953255c261f7.jpg","text":"TemporaryFile(/tmp/multipartBody6484311989981708056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314892411,"filename":"image_18032025_17_20_29_5881.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b57b0e3f530ce7fef2de986ca79edbcc.jpg","text":"TemporaryFile(/tmp/multipartBody8973850592549391892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314892411,"filename":"image_18032025_17_20_48_5900.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171649","file1":"1345171643","file0":"1345171638","file4":"1345171661","file5":"1345171666","file3":"1345171655"},"map_files_photo_id_array":[{"photo_id":"1345171666","filename":"file5"},{"photo_id":"1345171649","filename":"file2"},{"photo_id":"1345171661","filename":"file4"},{"photo_id":"1345171643","filename":"file1"},{"photo_id":"1345171638","filename":"file0"},{"photo_id":"1345171655","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171655":["hashtag1","hashtag2"]},{"1345171649":["hashtag1","hashtag2"]},{"1345171666":["hashtag1","hashtag2"]},{"1345171638":["hashtag1","hashtag2"]},{"1345171661":["hashtag1","hashtag2"]},{"1345171643":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171655, 1345171649, 1345171666, 1345171638, 1345171661, 1345171643)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.00309419631958 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:21:32.142626
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_53_5949.jpg', 2), ('/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_47_5925.jpg', 2), ('/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_41_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_36_5742.jpg', 2), ('/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_30_6812.jpg', 2), ('/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_23_5888.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_53_5949.jpg', '/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_47_5925.jpg', '/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_41_5833.jpg', '/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_36_5742.jpg', '/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_30_6812.jpg', '/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_23_5888.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_53_5949.jpg
/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_47_5925.jpg
/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_41_5833.jpg
/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_36_5742.jpg
/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_30_6812.jpg
/home/nano/Desktop/images/18032025/17/21/image_18032025_17_21_23_5888.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345171904","1345171939","1345171804","1345171872","1345171836","1345171967"],"photo_ids_order":["1345171804","1345171836","1345171872","1345171904","1345171939","1345171967"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/06ec7440d9c2b3390e4530e884d7d396.jpg","text":"TemporaryFile(/tmp/multipartBody7860557156068039432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314952557,"filename":"image_18032025_17_21_36_5742.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/387287d9c230c389e45c19fb4d2a4303.jpg","text":"TemporaryFile(/tmp/multipartBody2758667510776760862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314952557,"filename":"image_18032025_17_21_30_6812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/307ba57af1377aed1d29b2b8dd35c624.jpg","text":"TemporaryFile(/tmp/multipartBody4767545317246546772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314952557,"filename":"image_18032025_17_21_53_5949.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9cf8fd17d246be8a1c65d33fd5be07a.jpg","text":"TemporaryFile(/tmp/multipartBody4597771105727530377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314952557,"filename":"image_18032025_17_21_41_5833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad13492d072f13429f16491ccb289a7d.jpg","text":"TemporaryFile(/tmp/multipartBody776879781776059748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314952557,"filename":"image_18032025_17_21_47_5925.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d351a073b12b8c22e43a8b4c1d842a6f.jpg","text":"TemporaryFile(/tmp/multipartBody1569000596689183111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742314952557,"filename":"image_18032025_17_21_23_5888.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345171872","file1":"1345171836","file0":"1345171804","file4":"1345171939","file5":"1345171967","file3":"1345171904"},"map_files_photo_id_array":[{"photo_id":"1345171967","filename":"file5"},{"photo_id":"1345171872","filename":"file2"},{"photo_id":"1345171939","filename":"file4"},{"photo_id":"1345171836","filename":"file1"},{"photo_id":"1345171804","filename":"file0"},{"photo_id":"1345171904","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345171904":["hashtag1","hashtag2"]},{"1345171939":["hashtag1","hashtag2"]},{"1345171804":["hashtag1","hashtag2"]},{"1345171872":["hashtag1","hashtag2"]},{"1345171836":["hashtag1","hashtag2"]},{"1345171967":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345171904, 1345171939, 1345171804, 1345171872, 1345171836, 1345171967)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.00307536125183 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:22:32.298371
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_54_6720.jpg', 2), ('/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_47_5854.jpg', 2), ('/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_41_5809.jpg', 2), ('/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_35_5837.jpg', 2), ('/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_30_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_23_6122.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_54_6720.jpg', '/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_47_5854.jpg', '/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_41_5809.jpg', '/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_35_5837.jpg', '/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_30_6107.jpg', '/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_23_6122.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_54_6720.jpg
/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_47_5854.jpg
/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_41_5809.jpg
/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_35_5837.jpg
/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_30_6107.jpg
/home/nano/Desktop/images/18032025/17/22/image_18032025_17_22_23_6122.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345172126","1345172095","1345172155","1345172107","1345172101","1345172112"],"photo_ids_order":["1345172095","1345172101","1345172107","1345172112","1345172126","1345172155"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4fb8d33e24465d40c99618e3048c5fb7.jpg","text":"TemporaryFile(/tmp/multipartBody5653121043178051277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315012723,"filename":"image_18032025_17_22_30_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6a82e4ae30dd48a4e9664bf2f7adff3.jpg","text":"TemporaryFile(/tmp/multipartBody2040923146912321499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315012723,"filename":"image_18032025_17_22_54_6720.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ec33f864435fa076ef5168e99d27fe5.jpg","text":"TemporaryFile(/tmp/multipartBody3760547894212951898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315012723,"filename":"image_18032025_17_22_23_6122.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bc9f91837cf193d920c8a8ec0f97658a.jpg","text":"TemporaryFile(/tmp/multipartBody7729727493891995057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315012723,"filename":"image_18032025_17_22_41_5809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19e7348be1ae9d5ec48ba463dbbcbefe.jpg","text":"TemporaryFile(/tmp/multipartBody1256983919369446368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315012723,"filename":"image_18032025_17_22_47_5854.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/100a50d9d75b5ed2d45da82085349e40.jpg","text":"TemporaryFile(/tmp/multipartBody2141595476900514353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315012723,"filename":"image_18032025_17_22_35_5837.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345172107","file1":"1345172101","file0":"1345172095","file4":"1345172126","file5":"1345172155","file3":"1345172112"},"map_files_photo_id_array":[{"photo_id":"1345172155","filename":"file5"},{"photo_id":"1345172107","filename":"file2"},{"photo_id":"1345172126","filename":"file4"},{"photo_id":"1345172101","filename":"file1"},{"photo_id":"1345172095","filename":"file0"},{"photo_id":"1345172112","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345172126":["hashtag1","hashtag2"]},{"1345172095":["hashtag1","hashtag2"]},{"1345172155":["hashtag1","hashtag2"]},{"1345172107":["hashtag1","hashtag2"]},{"1345172101":["hashtag1","hashtag2"]},{"1345172112":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345172126, 1345172095, 1345172155, 1345172107, 1345172101, 1345172112)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.91249489784241 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:23:32.416342
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_53_6035.jpg', 2), ('/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_47_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_42_5916.jpg', 2), ('/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_36_6744.jpg', 2), ('/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_29_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_23_5922.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_53_6035.jpg', '/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_47_5833.jpg', '/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_42_5916.jpg', '/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_36_6744.jpg', '/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_29_5798.jpg', '/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_23_5922.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_53_6035.jpg
/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_47_5833.jpg
/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_42_5916.jpg
/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_36_6744.jpg
/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_29_5798.jpg
/home/nano/Desktop/images/18032025/17/23/image_18032025_17_23_23_5922.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345172377","1345172326","1345172346","1345172415","1345172406","1345172411"],"photo_ids_order":["1345172326","1345172346","1345172377","1345172406","1345172411","1345172415"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9f71284250538fe1f947aff0a0e038be.jpg","text":"TemporaryFile(/tmp/multipartBody4092886894350159662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315072865,"filename":"image_18032025_17_23_42_5916.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/002e2e4247d6437ef3fac81cc0ed7fae.jpg","text":"TemporaryFile(/tmp/multipartBody2137024166069032597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315072865,"filename":"image_18032025_17_23_53_6035.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aac2b32395ef03894c7b9e687367b96f.jpg","text":"TemporaryFile(/tmp/multipartBody5515481920659885435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315072865,"filename":"image_18032025_17_23_47_5833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd8b1e746f616309de88249736e90a1d.jpg","text":"TemporaryFile(/tmp/multipartBody8433912201997098373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315072865,"filename":"image_18032025_17_23_23_5922.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ed834b881f8460473d89ffb6e7053384.jpg","text":"TemporaryFile(/tmp/multipartBody5681979092227342965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315072865,"filename":"image_18032025_17_23_36_6744.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5d253894841ea15a6103f6b7ae06d70b.jpg","text":"TemporaryFile(/tmp/multipartBody613695181121653055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315072865,"filename":"image_18032025_17_23_29_5798.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345172377","file1":"1345172346","file0":"1345172326","file4":"1345172411","file5":"1345172415","file3":"1345172406"},"map_files_photo_id_array":[{"photo_id":"1345172415","filename":"file5"},{"photo_id":"1345172377","filename":"file2"},{"photo_id":"1345172411","filename":"file4"},{"photo_id":"1345172346","filename":"file1"},{"photo_id":"1345172326","filename":"file0"},{"photo_id":"1345172406","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345172377":["hashtag1","hashtag2"]},{"1345172326":["hashtag1","hashtag2"]},{"1345172346":["hashtag1","hashtag2"]},{"1345172415":["hashtag1","hashtag2"]},{"1345172406":["hashtag1","hashtag2"]},{"1345172411":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345172377, 1345172326, 1345172346, 1345172415, 1345172406, 1345172411)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.01552176475525 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:24:32.548860
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_54_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_48_6708.jpg', 2), ('/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_41_6079.jpg', 2), ('/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_29_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_23_5765.jpg', 2), ('/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_17_5882.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_54_5838.jpg', '/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_48_6708.jpg', '/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_41_6079.jpg', '/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_29_5772.jpg', '/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_23_5765.jpg', '/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_17_5882.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_54_5838.jpg
/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_48_6708.jpg
/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_41_6079.jpg
/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_29_5772.jpg
/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_23_5765.jpg
/home/nano/Desktop/images/18032025/17/24/image_18032025_17_24_17_5882.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345172425","1345172445","1345172457","1345172438","1345172453","1345172432"],"photo_ids_order":["1345172425","1345172432","1345172438","1345172445","1345172453","1345172457"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9f72e77fb0af510a6414fb826a0a8a66.jpg","text":"TemporaryFile(/tmp/multipartBody6742409782060799049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315132971,"filename":"image_18032025_17_24_54_5838.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d28b08942dc52489f94c9aa3372800de.jpg","text":"TemporaryFile(/tmp/multipartBody7929385772022779450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315132971,"filename":"image_18032025_17_24_29_5772.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/107df87be5cf1442cacb40d7ef8a344a.jpg","text":"TemporaryFile(/tmp/multipartBody4452194240501605244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315132971,"filename":"image_18032025_17_24_17_5882.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a458edea5d0f33f878e04e4c502579c4.jpg","text":"TemporaryFile(/tmp/multipartBody6704362529862863471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315132971,"filename":"image_18032025_17_24_41_6079.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e67a21b114885e369b02480d1ced77d.jpg","text":"TemporaryFile(/tmp/multipartBody5610350649122675623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315132971,"filename":"image_18032025_17_24_23_5765.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/585d9111e240abb467a596ac2724d2d5.jpg","text":"TemporaryFile(/tmp/multipartBody7989971596171450394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315132971,"filename":"image_18032025_17_24_48_6708.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345172438","file1":"1345172432","file0":"1345172425","file4":"1345172453","file5":"1345172457","file3":"1345172445"},"map_files_photo_id_array":[{"photo_id":"1345172457","filename":"file5"},{"photo_id":"1345172438","filename":"file2"},{"photo_id":"1345172453","filename":"file4"},{"photo_id":"1345172432","filename":"file1"},{"photo_id":"1345172425","filename":"file0"},{"photo_id":"1345172445","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345172425":["hashtag1","hashtag2"]},{"1345172445":["hashtag1","hashtag2"]},{"1345172457":["hashtag1","hashtag2"]},{"1345172438":["hashtag1","hashtag2"]},{"1345172453":["hashtag1","hashtag2"]},{"1345172432":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345172425, 1345172445, 1345172457, 1345172438, 1345172453, 1345172432)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.13714861869812 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:25:32.668465
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_54_5912.jpg', 2), ('/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_48_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_42_6821.jpg', 2), ('/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_35_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_29_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_23_6009.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_54_5912.jpg', '/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_48_5881.jpg', '/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_42_6821.jpg', '/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_35_5798.jpg', '/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_29_6007.jpg', '/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_23_6009.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_54_5912.jpg
/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_48_5881.jpg
/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_42_6821.jpg
/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_35_5798.jpg
/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_29_6007.jpg
/home/nano/Desktop/images/18032025/17/25/image_18032025_17_25_23_6009.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345172791","1345172779","1345172788","1345172746","1345172715","1345172795"],"photo_ids_order":["1345172715","1345172746","1345172779","1345172788","1345172791","1345172795"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a3bf9ef70032e3276edc8643233bd64.jpg","text":"TemporaryFile(/tmp/multipartBody9023540619005135646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315193098,"filename":"image_18032025_17_25_29_6007.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/71eeca017e8116440095f100ad5fa6fb.jpg","text":"TemporaryFile(/tmp/multipartBody4106888864908840139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315193098,"filename":"image_18032025_17_25_42_6821.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2de346d1b87acc3cb8fb391f1e0cba14.jpg","text":"TemporaryFile(/tmp/multipartBody882105497774685441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315193098,"filename":"image_18032025_17_25_35_5798.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3b4eddfe595a2a416c30cd502ddc8484.jpg","text":"TemporaryFile(/tmp/multipartBody1731692439652671685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315193098,"filename":"image_18032025_17_25_48_5881.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7255f1181c9bb00ba14d8f8940419e63.jpg","text":"TemporaryFile(/tmp/multipartBody1946921890646966040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315193098,"filename":"image_18032025_17_25_54_5912.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/77b36814a991b535b5eab7ed9240b8af.jpg","text":"TemporaryFile(/tmp/multipartBody3581631614555485556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315193098,"filename":"image_18032025_17_25_23_6009.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345172779","file1":"1345172746","file0":"1345172715","file4":"1345172791","file5":"1345172795","file3":"1345172788"},"map_files_photo_id_array":[{"photo_id":"1345172795","filename":"file5"},{"photo_id":"1345172779","filename":"file2"},{"photo_id":"1345172791","filename":"file4"},{"photo_id":"1345172746","filename":"file1"},{"photo_id":"1345172715","filename":"file0"},{"photo_id":"1345172788","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345172791":["hashtag1","hashtag2"]},{"1345172779":["hashtag1","hashtag2"]},{"1345172788":["hashtag1","hashtag2"]},{"1345172746":["hashtag1","hashtag2"]},{"1345172715":["hashtag1","hashtag2"]},{"1345172795":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345172791, 1345172779, 1345172788, 1345172746, 1345172715, 1345172795)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.856143712997437 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:26:32.758319
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_47_5862.jpg', 2), ('/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_41_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_35_5938.jpg', 2), ('/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_29_5917.jpg', 2), ('/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_23_6085.jpg', 2), ('/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_17_5904.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_47_5862.jpg', '/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_41_6089.jpg', '/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_35_5938.jpg', '/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_29_5917.jpg', '/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_23_6085.jpg', '/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_17_5904.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_47_5862.jpg
/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_41_6089.jpg
/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_35_5938.jpg
/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_29_5917.jpg
/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_23_6085.jpg
/home/nano/Desktop/images/18032025/17/26/image_18032025_17_26_17_5904.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345172809","1345172803","1345172823","1345172826","1345172814","1345172819"],"photo_ids_order":["1345172803","1345172809","1345172814","1345172819","1345172823","1345172826"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2afb9babc35a0dbcda95244b5b746ddb.jpg","text":"TemporaryFile(/tmp/multipartBody8797872615253887653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315253209,"filename":"image_18032025_17_26_41_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9821574061436037ac97a6b6f5d53441.jpg","text":"TemporaryFile(/tmp/multipartBody1804208270720122368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315253209,"filename":"image_18032025_17_26_47_5862.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/abfd85efee97f3bbfa4ed0984aa330cd.jpg","text":"TemporaryFile(/tmp/multipartBody6653694556453774662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315253209,"filename":"image_18032025_17_26_23_6085.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/65b848ab1399008c0cf7dd21f9427797.jpg","text":"TemporaryFile(/tmp/multipartBody2520604156624881953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315253209,"filename":"image_18032025_17_26_17_5904.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d22dbd4f0b339f7ca43c20183b89db93.jpg","text":"TemporaryFile(/tmp/multipartBody749004432956065779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315253209,"filename":"image_18032025_17_26_35_5938.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eafd3257d5ad2aa903e2d3df895ea693.jpg","text":"TemporaryFile(/tmp/multipartBody6640798052760225057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315253209,"filename":"image_18032025_17_26_29_5917.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345172814","file1":"1345172809","file0":"1345172803","file4":"1345172823","file5":"1345172826","file3":"1345172819"},"map_files_photo_id_array":[{"photo_id":"1345172826","filename":"file5"},{"photo_id":"1345172814","filename":"file2"},{"photo_id":"1345172823","filename":"file4"},{"photo_id":"1345172809","filename":"file1"},{"photo_id":"1345172803","filename":"file0"},{"photo_id":"1345172819","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345172809":["hashtag1","hashtag2"]},{"1345172803":["hashtag1","hashtag2"]},{"1345172823":["hashtag1","hashtag2"]},{"1345172826":["hashtag1","hashtag2"]},{"1345172814":["hashtag1","hashtag2"]},{"1345172819":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345172809, 1345172803, 1345172823, 1345172826, 1345172814, 1345172819)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.71259641647339 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:27:31.895032
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_41_5978.jpg', 2), ('/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_35_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_30_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_23_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_17_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_12_6672.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_41_5978.jpg', '/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_35_5657.jpg', '/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_30_6624.jpg', '/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_23_5645.jpg', '/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_17_5623.jpg', '/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_12_6672.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_41_5978.jpg
/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_35_5657.jpg
/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_30_6624.jpg
/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_23_5645.jpg
/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_17_5623.jpg
/home/nano/Desktop/images/18032025/17/27/image_18032025_17_27_12_6672.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345172857","1345172854","1345172846","1345172849","1345172840","1345172843"],"photo_ids_order":["1345172840","1345172843","1345172846","1345172849","1345172854","1345172857"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cfa66cc95f6cfbb07d73fbba008d7954.jpg","text":"TemporaryFile(/tmp/multipartBody337197603614010394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315312260,"filename":"image_18032025_17_27_12_6672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6bad75913bc4d87f732e8350bac11b9d.jpg","text":"TemporaryFile(/tmp/multipartBody1079351565228815788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315312260,"filename":"image_18032025_17_27_17_5623.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/39c802672fd5197a57ad6c4c7d60cf09.jpg","text":"TemporaryFile(/tmp/multipartBody5649034936906555421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315312260,"filename":"image_18032025_17_27_30_6624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b13e187bdb0cda4c37c2b5aab5fbeb2.jpg","text":"TemporaryFile(/tmp/multipartBody8727978420761146978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315312260,"filename":"image_18032025_17_27_23_5645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3e8ee2d47fe4049124841d962e2fafc.jpg","text":"TemporaryFile(/tmp/multipartBody7344989922679569291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315312260,"filename":"image_18032025_17_27_41_5978.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/752496dfdecc98d5466165403a10afdd.jpg","text":"TemporaryFile(/tmp/multipartBody3928197358501413042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315312260,"filename":"image_18032025_17_27_35_5657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345172846","file1":"1345172843","file0":"1345172840","file4":"1345172854","file5":"1345172857","file3":"1345172849"},"map_files_photo_id_array":[{"photo_id":"1345172857","filename":"file5"},{"photo_id":"1345172846","filename":"file2"},{"photo_id":"1345172854","filename":"file4"},{"photo_id":"1345172843","filename":"file1"},{"photo_id":"1345172840","filename":"file0"},{"photo_id":"1345172849","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345172857":["hashtag1","hashtag2"]},{"1345172854":["hashtag1","hashtag2"]},{"1345172846":["hashtag1","hashtag2"]},{"1345172849":["hashtag1","hashtag2"]},{"1345172840":["hashtag1","hashtag2"]},{"1345172843":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345172857, 1345172854, 1345172846, 1345172849, 1345172840, 1345172843)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.89821147918701 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:28:31.993404
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_54_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_47_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_41_6606.jpg', 2), ('/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_35_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_29_5675.jpg', 2), ('/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_24_6609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_54_6644.jpg', '/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_47_5639.jpg', '/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_41_6606.jpg', '/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_35_5644.jpg', '/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_29_5675.jpg', '/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_24_6609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_54_6644.jpg
/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_47_5639.jpg
/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_41_6606.jpg
/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_35_5644.jpg
/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_29_5675.jpg
/home/nano/Desktop/images/18032025/17/28/image_18032025_17_28_24_6609.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345172881","1345172875","1345172884","1345172878","1345172887","1345172872"],"photo_ids_order":["1345172872","1345172875","1345172878","1345172881","1345172884","1345172887"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ca7f7d3f17e1bf46feffe12fc45bca8.jpg","text":"TemporaryFile(/tmp/multipartBody5882237652017104912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315372320,"filename":"image_18032025_17_28_35_5644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c8788a6210133ea064ad9e76c35cd7b.jpg","text":"TemporaryFile(/tmp/multipartBody8612975555393821440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315372320,"filename":"image_18032025_17_28_47_5639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2fc7d1941d25294b6a155c6fe15acce8.jpg","text":"TemporaryFile(/tmp/multipartBody496632819926448036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315372320,"filename":"image_18032025_17_28_29_5675.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/525a5010c3742345d460b806e7c22e46.jpg","text":"TemporaryFile(/tmp/multipartBody5197847020504613748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315372320,"filename":"image_18032025_17_28_41_6606.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7131a375de140a62e94def3d05ab1047.jpg","text":"TemporaryFile(/tmp/multipartBody3067274709897047449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315372320,"filename":"image_18032025_17_28_24_6609.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/80ef92abf1292d60e592b8809b42363f.jpg","text":"TemporaryFile(/tmp/multipartBody7450314044417546489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315372320,"filename":"image_18032025_17_28_54_6644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345172878","file1":"1345172875","file0":"1345172872","file4":"1345172884","file5":"1345172887","file3":"1345172881"},"map_files_photo_id_array":[{"photo_id":"1345172887","filename":"file5"},{"photo_id":"1345172878","filename":"file2"},{"photo_id":"1345172884","filename":"file4"},{"photo_id":"1345172875","filename":"file1"},{"photo_id":"1345172872","filename":"file0"},{"photo_id":"1345172881","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345172881":["hashtag1","hashtag2"]},{"1345172875":["hashtag1","hashtag2"]},{"1345172884":["hashtag1","hashtag2"]},{"1345172878":["hashtag1","hashtag2"]},{"1345172887":["hashtag1","hashtag2"]},{"1345172872":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345172881, 1345172875, 1345172884, 1345172878, 1345172887, 1345172872)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.11441159248352 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:29:32.113034
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_53_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_48_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_41_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_35_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_30_6674.jpg', 2), ('/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_23_5656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_53_5621.jpg', '/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_48_6651.jpg', '/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_41_5621.jpg', '/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_35_5654.jpg', '/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_30_6674.jpg', '/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_23_5656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_53_5621.jpg
/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_48_6651.jpg
/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_41_5621.jpg
/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_35_5654.jpg
/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_30_6674.jpg
/home/nano/Desktop/images/18032025/17/29/image_18032025_17_29_23_5656.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345172923","1345172961","1345172946","1345172919","1345172963","1345172915"],"photo_ids_order":["1345172915","1345172919","1345172923","1345172946","1345172961","1345172963"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/64637997b34be4539cc89d8f580ca8b6.jpg","text":"TemporaryFile(/tmp/multipartBody8615430931598212942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315432449,"filename":"image_18032025_17_29_41_5621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/91b1bafe62acd865ac9a08575cf250e7.jpg","text":"TemporaryFile(/tmp/multipartBody189197084901029087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315432449,"filename":"image_18032025_17_29_30_6674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/30638200ee1d8f03d4fded3da2a8ce57.jpg","text":"TemporaryFile(/tmp/multipartBody2177536230531301290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315432449,"filename":"image_18032025_17_29_35_5654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/65b3a56eb88ce56201726df681a8eb54.jpg","text":"TemporaryFile(/tmp/multipartBody1499323735797074526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315432449,"filename":"image_18032025_17_29_48_6651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e00cd4ff9056ba9875c262330b947645.jpg","text":"TemporaryFile(/tmp/multipartBody4723283620634352624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315432449,"filename":"image_18032025_17_29_23_5656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14fe47b7eb25cf7596da9864edd925cb.jpg","text":"TemporaryFile(/tmp/multipartBody9052620870877879372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315432449,"filename":"image_18032025_17_29_53_5621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345172923","file1":"1345172919","file0":"1345172915","file4":"1345172961","file5":"1345172963","file3":"1345172946"},"map_files_photo_id_array":[{"photo_id":"1345172963","filename":"file5"},{"photo_id":"1345172923","filename":"file2"},{"photo_id":"1345172961","filename":"file4"},{"photo_id":"1345172919","filename":"file1"},{"photo_id":"1345172915","filename":"file0"},{"photo_id":"1345172946","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345172923":["hashtag1","hashtag2"]},{"1345172961":["hashtag1","hashtag2"]},{"1345172946":["hashtag1","hashtag2"]},{"1345172919":["hashtag1","hashtag2"]},{"1345172963":["hashtag1","hashtag2"]},{"1345172915":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345172923, 1345172961, 1345172946, 1345172919, 1345172963, 1345172915)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.20707654953003 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:30:32.233990
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_53_5707.jpg', 2), ('/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_47_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_41_6677.jpg', 2), ('/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_35_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_29_5669.jpg', 2), ('/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_23_6673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_53_5707.jpg', '/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_47_5631.jpg', '/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_41_6677.jpg', '/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_35_5650.jpg', '/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_29_5669.jpg', '/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_23_6673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_53_5707.jpg
/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_47_5631.jpg
/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_41_6677.jpg
/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_35_5650.jpg
/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_29_5669.jpg
/home/nano/Desktop/images/18032025/17/30/image_18032025_17_30_23_6673.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345172983","1345172985","1345172994","1345172988","1345172990","1345172992"],"photo_ids_order":["1345172983","1345172985","1345172988","1345172990","1345172992","1345172994"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14fe0ff3fd247a0a5bff9a10308c25ce.jpg","text":"TemporaryFile(/tmp/multipartBody2306913859611955092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315492567,"filename":"image_18032025_17_30_53_5707.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/981ce62a4e77c9c03d33979f256ced50.jpg","text":"TemporaryFile(/tmp/multipartBody5568793794177559460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315492567,"filename":"image_18032025_17_30_47_5631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/67b100b3269dabfa0dc88b71fa26e63e.jpg","text":"TemporaryFile(/tmp/multipartBody9084455305978930641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315492567,"filename":"image_18032025_17_30_23_6673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7aa7499eb513ddbfd806660731ff8e22.jpg","text":"TemporaryFile(/tmp/multipartBody5249431215222595922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315492567,"filename":"image_18032025_17_30_41_6677.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9941fe04fdbfe97a58453807ac2d4e3b.jpg","text":"TemporaryFile(/tmp/multipartBody3708044168380184590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315492567,"filename":"image_18032025_17_30_35_5650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/995fa910147ef464fb6be537cd621201.jpg","text":"TemporaryFile(/tmp/multipartBody719316902881358848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315492567,"filename":"image_18032025_17_30_29_5669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345172988","file1":"1345172985","file0":"1345172983","file4":"1345172992","file5":"1345172994","file3":"1345172990"},"map_files_photo_id_array":[{"photo_id":"1345172994","filename":"file5"},{"photo_id":"1345172988","filename":"file2"},{"photo_id":"1345172992","filename":"file4"},{"photo_id":"1345172985","filename":"file1"},{"photo_id":"1345172983","filename":"file0"},{"photo_id":"1345172990","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345172983":["hashtag1","hashtag2"]},{"1345172985":["hashtag1","hashtag2"]},{"1345172994":["hashtag1","hashtag2"]},{"1345172988":["hashtag1","hashtag2"]},{"1345172990":["hashtag1","hashtag2"]},{"1345172992":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345172983, 1345172985, 1345172994, 1345172988, 1345172990, 1345172992)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.264140844345093 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:31:32.332433
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_53_5739.jpg', 2), ('/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_47_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_42_6848.jpg', 2), ('/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_35_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_29_5845.jpg', 2), ('/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_23_5644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_53_5739.jpg', '/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_47_5632.jpg', '/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_42_6848.jpg', '/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_35_5868.jpg', '/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_29_5845.jpg', '/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_23_5644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_53_5739.jpg
/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_47_5632.jpg
/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_42_6848.jpg
/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_35_5868.jpg
/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_29_5845.jpg
/home/nano/Desktop/images/18032025/17/31/image_18032025_17_31_23_5644.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345173025","1345173019","1345173028","1345173022","1345173033","1345173032"],"photo_ids_order":["1345173019","1345173022","1345173025","1345173028","1345173032","1345173033"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a1787d90b015c7fe018073efa5f70fc7.jpg","text":"TemporaryFile(/tmp/multipartBody6537427879289026205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315552717,"filename":"image_18032025_17_31_42_6848.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/895bab73b74ec6bbe7001cd02d9ecb14.jpg","text":"TemporaryFile(/tmp/multipartBody8439585165993206114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315552717,"filename":"image_18032025_17_31_53_5739.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8008dc4620f0ad9340a668b58c43128f.jpg","text":"TemporaryFile(/tmp/multipartBody6129708600196872922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315552717,"filename":"image_18032025_17_31_35_5868.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/484a5bbb7ef28e00876f47a74d80dd51.jpg","text":"TemporaryFile(/tmp/multipartBody6790172908349992468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315552717,"filename":"image_18032025_17_31_47_5632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a38f117f305c3a2acaae6aa7edc408e5.jpg","text":"TemporaryFile(/tmp/multipartBody8343089955082093955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315552717,"filename":"image_18032025_17_31_23_5644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/93ba9a1cfb419be9196cb98166cd224a.jpg","text":"TemporaryFile(/tmp/multipartBody8310648461717218604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315552717,"filename":"image_18032025_17_31_29_5845.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345173025","file1":"1345173022","file0":"1345173019","file4":"1345173032","file5":"1345173033","file3":"1345173028"},"map_files_photo_id_array":[{"photo_id":"1345173033","filename":"file5"},{"photo_id":"1345173025","filename":"file2"},{"photo_id":"1345173032","filename":"file4"},{"photo_id":"1345173022","filename":"file1"},{"photo_id":"1345173019","filename":"file0"},{"photo_id":"1345173028","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345173025":["hashtag1","hashtag2"]},{"1345173019":["hashtag1","hashtag2"]},{"1345173028":["hashtag1","hashtag2"]},{"1345173022":["hashtag1","hashtag2"]},{"1345173033":["hashtag1","hashtag2"]},{"1345173032":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345173025, 1345173019, 1345173028, 1345173022, 1345173033, 1345173032)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.92504644393921 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:32:32.456629
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_53_5727.jpg', 2), ('/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_47_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_41_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_36_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_29_5659.jpg', 2), ('/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_23_5666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_53_5727.jpg', '/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_47_5662.jpg', '/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_41_5653.jpg', '/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_36_6667.jpg', '/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_29_5659.jpg', '/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_23_5666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_53_5727.jpg
/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_47_5662.jpg
/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_41_5653.jpg
/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_36_6667.jpg
/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_29_5659.jpg
/home/nano/Desktop/images/18032025/17/32/image_18032025_17_32_23_5666.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345173124","1345173093","1345173089","1345173080","1345173085","1345173097"],"photo_ids_order":["1345173080","1345173085","1345173089","1345173093","1345173097","1345173124"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ba07b291f0af2270462067cf22bde41.jpg","text":"TemporaryFile(/tmp/multipartBody519893846136407226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315612806,"filename":"image_18032025_17_32_23_5666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b1905a3924417a4694793a3f6b3f64be.jpg","text":"TemporaryFile(/tmp/multipartBody8290939819600675189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315612806,"filename":"image_18032025_17_32_36_6667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/919eab1cc580e890a63346591a36b0bf.jpg","text":"TemporaryFile(/tmp/multipartBody4954793856207802208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315612806,"filename":"image_18032025_17_32_41_5653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c8f0755fbec0376f82a15a4458d0a35f.jpg","text":"TemporaryFile(/tmp/multipartBody5200817427191619645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315612806,"filename":"image_18032025_17_32_53_5727.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4296ce94be4bda27fbe884f139dbd33c.jpg","text":"TemporaryFile(/tmp/multipartBody7216954996053566948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315612806,"filename":"image_18032025_17_32_47_5662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/200b5ceed09fc1ddf135b4b73aa01ce8.jpg","text":"TemporaryFile(/tmp/multipartBody146410801109171656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315612806,"filename":"image_18032025_17_32_29_5659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345173089","file1":"1345173085","file0":"1345173080","file4":"1345173097","file5":"1345173124","file3":"1345173093"},"map_files_photo_id_array":[{"photo_id":"1345173124","filename":"file5"},{"photo_id":"1345173089","filename":"file2"},{"photo_id":"1345173097","filename":"file4"},{"photo_id":"1345173085","filename":"file1"},{"photo_id":"1345173080","filename":"file0"},{"photo_id":"1345173093","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345173124":["hashtag1","hashtag2"]},{"1345173093":["hashtag1","hashtag2"]},{"1345173089":["hashtag1","hashtag2"]},{"1345173080":["hashtag1","hashtag2"]},{"1345173085":["hashtag1","hashtag2"]},{"1345173097":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345173124, 1345173093, 1345173089, 1345173080, 1345173085, 1345173097)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.920042753219604 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:33:32.581627
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_54_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_47_5700.jpg', 2), ('/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_41_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_35_5684.jpg', 2), ('/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_30_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_23_5658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_54_6643.jpg', '/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_47_5700.jpg', '/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_41_5662.jpg', '/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_35_5684.jpg', '/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_30_6667.jpg', '/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_23_5658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_54_6643.jpg
/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_47_5700.jpg
/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_41_5662.jpg
/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_35_5684.jpg
/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_30_6667.jpg
/home/nano/Desktop/images/18032025/17/33/image_18032025_17_33_23_5658.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345173334","1345173232","1345173330","1345173293","1345173323","1345173265"],"photo_ids_order":["1345173232","1345173265","1345173293","1345173323","1345173330","1345173334"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/03ce3327faeeb004ff746156438e7b0a.jpg","text":"TemporaryFile(/tmp/multipartBody4429481945868890571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315672922,"filename":"image_18032025_17_33_23_5658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/760a71ee38e71046c45f81b9afa5777b.jpg","text":"TemporaryFile(/tmp/multipartBody951118299502357705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315672922,"filename":"image_18032025_17_33_54_6643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a3007987f57f163590713fd83ac4d4e.jpg","text":"TemporaryFile(/tmp/multipartBody7269457558053397864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315672922,"filename":"image_18032025_17_33_30_6667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f79e2698534fd8485ea1051ca011be22.jpg","text":"TemporaryFile(/tmp/multipartBody6933749340373795302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315672922,"filename":"image_18032025_17_33_41_5662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/213fb599f67700b664a56d2b2ee06198.jpg","text":"TemporaryFile(/tmp/multipartBody912325951863346092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315672922,"filename":"image_18032025_17_33_35_5684.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/efc7fd1d03b1c4afe02951b175b65874.jpg","text":"TemporaryFile(/tmp/multipartBody2728857256681789120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315672922,"filename":"image_18032025_17_33_47_5700.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345173293","file1":"1345173265","file0":"1345173232","file4":"1345173330","file5":"1345173334","file3":"1345173323"},"map_files_photo_id_array":[{"photo_id":"1345173334","filename":"file5"},{"photo_id":"1345173293","filename":"file2"},{"photo_id":"1345173330","filename":"file4"},{"photo_id":"1345173265","filename":"file1"},{"photo_id":"1345173232","filename":"file0"},{"photo_id":"1345173323","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345173334":["hashtag1","hashtag2"]},{"1345173232":["hashtag1","hashtag2"]},{"1345173330":["hashtag1","hashtag2"]},{"1345173293":["hashtag1","hashtag2"]},{"1345173323":["hashtag1","hashtag2"]},{"1345173265":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345173334, 1345173232, 1345173330, 1345173293, 1345173323, 1345173265)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.859968423843384 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:34:32.668895
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_53_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_47_5088.jpg', 2), ('/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_42_6087.jpg', 2), ('/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_30_6668.jpg', 2), ('/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_23_5905.jpg', 2), ('/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_17_5621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_53_6036.jpg', '/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_47_5088.jpg', '/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_42_6087.jpg', '/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_30_6668.jpg', '/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_23_5905.jpg', '/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_17_5621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_53_6036.jpg
/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_47_5088.jpg
/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_42_6087.jpg
/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_30_6668.jpg
/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_23_5905.jpg
/home/nano/Desktop/images/18032025/17/34/image_18032025_17_34_17_5621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345173376","1345173371","1345173368","1345173362","1345173356","1345173382"],"photo_ids_order":["1345173356","1345173362","1345173368","1345173371","1345173376","1345173382"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1c39e28be6becb184e3b89c9c9bd4007.jpg","text":"TemporaryFile(/tmp/multipartBody2684845769980671318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315733068,"filename":"image_18032025_17_34_23_5905.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/39c9d42f6c806cf21be2e4b5d3835480.jpg","text":"TemporaryFile(/tmp/multipartBody1462850265130091041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315733068,"filename":"image_18032025_17_34_30_6668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a3b64dd506cda2ecba409aab11234f78.jpg","text":"TemporaryFile(/tmp/multipartBody9190860812335995669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315733068,"filename":"image_18032025_17_34_42_6087.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/89e77d303e6150a72d73d70b821f2fb1.jpg","text":"TemporaryFile(/tmp/multipartBody9158932107766072805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315733068,"filename":"image_18032025_17_34_47_5088.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7bf17799d61b35fc5fff719193dfcb48.jpg","text":"TemporaryFile(/tmp/multipartBody2391235040291041166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315733068,"filename":"image_18032025_17_34_53_6036.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aef14479b1179110eee548a573ebc64d.jpg","text":"TemporaryFile(/tmp/multipartBody1992354116451858331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315733068,"filename":"image_18032025_17_34_17_5621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345173368","file1":"1345173362","file0":"1345173356","file4":"1345173376","file5":"1345173382","file3":"1345173371"},"map_files_photo_id_array":[{"photo_id":"1345173382","filename":"file5"},{"photo_id":"1345173368","filename":"file2"},{"photo_id":"1345173376","filename":"file4"},{"photo_id":"1345173362","filename":"file1"},{"photo_id":"1345173356","filename":"file0"},{"photo_id":"1345173371","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345173376":["hashtag1","hashtag2"]},{"1345173371":["hashtag1","hashtag2"]},{"1345173368":["hashtag1","hashtag2"]},{"1345173362":["hashtag1","hashtag2"]},{"1345173356":["hashtag1","hashtag2"]},{"1345173382":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345173376, 1345173371, 1345173368, 1345173362, 1345173356, 1345173382)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.63615822792053 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:36:02.128521
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_53_6139.jpg', 2), ('/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_47_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_41_6172.jpg', 2), ('/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_35_5179.jpg', 2), ('/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_30_6137.jpg', 2), ('/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_24_6148.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_53_6139.jpg', '/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_47_6150.jpg', '/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_41_6172.jpg', '/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_35_5179.jpg', '/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_30_6137.jpg', '/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_24_6148.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_53_6139.jpg
/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_47_6150.jpg
/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_41_6172.jpg
/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_35_5179.jpg
/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_30_6137.jpg
/home/nano/Desktop/images/18032025/17/35/image_18032025_17_35_24_6148.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345173433","1345173421","1345173430","1345173425","1345173428","1345173413"],"photo_ids_order":["1345173413","1345173421","1345173425","1345173428","1345173430","1345173433"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4aff066065f30fbf3b698bc8de2710a.jpg","text":"TemporaryFile(/tmp/multipartBody3819339162532499654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315822585,"filename":"image_18032025_17_35_24_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14168be2dd0a27e53edc8adef444814c.jpg","text":"TemporaryFile(/tmp/multipartBody544310711794450960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315822585,"filename":"image_18032025_17_35_47_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0a12281a9ab986de4fb1ff2d2dc1e5f3.jpg","text":"TemporaryFile(/tmp/multipartBody3336841399779074996asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315822585,"filename":"image_18032025_17_35_30_6137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c94de056582c28b5b634b02d8ba0bb7d.jpg","text":"TemporaryFile(/tmp/multipartBody8001526825664635025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315822585,"filename":"image_18032025_17_35_41_6172.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6db59a50275d74e7bdb31ab2185f452b.jpg","text":"TemporaryFile(/tmp/multipartBody1688231478394828980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315822585,"filename":"image_18032025_17_35_35_5179.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/68bc0a36d9edcc0e0c62d134b4373a51.jpg","text":"TemporaryFile(/tmp/multipartBody3046677656674899460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315822585,"filename":"image_18032025_17_35_53_6139.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345173425","file1":"1345173421","file0":"1345173413","file4":"1345173430","file5":"1345173433","file3":"1345173428"},"map_files_photo_id_array":[{"photo_id":"1345173433","filename":"file5"},{"photo_id":"1345173425","filename":"file2"},{"photo_id":"1345173430","filename":"file4"},{"photo_id":"1345173421","filename":"file1"},{"photo_id":"1345173413","filename":"file0"},{"photo_id":"1345173428","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345173433":["hashtag1","hashtag2"]},{"1345173421":["hashtag1","hashtag2"]},{"1345173430":["hashtag1","hashtag2"]},{"1345173425":["hashtag1","hashtag2"]},{"1345173428":["hashtag1","hashtag2"]},{"1345173413":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345173433, 1345173421, 1345173430, 1345173425, 1345173428, 1345173413)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.71945929527283 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:37:02.405726
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_53_5121.jpg', 2), ('/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_48_6168.jpg', 2), ('/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_42_6159.jpg', 2), ('/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_35_6164.jpg', 2), ('/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_29_6137.jpg', 2), ('/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_23_6152.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_53_5121.jpg', '/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_48_6168.jpg', '/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_42_6159.jpg', '/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_35_6164.jpg', '/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_29_6137.jpg', '/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_23_6152.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_53_5121.jpg
/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_48_6168.jpg
/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_42_6159.jpg
/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_35_6164.jpg
/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_29_6137.jpg
/home/nano/Desktop/images/18032025/17/36/image_18032025_17_36_23_6152.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345173532","1345173511","1345173468","1345173543","1345173527","1345173481"],"photo_ids_order":["1345173468","1345173481","1345173511","1345173527","1345173532","1345173543"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27560ce3019ea90c6a27803064924919.jpg","text":"TemporaryFile(/tmp/multipartBody5439348828683164425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315882864,"filename":"image_18032025_17_36_29_6137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/41739d66f599c22171ef8714496071ba.jpg","text":"TemporaryFile(/tmp/multipartBody5502299267941004081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315882864,"filename":"image_18032025_17_36_42_6159.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a8e88a44e3a50b4f5a30059e830f4d85.jpg","text":"TemporaryFile(/tmp/multipartBody5390941729338098097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315882864,"filename":"image_18032025_17_36_53_5121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3a3fee0c5c4053de960a34657cab2696.jpg","text":"TemporaryFile(/tmp/multipartBody4429156285227673211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315882864,"filename":"image_18032025_17_36_23_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1ae5ba82cad66e44e1cd3b74f3bf7121.jpg","text":"TemporaryFile(/tmp/multipartBody5874396290594261138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315882864,"filename":"image_18032025_17_36_35_6164.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d435cdf18c0c3fcff7dca25886b58254.jpg","text":"TemporaryFile(/tmp/multipartBody8105384893825400394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315882864,"filename":"image_18032025_17_36_48_6168.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345173511","file1":"1345173481","file0":"1345173468","file4":"1345173532","file5":"1345173543","file3":"1345173527"},"map_files_photo_id_array":[{"photo_id":"1345173543","filename":"file5"},{"photo_id":"1345173511","filename":"file2"},{"photo_id":"1345173532","filename":"file4"},{"photo_id":"1345173481","filename":"file1"},{"photo_id":"1345173468","filename":"file0"},{"photo_id":"1345173527","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345173532":["hashtag1","hashtag2"]},{"1345173511":["hashtag1","hashtag2"]},{"1345173468":["hashtag1","hashtag2"]},{"1345173543":["hashtag1","hashtag2"]},{"1345173527":["hashtag1","hashtag2"]},{"1345173481":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345173532, 1345173511, 1345173468, 1345173543, 1345173527, 1345173481)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.486982345581055 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:38:02.493774
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_53_6139.jpg', 2), ('/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_47_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_41_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_35_6183.jpg', 2), ('/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_29_5131.jpg', 2), ('/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_24_6140.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_53_6139.jpg', '/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_47_6141.jpg', '/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_41_6151.jpg', '/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_35_6183.jpg', '/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_29_5131.jpg', '/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_24_6140.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_53_6139.jpg
/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_47_6141.jpg
/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_41_6151.jpg
/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_35_6183.jpg
/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_29_5131.jpg
/home/nano/Desktop/images/18032025/17/37/image_18032025_17_37_24_6140.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345173649","1345173591","1345173594","1345173588","1345173597","1345173623"],"photo_ids_order":["1345173588","1345173591","1345173594","1345173597","1345173623","1345173649"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/29b2b0e882553a1313182d56e541c282.jpg","text":"TemporaryFile(/tmp/multipartBody7745724993193090722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315942951,"filename":"image_18032025_17_37_24_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd2aea7673c8f6bb89c2b06a347a3a3c.jpg","text":"TemporaryFile(/tmp/multipartBody8947055881684511969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315942951,"filename":"image_18032025_17_37_47_6141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a50546fa67d686cc870b64e0d3c8c0b.jpg","text":"TemporaryFile(/tmp/multipartBody4980955641844455085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315942951,"filename":"image_18032025_17_37_41_6151.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3a023a017333c43274109ccc6aa10070.jpg","text":"TemporaryFile(/tmp/multipartBody949576705560506507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315942951,"filename":"image_18032025_17_37_53_6139.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd96c28f41c4060559671f401f7d6311.jpg","text":"TemporaryFile(/tmp/multipartBody5337086135184158544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315942951,"filename":"image_18032025_17_37_35_6183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a00c0f28ad116fe9f25a3363f9a1241.jpg","text":"TemporaryFile(/tmp/multipartBody155213334915554156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742315942951,"filename":"image_18032025_17_37_29_5131.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345173594","file1":"1345173591","file0":"1345173588","file4":"1345173623","file5":"1345173649","file3":"1345173597"},"map_files_photo_id_array":[{"photo_id":"1345173649","filename":"file5"},{"photo_id":"1345173594","filename":"file2"},{"photo_id":"1345173623","filename":"file4"},{"photo_id":"1345173591","filename":"file1"},{"photo_id":"1345173588","filename":"file0"},{"photo_id":"1345173597","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345173649":["hashtag1","hashtag2"]},{"1345173591":["hashtag1","hashtag2"]},{"1345173594":["hashtag1","hashtag2"]},{"1345173588":["hashtag1","hashtag2"]},{"1345173597":["hashtag1","hashtag2"]},{"1345173623":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345173649, 1345173591, 1345173594, 1345173588, 1345173597, 1345173623)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.399362325668335 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:39:02.859922
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_53_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_47_5131.jpg', 2), ('/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_42_6155.jpg', 2), ('/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_36_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_29_6172.jpg', 2), ('/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_23_6144.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_53_6144.jpg', '/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_47_5131.jpg', '/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_42_6155.jpg', '/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_36_6151.jpg', '/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_29_6172.jpg', '/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_23_6144.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_53_6144.jpg
/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_47_5131.jpg
/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_42_6155.jpg
/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_36_6151.jpg
/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_29_6172.jpg
/home/nano/Desktop/images/18032025/17/38/image_18032025_17_38_23_6144.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345173745","1345173733","1345173771","1345173735","1345173731","1345173803"],"photo_ids_order":["1345173731","1345173733","1345173735","1345173745","1345173771","1345173803"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7daeff9835762579ef9f4d3e4047e2b2.jpg","text":"TemporaryFile(/tmp/multipartBody145369450069912594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316003373,"filename":"image_18032025_17_38_36_6151.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3e8d8395b3b6c5a76f7183b406867e5.jpg","text":"TemporaryFile(/tmp/multipartBody2884220042529159587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316003373,"filename":"image_18032025_17_38_47_5131.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/42f02cbbd3812b9c9f98e72eafec12b2.jpg","text":"TemporaryFile(/tmp/multipartBody5155673740576310932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316003373,"filename":"image_18032025_17_38_29_6172.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/193f92582c26f5b8562fd6e5336d041a.jpg","text":"TemporaryFile(/tmp/multipartBody1380080084757217071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316003373,"filename":"image_18032025_17_38_42_6155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c46d53d9a21fd40c0b074675a1446ffb.jpg","text":"TemporaryFile(/tmp/multipartBody5602743576164678214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316003373,"filename":"image_18032025_17_38_53_6144.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0f7ac004eb5d5562e4ee70301d0dd695.jpg","text":"TemporaryFile(/tmp/multipartBody914494018813422657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316003373,"filename":"image_18032025_17_38_23_6144.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345173735","file1":"1345173733","file0":"1345173731","file4":"1345173771","file5":"1345173803","file3":"1345173745"},"map_files_photo_id_array":[{"photo_id":"1345173803","filename":"file5"},{"photo_id":"1345173735","filename":"file2"},{"photo_id":"1345173771","filename":"file4"},{"photo_id":"1345173733","filename":"file1"},{"photo_id":"1345173731","filename":"file0"},{"photo_id":"1345173745","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345173745":["hashtag1","hashtag2"]},{"1345173733":["hashtag1","hashtag2"]},{"1345173771":["hashtag1","hashtag2"]},{"1345173735":["hashtag1","hashtag2"]},{"1345173731":["hashtag1","hashtag2"]},{"1345173803":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345173745, 1345173733, 1345173771, 1345173735, 1345173731, 1345173803)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.55105996131897 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:40:02.795704
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_53_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_47_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_41_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_35_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_29_5132.jpg', 2), ('/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_24_6146.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_53_6151.jpg', '/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_47_6142.jpg', '/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_41_6144.jpg', '/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_35_6140.jpg', '/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_29_5132.jpg', '/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_24_6146.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_53_6151.jpg
/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_47_6142.jpg
/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_41_6144.jpg
/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_35_6140.jpg
/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_29_5132.jpg
/home/nano/Desktop/images/18032025/17/39/image_18032025_17_39_24_6146.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345174077","1345174071","1345174101","1345174130","1345174195","1345174150"],"photo_ids_order":["1345174071","1345174077","1345174101","1345174130","1345174150","1345174195"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6c29dce7fb8d87aef5893cb4ff7a64ac.jpg","text":"TemporaryFile(/tmp/multipartBody948428088552179307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316063891,"filename":"image_18032025_17_39_47_6142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d89d8a5d757bb7838fc39c41f7e044b2.jpg","text":"TemporaryFile(/tmp/multipartBody7813557987048923697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316063891,"filename":"image_18032025_17_39_53_6151.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1419b400b5040109695984f75a900437.jpg","text":"TemporaryFile(/tmp/multipartBody4466642141568957909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316063891,"filename":"image_18032025_17_39_41_6144.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9057226969caf27c7085639186b4e716.jpg","text":"TemporaryFile(/tmp/multipartBody5441285007616410271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316063891,"filename":"image_18032025_17_39_35_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/555b49eb53f4b4f90625a9a37221ee3c.jpg","text":"TemporaryFile(/tmp/multipartBody4599574392296902107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316063891,"filename":"image_18032025_17_39_24_6146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/97ff18a3a76d934fe6c8bca357e5049f.jpg","text":"TemporaryFile(/tmp/multipartBody680653956712607754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316063891,"filename":"image_18032025_17_39_29_5132.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345174101","file1":"1345174077","file0":"1345174071","file4":"1345174150","file5":"1345174195","file3":"1345174130"},"map_files_photo_id_array":[{"photo_id":"1345174195","filename":"file5"},{"photo_id":"1345174101","filename":"file2"},{"photo_id":"1345174150","filename":"file4"},{"photo_id":"1345174077","filename":"file1"},{"photo_id":"1345174071","filename":"file0"},{"photo_id":"1345174130","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345174077":["hashtag1","hashtag2"]},{"1345174071":["hashtag1","hashtag2"]},{"1345174101":["hashtag1","hashtag2"]},{"1345174130":["hashtag1","hashtag2"]},{"1345174195":["hashtag1","hashtag2"]},{"1345174150":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345174077, 1345174071, 1345174101, 1345174130, 1345174195, 1345174150)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.10043740272522 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:41:02.850437
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_53_6164.jpg', 2), ('/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_47_5128.jpg', 2), ('/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_42_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_36_6138.jpg', 2), ('/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_29_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_23_6173.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_53_6164.jpg', '/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_47_5128.jpg', '/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_42_6151.jpg', '/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_36_6138.jpg', '/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_29_6141.jpg', '/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_23_6173.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_53_6164.jpg
/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_47_5128.jpg
/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_42_6151.jpg
/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_36_6138.jpg
/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_29_6141.jpg
/home/nano/Desktop/images/18032025/17/40/image_18032025_17_40_23_6173.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345174647","1345174496","1345174463","1345174724","1345174439","1345174561"],"photo_ids_order":["1345174439","1345174463","1345174496","1345174561","1345174647","1345174724"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ba4fb15150af7028ec792a96efbf458a.jpg","text":"TemporaryFile(/tmp/multipartBody8838754258926223532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316123470,"filename":"image_18032025_17_40_29_6141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43ea2ca11982174d20b4102889aff3d4.jpg","text":"TemporaryFile(/tmp/multipartBody2694373084612379095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316123470,"filename":"image_18032025_17_40_42_6151.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f3719912c71dc9f4a2ae6fd448420708.jpg","text":"TemporaryFile(/tmp/multipartBody5732925730841317947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316123470,"filename":"image_18032025_17_40_47_5128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e0f6e466d9dfede9c2b74a03481a876d.jpg","text":"TemporaryFile(/tmp/multipartBody1485966750797948626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316123470,"filename":"image_18032025_17_40_23_6173.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac2040ed78c226562f2c5c9fa0f02b2b.jpg","text":"TemporaryFile(/tmp/multipartBody5824069434704545214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316123470,"filename":"image_18032025_17_40_53_6164.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/35c93dad0e22c23a03c73e5fef47cf61.jpg","text":"TemporaryFile(/tmp/multipartBody7377706298855006733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316123470,"filename":"image_18032025_17_40_36_6138.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345174496","file1":"1345174463","file0":"1345174439","file4":"1345174647","file5":"1345174724","file3":"1345174561"},"map_files_photo_id_array":[{"photo_id":"1345174724","filename":"file5"},{"photo_id":"1345174496","filename":"file2"},{"photo_id":"1345174647","filename":"file4"},{"photo_id":"1345174463","filename":"file1"},{"photo_id":"1345174439","filename":"file0"},{"photo_id":"1345174561","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345174647":["hashtag1","hashtag2"]},{"1345174496":["hashtag1","hashtag2"]},{"1345174463":["hashtag1","hashtag2"]},{"1345174724":["hashtag1","hashtag2"]},{"1345174439":["hashtag1","hashtag2"]},{"1345174561":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345174647, 1345174496, 1345174463, 1345174724, 1345174439, 1345174561)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.41688537597656 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:42:02.977826
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_54_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_47_6159.jpg', 2), ('/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_41_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_35_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_29_6170.jpg', 2), ('/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_23_5130.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_54_6147.jpg', '/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_47_6159.jpg', '/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_41_6147.jpg', '/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_35_6145.jpg', '/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_29_6170.jpg', '/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_23_5130.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_54_6147.jpg
/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_47_6159.jpg
/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_41_6147.jpg
/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_35_6145.jpg
/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_29_6170.jpg
/home/nano/Desktop/images/18032025/17/41/image_18032025_17_41_23_5130.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345175277","1345175106","1345175225","1345175126","1345175335","1345175160"],"photo_ids_order":["1345175106","1345175126","1345175160","1345175225","1345175277","1345175335"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f7e368545e74e538fff72e7dde988ca.jpg","text":"TemporaryFile(/tmp/multipartBody3632538023867670855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316183558,"filename":"image_18032025_17_41_29_6170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ae441f7defb19dc468ed304facc7f7b.jpg","text":"TemporaryFile(/tmp/multipartBody3872596553363200108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316183558,"filename":"image_18032025_17_41_54_6147.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eac0fa0a6cb58a99aa02fcff6bdd4006.jpg","text":"TemporaryFile(/tmp/multipartBody3696484170047389641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316183558,"filename":"image_18032025_17_41_35_6145.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cbbbec52592c6b9f5a2d0dc013075a07.jpg","text":"TemporaryFile(/tmp/multipartBody4949634035038003876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316183558,"filename":"image_18032025_17_41_47_6159.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4eb43f74b9273f0d2209f556316581bb.jpg","text":"TemporaryFile(/tmp/multipartBody3385495480738692376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316183558,"filename":"image_18032025_17_41_23_5130.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/50efbdecb05cbb31d289fb2ac1d0451b.jpg","text":"TemporaryFile(/tmp/multipartBody8835942478873515365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316183558,"filename":"image_18032025_17_41_41_6147.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345175160","file1":"1345175126","file0":"1345175106","file4":"1345175277","file5":"1345175335","file3":"1345175225"},"map_files_photo_id_array":[{"photo_id":"1345175335","filename":"file5"},{"photo_id":"1345175160","filename":"file2"},{"photo_id":"1345175277","filename":"file4"},{"photo_id":"1345175126","filename":"file1"},{"photo_id":"1345175106","filename":"file0"},{"photo_id":"1345175225","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345175277":["hashtag1","hashtag2"]},{"1345175106":["hashtag1","hashtag2"]},{"1345175225":["hashtag1","hashtag2"]},{"1345175126":["hashtag1","hashtag2"]},{"1345175335":["hashtag1","hashtag2"]},{"1345175160":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345175277, 1345175106, 1345175225, 1345175126, 1345175335, 1345175160)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.76575779914856 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:43:03.084716
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_53_6138.jpg', 2), ('/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_47_6182.jpg', 2), ('/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_41_5139.jpg', 2), ('/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_36_6161.jpg', 2), ('/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_30_6143.jpg', 2), ('/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_23_6141.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_53_6138.jpg', '/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_47_6182.jpg', '/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_41_5139.jpg', '/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_36_6161.jpg', '/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_30_6143.jpg', '/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_23_6141.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_53_6138.jpg
/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_47_6182.jpg
/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_41_5139.jpg
/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_36_6161.jpg
/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_30_6143.jpg
/home/nano/Desktop/images/18032025/17/42/image_18032025_17_42_23_6141.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345175517","1345175502","1345175534","1345175513","1345175572","1345175583"],"photo_ids_order":["1345175502","1345175513","1345175517","1345175534","1345175572","1345175583"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/747c00d8338e3035688488f489f2c7b2.jpg","text":"TemporaryFile(/tmp/multipartBody8872210969998738375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316243557,"filename":"image_18032025_17_42_41_5139.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d51ad694398a6324140459e2d50bfa81.jpg","text":"TemporaryFile(/tmp/multipartBody4713282854529289422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316243557,"filename":"image_18032025_17_42_53_6138.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d9f0c8bbef38c8a4f89c81b301ff5dc5.jpg","text":"TemporaryFile(/tmp/multipartBody5552466575685513548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316243557,"filename":"image_18032025_17_42_36_6161.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ea6dac697421d8e60b163077be2bfc87.jpg","text":"TemporaryFile(/tmp/multipartBody4822412186326826435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316243557,"filename":"image_18032025_17_42_47_6182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47d2653f6f2149717538acc700c949d3.jpg","text":"TemporaryFile(/tmp/multipartBody3570638089286445472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316243557,"filename":"image_18032025_17_42_30_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c55565a21911170b914bf6829a385ac.jpg","text":"TemporaryFile(/tmp/multipartBody2407874560587484231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316243557,"filename":"image_18032025_17_42_23_6141.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345175517","file1":"1345175513","file0":"1345175502","file4":"1345175572","file5":"1345175583","file3":"1345175534"},"map_files_photo_id_array":[{"photo_id":"1345175583","filename":"file5"},{"photo_id":"1345175517","filename":"file2"},{"photo_id":"1345175572","filename":"file4"},{"photo_id":"1345175513","filename":"file1"},{"photo_id":"1345175502","filename":"file0"},{"photo_id":"1345175534","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345175517":["hashtag1","hashtag2"]},{"1345175502":["hashtag1","hashtag2"]},{"1345175534":["hashtag1","hashtag2"]},{"1345175513":["hashtag1","hashtag2"]},{"1345175572":["hashtag1","hashtag2"]},{"1345175583":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345175517, 1345175502, 1345175534, 1345175513, 1345175572, 1345175583)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.25305795669556 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:44:02.398209
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_54_6137.jpg', 2), ('/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_48_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_41_6146.jpg', 2), ('/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_35_6138.jpg', 2), ('/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_29_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_23_5135.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_54_6137.jpg', '/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_48_6145.jpg', '/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_41_6146.jpg', '/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_35_6138.jpg', '/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_29_6140.jpg', '/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_23_5135.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_54_6137.jpg
/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_48_6145.jpg
/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_41_6146.jpg
/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_35_6138.jpg
/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_29_6140.jpg
/home/nano/Desktop/images/18032025/17/43/image_18032025_17_43_23_5135.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345175808","1345175783","1345175786","1345175779","1345175772","1345175775"],"photo_ids_order":["1345175772","1345175775","1345175779","1345175783","1345175786","1345175808"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9fe913c8f8c088a9a03437ca83597fe2.jpg","text":"TemporaryFile(/tmp/multipartBody223650880597237888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316302847,"filename":"image_18032025_17_43_23_5135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9d865c72756fd11f8e845a3aa2c5dc09.jpg","text":"TemporaryFile(/tmp/multipartBody1305467003585582458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316302847,"filename":"image_18032025_17_43_35_6138.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e014bcde717ef7710e1af00640faf8e.jpg","text":"TemporaryFile(/tmp/multipartBody4891129370829925832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316302847,"filename":"image_18032025_17_43_29_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/011c80c8607df8c1997bf33de8374717.jpg","text":"TemporaryFile(/tmp/multipartBody270336795925251245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316302847,"filename":"image_18032025_17_43_41_6146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49d00ab3dedf4f09b22b7bd8dcae7e0f.jpg","text":"TemporaryFile(/tmp/multipartBody3302505401297455514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316302847,"filename":"image_18032025_17_43_54_6137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9519f981124a48c7f41e35061c660cf4.jpg","text":"TemporaryFile(/tmp/multipartBody2655084172491025615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316302847,"filename":"image_18032025_17_43_48_6145.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345175779","file1":"1345175775","file0":"1345175772","file4":"1345175786","file5":"1345175808","file3":"1345175783"},"map_files_photo_id_array":[{"photo_id":"1345175808","filename":"file5"},{"photo_id":"1345175779","filename":"file2"},{"photo_id":"1345175786","filename":"file4"},{"photo_id":"1345175775","filename":"file1"},{"photo_id":"1345175772","filename":"file0"},{"photo_id":"1345175783","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345175808":["hashtag1","hashtag2"]},{"1345175783":["hashtag1","hashtag2"]},{"1345175786":["hashtag1","hashtag2"]},{"1345175779":["hashtag1","hashtag2"]},{"1345175772":["hashtag1","hashtag2"]},{"1345175775":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345175808, 1345175783, 1345175786, 1345175779, 1345175772, 1345175775)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.862431049346924 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:45:02.368742
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_05_6162.jpg', 2), ('/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_53_6143.jpg', 2), ('/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_47_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_41_5137.jpg', 2), ('/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_36_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_30_6140.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_05_6162.jpg', '/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_53_6143.jpg', '/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_47_6147.jpg', '/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_41_5137.jpg', '/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_36_6144.jpg', '/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_30_6140.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_05_6162.jpg
/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_53_6143.jpg
/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_47_6147.jpg
/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_41_5137.jpg
/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_36_6144.jpg
/home/nano/Desktop/images/18032025/17/44/image_18032025_17_44_30_6140.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345175922","1345175930","1345175918","1345175926","1345175940","1345175934"],"photo_ids_order":["1345175918","1345175922","1345175926","1345175930","1345175934","1345175940"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4643dfaf355afc8e399e672875ddb042.jpg","text":"TemporaryFile(/tmp/multipartBody8272570283702463615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316362996,"filename":"image_18032025_17_44_53_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2491fab38ce9c15c412808e3e67b8b5.jpg","text":"TemporaryFile(/tmp/multipartBody2861746890724680852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316362996,"filename":"image_18032025_17_44_41_5137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6552e0d95c1f464843ed23b5252cb9a1.jpg","text":"TemporaryFile(/tmp/multipartBody4748120634671098918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316362996,"filename":"image_18032025_17_45_05_6162.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2808a237ff7beffa5b928d034d0f9dde.jpg","text":"TemporaryFile(/tmp/multipartBody4297814148667470060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316362996,"filename":"image_18032025_17_44_47_6147.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8bd36d5eaa7617e0b7aead63ec87b918.jpg","text":"TemporaryFile(/tmp/multipartBody8480859157290531144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316362996,"filename":"image_18032025_17_44_30_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12bac86d10b6a502fe6f0fa2a84c5a6b.jpg","text":"TemporaryFile(/tmp/multipartBody7299949760088736007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316362996,"filename":"image_18032025_17_44_36_6144.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345175926","file1":"1345175922","file0":"1345175918","file4":"1345175934","file5":"1345175940","file3":"1345175930"},"map_files_photo_id_array":[{"photo_id":"1345175940","filename":"file5"},{"photo_id":"1345175926","filename":"file2"},{"photo_id":"1345175934","filename":"file4"},{"photo_id":"1345175922","filename":"file1"},{"photo_id":"1345175918","filename":"file0"},{"photo_id":"1345175930","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345175922":["hashtag1","hashtag2"]},{"1345175930":["hashtag1","hashtag2"]},{"1345175918":["hashtag1","hashtag2"]},{"1345175926":["hashtag1","hashtag2"]},{"1345175940":["hashtag1","hashtag2"]},{"1345175934":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345175922, 1345175930, 1345175918, 1345175926, 1345175940, 1345175934)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.12937116622925 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:46:02.473618
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_54_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_48_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_41_6149.jpg', 2), ('/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_35_6149.jpg', 2), ('/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_29_6149.jpg', 2), ('/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_23_5144.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_54_6152.jpg', '/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_48_6148.jpg', '/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_41_6149.jpg', '/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_35_6149.jpg', '/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_29_6149.jpg', '/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_23_5144.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_54_6152.jpg
/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_48_6148.jpg
/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_41_6149.jpg
/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_35_6149.jpg
/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_29_6149.jpg
/home/nano/Desktop/images/18032025/17/45/image_18032025_17_45_23_5144.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345175978","1345175974","1345175983","1345175970","1345175964","1345175967"],"photo_ids_order":["1345175964","1345175967","1345175970","1345175974","1345175978","1345175983"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d26523f597cacce95a30a759d9c717de.jpg","text":"TemporaryFile(/tmp/multipartBody7046955262798590638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316422951,"filename":"image_18032025_17_45_29_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4573882b64a5f3dcfe5d4b5cb894abd9.jpg","text":"TemporaryFile(/tmp/multipartBody5360879644171292885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316422951,"filename":"image_18032025_17_45_35_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f3348953e8832b9b4a812f87f34b74bd.jpg","text":"TemporaryFile(/tmp/multipartBody5751259380660413244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316422951,"filename":"image_18032025_17_45_23_5144.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c2a2eda52574c3397d2563077cd83f7c.jpg","text":"TemporaryFile(/tmp/multipartBody1159462084980427525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316422951,"filename":"image_18032025_17_45_41_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0f9f23d486ddf3c2fd8ca989a5baed15.jpg","text":"TemporaryFile(/tmp/multipartBody2290352814482586785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316422951,"filename":"image_18032025_17_45_54_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fc4895773ecc7767e557c642f38c4fbc.jpg","text":"TemporaryFile(/tmp/multipartBody6441862525638915335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316422951,"filename":"image_18032025_17_45_48_6148.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345175970","file1":"1345175967","file0":"1345175964","file4":"1345175978","file5":"1345175983","file3":"1345175974"},"map_files_photo_id_array":[{"photo_id":"1345175983","filename":"file5"},{"photo_id":"1345175970","filename":"file2"},{"photo_id":"1345175978","filename":"file4"},{"photo_id":"1345175967","filename":"file1"},{"photo_id":"1345175964","filename":"file0"},{"photo_id":"1345175974","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345175978":["hashtag1","hashtag2"]},{"1345175974":["hashtag1","hashtag2"]},{"1345175983":["hashtag1","hashtag2"]},{"1345175970":["hashtag1","hashtag2"]},{"1345175964":["hashtag1","hashtag2"]},{"1345175967":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345175978, 1345175974, 1345175983, 1345175970, 1345175964, 1345175967)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.277122974395752 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:47:02.575980
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_53_6172.jpg', 2), ('/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_47_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_41_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_35_5132.jpg', 2), ('/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_30_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_24_6180.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_53_6172.jpg', '/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_47_6150.jpg', '/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_41_6148.jpg', '/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_35_5132.jpg', '/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_30_6152.jpg', '/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_24_6180.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_53_6172.jpg
/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_47_6150.jpg
/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_41_6148.jpg
/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_35_5132.jpg
/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_30_6152.jpg
/home/nano/Desktop/images/18032025/17/46/image_18032025_17_46_24_6180.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345176009","1345176011","1345176014","1345176007","1345176024","1345176018"],"photo_ids_order":["1345176007","1345176009","1345176011","1345176014","1345176018","1345176024"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f89d5e2888d82d29eab988bd14f72d0.jpg","text":"TemporaryFile(/tmp/multipartBody8901861127288854520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316483036,"filename":"image_18032025_17_46_47_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ba696ae95b90114fe5089a55bd0e5d8f.jpg","text":"TemporaryFile(/tmp/multipartBody2431439107823235062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316483036,"filename":"image_18032025_17_46_41_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/957b39e865e79f524e7a157b48f31206.jpg","text":"TemporaryFile(/tmp/multipartBody970803749385885822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316483036,"filename":"image_18032025_17_46_35_5132.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e92badc915c49c3330eadbd20fa33d24.jpg","text":"TemporaryFile(/tmp/multipartBody7205074963220052055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316483036,"filename":"image_18032025_17_46_53_6172.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/38d7479345716e3b7860f2437edae8e2.jpg","text":"TemporaryFile(/tmp/multipartBody3798518350847888221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316483036,"filename":"image_18032025_17_46_24_6180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e83eec0cf7e5a36b51d4c9d023f402f.jpg","text":"TemporaryFile(/tmp/multipartBody4221228793883710545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316483036,"filename":"image_18032025_17_46_30_6152.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345176011","file1":"1345176009","file0":"1345176007","file4":"1345176018","file5":"1345176024","file3":"1345176014"},"map_files_photo_id_array":[{"photo_id":"1345176024","filename":"file5"},{"photo_id":"1345176011","filename":"file2"},{"photo_id":"1345176018","filename":"file4"},{"photo_id":"1345176009","filename":"file1"},{"photo_id":"1345176007","filename":"file0"},{"photo_id":"1345176014","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345176009":["hashtag1","hashtag2"]},{"1345176011":["hashtag1","hashtag2"]},{"1345176014":["hashtag1","hashtag2"]},{"1345176007":["hashtag1","hashtag2"]},{"1345176024":["hashtag1","hashtag2"]},{"1345176018":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345176009, 1345176011, 1345176014, 1345176007, 1345176024, 1345176018)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.537056922912598 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:48:02.686384
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_53_5131.jpg', 2), ('/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_48_6143.jpg', 2), ('/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_42_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_35_6155.jpg', 2), ('/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_29_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_23_6148.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_53_5131.jpg', '/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_48_6143.jpg', '/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_42_6151.jpg', '/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_35_6155.jpg', '/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_29_6142.jpg', '/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_23_6148.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_53_5131.jpg
/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_48_6143.jpg
/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_42_6151.jpg
/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_35_6155.jpg
/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_29_6142.jpg
/home/nano/Desktop/images/18032025/17/47/image_18032025_17_47_23_6148.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345176086","1345176097","1345176106","1345176100","1345176090","1345176093"],"photo_ids_order":["1345176086","1345176090","1345176093","1345176097","1345176100","1345176106"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/039c0d4543b4ca56d42e0363eea47ec1.jpg","text":"TemporaryFile(/tmp/multipartBody5786146088425498554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316543129,"filename":"image_18032025_17_47_53_5131.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac0b76e2abd539f1e122caba17768995.jpg","text":"TemporaryFile(/tmp/multipartBody3170743722077160973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316543129,"filename":"image_18032025_17_47_35_6155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/77d77281ce19c97dda3f5df647fedf34.jpg","text":"TemporaryFile(/tmp/multipartBody2362120868188522359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316543129,"filename":"image_18032025_17_47_23_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/913f6031885ed825b5401f1708772bfd.jpg","text":"TemporaryFile(/tmp/multipartBody986377613093114906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316543129,"filename":"image_18032025_17_47_29_6142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fcddaec4f02483352396444ae392e429.jpg","text":"TemporaryFile(/tmp/multipartBody7883155143448780686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316543129,"filename":"image_18032025_17_47_48_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a25ed3c3a919fa2281255d06747cd991.jpg","text":"TemporaryFile(/tmp/multipartBody6550909612564815650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316543129,"filename":"image_18032025_17_47_42_6151.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345176093","file1":"1345176090","file0":"1345176086","file4":"1345176100","file5":"1345176106","file3":"1345176097"},"map_files_photo_id_array":[{"photo_id":"1345176106","filename":"file5"},{"photo_id":"1345176093","filename":"file2"},{"photo_id":"1345176100","filename":"file4"},{"photo_id":"1345176090","filename":"file1"},{"photo_id":"1345176086","filename":"file0"},{"photo_id":"1345176097","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345176086":["hashtag1","hashtag2"]},{"1345176097":["hashtag1","hashtag2"]},{"1345176106":["hashtag1","hashtag2"]},{"1345176100":["hashtag1","hashtag2"]},{"1345176090":["hashtag1","hashtag2"]},{"1345176093":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345176086, 1345176097, 1345176106, 1345176100, 1345176090, 1345176093)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.42319130897522 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:49:03.092602
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_53_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_47_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_41_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_35_5135.jpg', 2), ('/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_30_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_24_6141.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_53_6148.jpg', '/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_47_6147.jpg', '/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_41_6142.jpg', '/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_35_5135.jpg', '/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_30_6140.jpg', '/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_24_6141.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_53_6148.jpg
/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_47_6147.jpg
/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_41_6142.jpg
/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_35_5135.jpg
/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_30_6140.jpg
/home/nano/Desktop/images/18032025/17/48/image_18032025_17_48_24_6141.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345176206","1345176160","1345176256","1345176157","1345176150","1345176147"],"photo_ids_order":["1345176147","1345176150","1345176157","1345176160","1345176206","1345176256"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/61afcdf1e2cc129446c8c6a56fd0917b.jpg","text":"TemporaryFile(/tmp/multipartBody7033224090579773053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316603554,"filename":"image_18032025_17_48_30_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3d2014f9a63573ae6efd667d72d2c17.jpg","text":"TemporaryFile(/tmp/multipartBody6687848324864875718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316603554,"filename":"image_18032025_17_48_35_5135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c3958e4ce26673f3c2383945134d49e2.jpg","text":"TemporaryFile(/tmp/multipartBody1097099413447850780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316603554,"filename":"image_18032025_17_48_24_6141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6d46e0244d79e238ff271d44c3d6d191.jpg","text":"TemporaryFile(/tmp/multipartBody7016096709821257563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316603554,"filename":"image_18032025_17_48_41_6142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84f077419918ba18ba84c5b9aae00880.jpg","text":"TemporaryFile(/tmp/multipartBody8250786226803584780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316603554,"filename":"image_18032025_17_48_47_6147.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bf52a98cc398aadee77e9e9e4f9d0fe9.jpg","text":"TemporaryFile(/tmp/multipartBody4075472268154622123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316603554,"filename":"image_18032025_17_48_53_6148.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345176157","file1":"1345176150","file0":"1345176147","file4":"1345176206","file5":"1345176256","file3":"1345176160"},"map_files_photo_id_array":[{"photo_id":"1345176256","filename":"file5"},{"photo_id":"1345176157","filename":"file2"},{"photo_id":"1345176206","filename":"file4"},{"photo_id":"1345176150","filename":"file1"},{"photo_id":"1345176147","filename":"file0"},{"photo_id":"1345176160","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345176206":["hashtag1","hashtag2"]},{"1345176160":["hashtag1","hashtag2"]},{"1345176256":["hashtag1","hashtag2"]},{"1345176157":["hashtag1","hashtag2"]},{"1345176150":["hashtag1","hashtag2"]},{"1345176147":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345176206, 1345176160, 1345176256, 1345176157, 1345176150, 1345176147)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.25474953651428 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:50:32.479369
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_53_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_47_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_41_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_35_5138.jpg', 2), ('/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_30_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_24_6148.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_53_6148.jpg', '/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_47_6148.jpg', '/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_41_6140.jpg', '/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_35_5138.jpg', '/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_30_6142.jpg', '/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_24_6148.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_53_6148.jpg
/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_47_6148.jpg
/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_41_6140.jpg
/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_35_5138.jpg
/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_30_6142.jpg
/home/nano/Desktop/images/18032025/17/50/image_18032025_17_50_24_6148.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345176402","1345176341","1345176385","1345176360","1345176324","1345176321"],"photo_ids_order":["1345176321","1345176324","1345176341","1345176360","1345176385","1345176402"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/48b2856dde487f391ba2de3260fc151d.jpg","text":"TemporaryFile(/tmp/multipartBody4411128155862344357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316692947,"filename":"image_18032025_17_50_24_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0152755a9b45e1110bd6ea4c07091c33.jpg","text":"TemporaryFile(/tmp/multipartBody3911253327411615839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316692947,"filename":"image_18032025_17_50_41_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a5917e0f24801ccea4f297b60cd82581.jpg","text":"TemporaryFile(/tmp/multipartBody222421996646244321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316692947,"filename":"image_18032025_17_50_30_6142.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/650626c05327a1ec4f85f8c217500794.jpg","text":"TemporaryFile(/tmp/multipartBody7928758914350198902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316692947,"filename":"image_18032025_17_50_35_5138.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3e1e5a7dccc0a0e1f347c3ac5674fc2c.jpg","text":"TemporaryFile(/tmp/multipartBody2497897280089520054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316692947,"filename":"image_18032025_17_50_47_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/30381d22892dc7297452d1f24faf2e42.jpg","text":"TemporaryFile(/tmp/multipartBody8009827078327487520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316692947,"filename":"image_18032025_17_50_53_6148.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345176341","file1":"1345176324","file0":"1345176321","file4":"1345176385","file5":"1345176402","file3":"1345176360"},"map_files_photo_id_array":[{"photo_id":"1345176402","filename":"file5"},{"photo_id":"1345176341","filename":"file2"},{"photo_id":"1345176385","filename":"file4"},{"photo_id":"1345176324","filename":"file1"},{"photo_id":"1345176321","filename":"file0"},{"photo_id":"1345176360","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345176402":["hashtag1","hashtag2"]},{"1345176341":["hashtag1","hashtag2"]},{"1345176385":["hashtag1","hashtag2"]},{"1345176360":["hashtag1","hashtag2"]},{"1345176324":["hashtag1","hashtag2"]},{"1345176321":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345176402, 1345176341, 1345176385, 1345176360, 1345176324, 1345176321)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.653048515319824 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:51:32.576377
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_53_5137.jpg', 2), ('/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_48_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_42_6149.jpg', 2), ('/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_35_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_29_6181.jpg', 2), ('/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_23_6151.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_53_5137.jpg', '/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_48_6150.jpg', '/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_42_6149.jpg', '/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_35_6148.jpg', '/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_29_6181.jpg', '/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_23_6151.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_53_5137.jpg
/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_48_6150.jpg
/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_42_6149.jpg
/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_35_6148.jpg
/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_29_6181.jpg
/home/nano/Desktop/images/18032025/17/51/image_18032025_17_51_23_6151.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345176644","1345176688","1345176676","1345176685","1345176670","1345176681"],"photo_ids_order":["1345176644","1345176670","1345176676","1345176681","1345176685","1345176688"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7d502a7c5d003b5be074fd9e406e1fd2.jpg","text":"TemporaryFile(/tmp/multipartBody6706327467485141525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316753027,"filename":"image_18032025_17_51_53_5137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6bfee61972532dcb2c56dabafa73918a.jpg","text":"TemporaryFile(/tmp/multipartBody3329911932545376074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316753027,"filename":"image_18032025_17_51_23_6151.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5dbdf5a1984fe280b135bbb4697f0965.jpg","text":"TemporaryFile(/tmp/multipartBody7573699810006433773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316753027,"filename":"image_18032025_17_51_42_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52894051a576eeec7f5c30cfb254a26b.jpg","text":"TemporaryFile(/tmp/multipartBody5775568110905558054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316753027,"filename":"image_18032025_17_51_29_6181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f78e35ab0a0e290a3cb55392a21e0245.jpg","text":"TemporaryFile(/tmp/multipartBody2512194814628001566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316753027,"filename":"image_18032025_17_51_48_6150.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3164725606fa8e42da3ced796efadf38.jpg","text":"TemporaryFile(/tmp/multipartBody4608782038741981438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316753027,"filename":"image_18032025_17_51_35_6148.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345176676","file1":"1345176670","file0":"1345176644","file4":"1345176685","file5":"1345176688","file3":"1345176681"},"map_files_photo_id_array":[{"photo_id":"1345176688","filename":"file5"},{"photo_id":"1345176676","filename":"file2"},{"photo_id":"1345176685","filename":"file4"},{"photo_id":"1345176670","filename":"file1"},{"photo_id":"1345176644","filename":"file0"},{"photo_id":"1345176681","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345176644":["hashtag1","hashtag2"]},{"1345176688":["hashtag1","hashtag2"]},{"1345176676":["hashtag1","hashtag2"]},{"1345176685":["hashtag1","hashtag2"]},{"1345176670":["hashtag1","hashtag2"]},{"1345176681":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345176644, 1345176688, 1345176676, 1345176685, 1345176670, 1345176681)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.919220209121704 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:52:32.704890
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_54_6156.jpg', 2), ('/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_47_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_41_6143.jpg', 2), ('/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_35_6178.jpg', 2), ('/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_29_5136.jpg', 2), ('/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_24_6157.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_54_6156.jpg', '/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_47_6148.jpg', '/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_41_6143.jpg', '/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_35_6178.jpg', '/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_29_5136.jpg', '/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_24_6157.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_54_6156.jpg
/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_47_6148.jpg
/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_41_6143.jpg
/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_35_6178.jpg
/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_29_5136.jpg
/home/nano/Desktop/images/18032025/17/52/image_18032025_17_52_24_6157.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345176713","1345176707","1345176716","1345176724","1345176727","1345176720"],"photo_ids_order":["1345176707","1345176713","1345176716","1345176720","1345176724","1345176727"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/04300e3a200757113bdb4aee16947b00.jpg","text":"TemporaryFile(/tmp/multipartBody8919112918146128339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316813138,"filename":"image_18032025_17_52_47_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3a9a1347d08f5ea7dd52ecea1ae953a.jpg","text":"TemporaryFile(/tmp/multipartBody6286193403872161223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316813138,"filename":"image_18032025_17_52_54_6156.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd321c3d0e4823ad4bd6fc3793563624.jpg","text":"TemporaryFile(/tmp/multipartBody935423370093865080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316813138,"filename":"image_18032025_17_52_41_6143.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7d973e39acf056b758cd603e8b198fa.jpg","text":"TemporaryFile(/tmp/multipartBody6496192650711004561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316813138,"filename":"image_18032025_17_52_29_5136.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7d03e7750663807d6b66e4c6c8c94a13.jpg","text":"TemporaryFile(/tmp/multipartBody1040185536354719271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316813138,"filename":"image_18032025_17_52_24_6157.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9225befc646f17f668e8209cfe7839e3.jpg","text":"TemporaryFile(/tmp/multipartBody8047210825611077137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316813138,"filename":"image_18032025_17_52_35_6178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345176716","file1":"1345176713","file0":"1345176707","file4":"1345176724","file5":"1345176727","file3":"1345176720"},"map_files_photo_id_array":[{"photo_id":"1345176727","filename":"file5"},{"photo_id":"1345176716","filename":"file2"},{"photo_id":"1345176724","filename":"file4"},{"photo_id":"1345176713","filename":"file1"},{"photo_id":"1345176707","filename":"file0"},{"photo_id":"1345176720","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345176713":["hashtag1","hashtag2"]},{"1345176707":["hashtag1","hashtag2"]},{"1345176716":["hashtag1","hashtag2"]},{"1345176724":["hashtag1","hashtag2"]},{"1345176727":["hashtag1","hashtag2"]},{"1345176720":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345176713, 1345176707, 1345176716, 1345176724, 1345176727, 1345176720)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.609158754348755 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:53:31.832071
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_53_6188.jpg', 2), ('/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_47_5147.jpg', 2), ('/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_42_6151.jpg', 2), ('/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_36_6154.jpg', 2), ('/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_29_6149.jpg', 2), ('/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_23_6149.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_53_6188.jpg', '/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_47_5147.jpg', '/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_42_6151.jpg', '/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_36_6154.jpg', '/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_29_6149.jpg', '/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_23_6149.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_53_6188.jpg
/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_47_5147.jpg
/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_42_6151.jpg
/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_36_6154.jpg
/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_29_6149.jpg
/home/nano/Desktop/images/18032025/17/53/image_18032025_17_53_23_6149.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345176767","1345176752","1345176760","1345176763","1345176747","1345176756"],"photo_ids_order":["1345176747","1345176752","1345176756","1345176760","1345176763","1345176767"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62bb62399f24d7bbce7702424131bc8d.jpg","text":"TemporaryFile(/tmp/multipartBody661979115705485454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316872262,"filename":"image_18032025_17_53_23_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/36db43a7e190bc86de8e1911ba54a301.jpg","text":"TemporaryFile(/tmp/multipartBody7942451357862332734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316872262,"filename":"image_18032025_17_53_47_5147.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e9221bbf2d177cddbd373ff70421414.jpg","text":"TemporaryFile(/tmp/multipartBody3447730225916084094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316872262,"filename":"image_18032025_17_53_36_6154.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aafda68339b49444bfcd1b54e653c236.jpg","text":"TemporaryFile(/tmp/multipartBody5720306101761539146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316872262,"filename":"image_18032025_17_53_29_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d5dcb925290670180af5dd3b96371b60.jpg","text":"TemporaryFile(/tmp/multipartBody1978923917085874618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316872262,"filename":"image_18032025_17_53_53_6188.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/02cdb146cdfae38801f258bca54389ca.jpg","text":"TemporaryFile(/tmp/multipartBody1739322390418853933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316872262,"filename":"image_18032025_17_53_42_6151.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345176756","file1":"1345176752","file0":"1345176747","file4":"1345176763","file5":"1345176767","file3":"1345176760"},"map_files_photo_id_array":[{"photo_id":"1345176767","filename":"file5"},{"photo_id":"1345176756","filename":"file2"},{"photo_id":"1345176763","filename":"file4"},{"photo_id":"1345176752","filename":"file1"},{"photo_id":"1345176747","filename":"file0"},{"photo_id":"1345176760","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345176767":["hashtag1","hashtag2"]},{"1345176752":["hashtag1","hashtag2"]},{"1345176760":["hashtag1","hashtag2"]},{"1345176763":["hashtag1","hashtag2"]},{"1345176747":["hashtag1","hashtag2"]},{"1345176756":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345176767, 1345176752, 1345176760, 1345176763, 1345176747, 1345176756)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.969533681869507 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:54:31.924762
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_54_6170.jpg', 2), ('/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_48_6185.jpg', 2), ('/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_41_6191.jpg', 2), ('/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_35_6163.jpg', 2), ('/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_29_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_23_5140.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_54_6170.jpg', '/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_48_6185.jpg', '/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_41_6191.jpg', '/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_35_6163.jpg', '/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_29_6153.jpg', '/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_23_5140.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_54_6170.jpg
/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_48_6185.jpg
/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_41_6191.jpg
/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_35_6163.jpg
/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_29_6153.jpg
/home/nano/Desktop/images/18032025/17/54/image_18032025_17_54_23_5140.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345176797","1345176800","1345176790","1345176803","1345176786","1345176794"],"photo_ids_order":["1345176786","1345176790","1345176794","1345176797","1345176800","1345176803"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d98da6a71a3f5d13b4a00f2840bb268e.jpg","text":"TemporaryFile(/tmp/multipartBody1660604418625305947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316932377,"filename":"image_18032025_17_54_35_6163.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ce946c2f2d384472e878363928b2e92.jpg","text":"TemporaryFile(/tmp/multipartBody3669063589263251402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316932377,"filename":"image_18032025_17_54_29_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ea46c0f7e66fa8c3ca1e4e29a4a06c36.jpg","text":"TemporaryFile(/tmp/multipartBody8754838849036341356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316932377,"filename":"image_18032025_17_54_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/3/18/0a99ec438f1b05669081e93c6ea2be57.jpg","text":"TemporaryFile(/tmp/multipartBody8412534603942929092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316932377,"filename":"image_18032025_17_54_23_5140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ba6864715773e0a6a392bec3bea3771d.jpg","text":"TemporaryFile(/tmp/multipartBody2819747328892924624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316932377,"filename":"image_18032025_17_54_54_6170.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/afdee08d1d775c576729a6a94f292d05.jpg","text":"TemporaryFile(/tmp/multipartBody3332134426753829259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316932377,"filename":"image_18032025_17_54_41_6191.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345176794","file1":"1345176790","file0":"1345176786","file4":"1345176800","file5":"1345176803","file3":"1345176797"},"map_files_photo_id_array":[{"photo_id":"1345176803","filename":"file5"},{"photo_id":"1345176794","filename":"file2"},{"photo_id":"1345176800","filename":"file4"},{"photo_id":"1345176790","filename":"file1"},{"photo_id":"1345176786","filename":"file0"},{"photo_id":"1345176797","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345176797":["hashtag1","hashtag2"]},{"1345176800":["hashtag1","hashtag2"]},{"1345176790":["hashtag1","hashtag2"]},{"1345176803":["hashtag1","hashtag2"]},{"1345176786":["hashtag1","hashtag2"]},{"1345176794":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345176797, 1345176800, 1345176790, 1345176803, 1345176786, 1345176794)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.410494804382324 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:55:32.029450
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_53_6141.jpg', 2), ('/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_47_6171.jpg', 2), ('/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_41_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_35_5141.jpg', 2), ('/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_30_6169.jpg', 2), ('/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_17_6152.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_53_6141.jpg', '/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_47_6171.jpg', '/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_41_6153.jpg', '/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_35_5141.jpg', '/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_30_6169.jpg', '/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_17_6152.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_53_6141.jpg
/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_47_6171.jpg
/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_41_6153.jpg
/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_35_5141.jpg
/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_30_6169.jpg
/home/nano/Desktop/images/18032025/17/55/image_18032025_17_55_17_6152.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345176821","1345176835","1345176838","1345176832","1345176828","1345176825"],"photo_ids_order":["1345176821","1345176825","1345176828","1345176832","1345176835","1345176838"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f926e861923c9686b8c1c89b98ddbe6.jpg","text":"TemporaryFile(/tmp/multipartBody3307109315629654455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316992484,"filename":"image_18032025_17_55_53_6141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e09d3763a4366748db71fd2298e7ea0e.jpg","text":"TemporaryFile(/tmp/multipartBody3421771399288269181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316992484,"filename":"image_18032025_17_55_30_6169.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/05afd0b3bec91d142413bec7e75963fc.jpg","text":"TemporaryFile(/tmp/multipartBody5998777706817477917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316992484,"filename":"image_18032025_17_55_17_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19c16f59ad261db488bf7cdf30b15209.jpg","text":"TemporaryFile(/tmp/multipartBody8346632271041485688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316992484,"filename":"image_18032025_17_55_35_5141.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a19dea95aead601e73e366a1feb559ba.jpg","text":"TemporaryFile(/tmp/multipartBody7507171656774032988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316992484,"filename":"image_18032025_17_55_41_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63e54656297a51e62640382f726e9137.jpg","text":"TemporaryFile(/tmp/multipartBody8636484960119172221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742316992484,"filename":"image_18032025_17_55_47_6171.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345176828","file1":"1345176825","file0":"1345176821","file4":"1345176835","file5":"1345176838","file3":"1345176832"},"map_files_photo_id_array":[{"photo_id":"1345176838","filename":"file5"},{"photo_id":"1345176828","filename":"file2"},{"photo_id":"1345176835","filename":"file4"},{"photo_id":"1345176825","filename":"file1"},{"photo_id":"1345176821","filename":"file0"},{"photo_id":"1345176832","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345176821":["hashtag1","hashtag2"]},{"1345176835":["hashtag1","hashtag2"]},{"1345176838":["hashtag1","hashtag2"]},{"1345176832":["hashtag1","hashtag2"]},{"1345176828":["hashtag1","hashtag2"]},{"1345176825":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345176821, 1345176835, 1345176838, 1345176832, 1345176828, 1345176825)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.24203085899353 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:56:32.153341
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_53_5137.jpg', 2), ('/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_48_6156.jpg', 2), ('/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_42_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_35_6146.jpg', 2), ('/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_29_6161.jpg', 2), ('/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_23_6163.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_53_5137.jpg', '/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_48_6156.jpg', '/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_42_6152.jpg', '/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_35_6146.jpg', '/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_29_6161.jpg', '/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_23_6163.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_53_5137.jpg
/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_48_6156.jpg
/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_42_6152.jpg
/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_35_6146.jpg
/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_29_6161.jpg
/home/nano/Desktop/images/18032025/17/56/image_18032025_17_56_23_6163.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345177400","1345177304","1345177392","1345177344","1345177404","1345177373"],"photo_ids_order":["1345177304","1345177344","1345177373","1345177392","1345177400","1345177404"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c1be00e141acb7b407613dd300876744.jpg","text":"TemporaryFile(/tmp/multipartBody7468125908319974313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317052586,"filename":"image_18032025_17_56_29_6161.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c86f2bffed7f88274733cfed2d827300.jpg","text":"TemporaryFile(/tmp/multipartBody3693514038765518928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317052586,"filename":"image_18032025_17_56_53_5137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/034f8ef7bb592dedaf0a86061fd27bd5.jpg","text":"TemporaryFile(/tmp/multipartBody2415735579401622541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317052586,"filename":"image_18032025_17_56_35_6146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b12a013797a52fce45646e9549a75524.jpg","text":"TemporaryFile(/tmp/multipartBody7242720435636182763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317052586,"filename":"image_18032025_17_56_48_6156.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3089ee407c26df747b17fc7580fdee9d.jpg","text":"TemporaryFile(/tmp/multipartBody770341365961292823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317052586,"filename":"image_18032025_17_56_23_6163.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/50a0bde4fa964db184fed4423a4e0f15.jpg","text":"TemporaryFile(/tmp/multipartBody6299633541561218040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317052586,"filename":"image_18032025_17_56_42_6152.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345177373","file1":"1345177344","file0":"1345177304","file4":"1345177400","file5":"1345177404","file3":"1345177392"},"map_files_photo_id_array":[{"photo_id":"1345177404","filename":"file5"},{"photo_id":"1345177373","filename":"file2"},{"photo_id":"1345177400","filename":"file4"},{"photo_id":"1345177344","filename":"file1"},{"photo_id":"1345177304","filename":"file0"},{"photo_id":"1345177392","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345177400":["hashtag1","hashtag2"]},{"1345177304":["hashtag1","hashtag2"]},{"1345177392":["hashtag1","hashtag2"]},{"1345177344":["hashtag1","hashtag2"]},{"1345177404":["hashtag1","hashtag2"]},{"1345177373":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345177400, 1345177304, 1345177392, 1345177344, 1345177404, 1345177373)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.4074432849884 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:57:32.257851
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_54_6149.jpg', 2), ('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_47_6181.jpg', 2), ('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_41_6189.jpg', 2), ('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_35_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_29_5148.jpg', 2), ('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_24_6149.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_54_6149.jpg', '/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_47_6181.jpg', '/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_41_6189.jpg', '/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_35_6153.jpg', '/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_29_5148.jpg', '/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_24_6149.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_54_6149.jpg
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_47_6181.jpg
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_41_6189.jpg
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_35_6153.jpg
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_29_5148.jpg
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_24_6149.jpg
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:58:02.760610
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_54_6149.jpg', 2), ('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_47_6181.jpg', 2), ('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_41_6189.jpg', 2), ('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_35_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_29_5148.jpg', 2), ('/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_24_6149.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_54_6149.jpg', '/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_47_6181.jpg', '/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_41_6189.jpg', '/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_35_6153.jpg', '/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_29_5148.jpg', '/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_24_6149.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_54_6149.jpg
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_47_6181.jpg
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_41_6189.jpg
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_35_6153.jpg
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_29_5148.jpg
/home/nano/Desktop/images/18032025/17/57/image_18032025_17_57_24_6149.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345177454","1345177448","1345177480","1345177507","1345177539","1345177451"],"photo_ids_order":["1345177448","1345177451","1345177454","1345177480","1345177507","1345177539"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/304de1380ec6654f12a6a87c939f70e3.jpg","text":"TemporaryFile(/tmp/multipartBody9016987657795267696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317143301,"filename":"image_18032025_17_57_41_6189.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5688c5f5ba6c2166caf55ad4798c6792.jpg","text":"TemporaryFile(/tmp/multipartBody3987097362150461134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317143301,"filename":"image_18032025_17_57_54_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9d713f257801441c684edc366cb073d2.jpg","text":"TemporaryFile(/tmp/multipartBody6061783262319512509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317143301,"filename":"image_18032025_17_57_35_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/701a79ac8df2c72e8b284f290a683aef.jpg","text":"TemporaryFile(/tmp/multipartBody8638508066857367886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317143301,"filename":"image_18032025_17_57_29_5148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9c28a0b7a62dda76afc3c1a97c84c753.jpg","text":"TemporaryFile(/tmp/multipartBody4203713992604632248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317143301,"filename":"image_18032025_17_57_24_6149.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f0c5d0e18de5085f74f99241869f8a85.jpg","text":"TemporaryFile(/tmp/multipartBody3048413585265857883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317143301,"filename":"image_18032025_17_57_47_6181.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345177454","file1":"1345177451","file0":"1345177448","file4":"1345177507","file5":"1345177539","file3":"1345177480"},"map_files_photo_id_array":[{"photo_id":"1345177539","filename":"file5"},{"photo_id":"1345177454","filename":"file2"},{"photo_id":"1345177507","filename":"file4"},{"photo_id":"1345177451","filename":"file1"},{"photo_id":"1345177448","filename":"file0"},{"photo_id":"1345177480","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345177454":["hashtag1","hashtag2"]},{"1345177448":["hashtag1","hashtag2"]},{"1345177480":["hashtag1","hashtag2"]},{"1345177507":["hashtag1","hashtag2"]},{"1345177539":["hashtag1","hashtag2"]},{"1345177451":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345177454, 1345177448, 1345177480, 1345177507, 1345177539, 1345177451)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.814061164855957 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 17:59:02.591247
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_53_6124.jpg', 2), ('/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_47_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_41_5182.jpg', 2), ('/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_36_6159.jpg', 2), ('/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_30_6184.jpg', 2), ('/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_23_6145.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_53_6124.jpg', '/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_47_6150.jpg', '/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_41_5182.jpg', '/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_36_6159.jpg', '/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_30_6184.jpg', '/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_23_6145.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_53_6124.jpg
/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_47_6150.jpg
/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_41_5182.jpg
/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_36_6159.jpg
/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_30_6184.jpg
/home/nano/Desktop/images/18032025/17/58/image_18032025_17_58_23_6145.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345177933","1345177899","1345177866","1345177799","1345177967","1345177835"],"photo_ids_order":["1345177799","1345177835","1345177866","1345177899","1345177933","1345177967"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28116579017c2e7d7df526e97f016f97.jpg","text":"TemporaryFile(/tmp/multipartBody8049860946128425044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317203054,"filename":"image_18032025_17_58_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/3/18/c2a9ac4deb00f5cf43ea2476be714261.jpg","text":"TemporaryFile(/tmp/multipartBody7345726794714440704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317203054,"filename":"image_18032025_17_58_36_6159.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d131b5612cd52ef1e9dd2432e72caff.jpg","text":"TemporaryFile(/tmp/multipartBody6611954476197742883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317203054,"filename":"image_18032025_17_58_41_5182.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ab29e25a9a6c60ca9cd11223f840750e.jpg","text":"TemporaryFile(/tmp/multipartBody4901852191507841513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317203054,"filename":"image_18032025_17_58_53_6124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a1038204ea297b4e61b32b806c3a5409.jpg","text":"TemporaryFile(/tmp/multipartBody1998448176360929666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317203054,"filename":"image_18032025_17_58_23_6145.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1acb98d7e73c1fe33cb534e741efe54f.jpg","text":"TemporaryFile(/tmp/multipartBody950790979880556623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317203054,"filename":"image_18032025_17_58_47_6150.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345177866","file1":"1345177835","file0":"1345177799","file4":"1345177933","file5":"1345177967","file3":"1345177899"},"map_files_photo_id_array":[{"photo_id":"1345177967","filename":"file5"},{"photo_id":"1345177866","filename":"file2"},{"photo_id":"1345177933","filename":"file4"},{"photo_id":"1345177835","filename":"file1"},{"photo_id":"1345177799","filename":"file0"},{"photo_id":"1345177899","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345177933":["hashtag1","hashtag2"]},{"1345177899":["hashtag1","hashtag2"]},{"1345177866":["hashtag1","hashtag2"]},{"1345177799":["hashtag1","hashtag2"]},{"1345177967":["hashtag1","hashtag2"]},{"1345177835":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345177933, 1345177899, 1345177866, 1345177799, 1345177967, 1345177835)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.17839980125427 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:00:02.573853
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_53_5175.jpg', 2), ('/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_48_6163.jpg', 2), ('/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_41_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_35_6157.jpg', 2), ('/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_29_6189.jpg', 2), ('/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_23_5186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_53_5175.jpg', '/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_48_6163.jpg', '/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_41_6152.jpg', '/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_35_6157.jpg', '/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_29_6189.jpg', '/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_23_5186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_53_5175.jpg
/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_48_6163.jpg
/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_41_6152.jpg
/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_35_6157.jpg
/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_29_6189.jpg
/home/nano/Desktop/images/18032025/17/59/image_18032025_17_59_23_5186.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.372913122177124 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:00:32.192822
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_53_5158.jpg', 2), ('/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_48_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_42_5897.jpg', 2), ('/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_36_5879.jpg', 2), ('/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_30_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_24_6150.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_53_5158.jpg', '/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_48_6147.jpg', '/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_42_5897.jpg', '/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_36_5879.jpg', '/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_30_6127.jpg', '/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_24_6150.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_53_5158.jpg
/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_48_6147.jpg
/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_42_5897.jpg
/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_36_5879.jpg
/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_30_6127.jpg
/home/nano/Desktop/images/18032025/18/00/image_18032025_18_00_24_6150.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345178469","1345178463","1345178472","1345178466","1345178460","1345178474"],"photo_ids_order":["1345178460","1345178463","1345178466","1345178469","1345178472","1345178474"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/55c9df80e7dbe0cf330490320215fb82.jpg","text":"TemporaryFile(/tmp/multipartBody1940378417990317543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317292621,"filename":"image_18032025_18_00_36_5879.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3b4308e4c0e689457f7781c5089009a4.jpg","text":"TemporaryFile(/tmp/multipartBody4829685363792123244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317292621,"filename":"image_18032025_18_00_48_6147.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/57f0175e52ecd717350b8ad2bba2a0b9.jpg","text":"TemporaryFile(/tmp/multipartBody4735743206504985566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317292621,"filename":"image_18032025_18_00_30_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bddf8b5e5f5303faf8523ec4835b273d.jpg","text":"TemporaryFile(/tmp/multipartBody935476133642155200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317292621,"filename":"image_18032025_18_00_42_5897.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9fc347beb55f7e639bf27257d0d3d60d.jpg","text":"TemporaryFile(/tmp/multipartBody7991956514487448272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317292621,"filename":"image_18032025_18_00_53_5158.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/46f95110d8b9bdbc8a32c811f065cf41.jpg","text":"TemporaryFile(/tmp/multipartBody4120350978059975862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317292621,"filename":"image_18032025_18_00_24_6150.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345178466","file1":"1345178463","file0":"1345178460","file4":"1345178472","file5":"1345178474","file3":"1345178469"},"map_files_photo_id_array":[{"photo_id":"1345178474","filename":"file5"},{"photo_id":"1345178466","filename":"file2"},{"photo_id":"1345178472","filename":"file4"},{"photo_id":"1345178463","filename":"file1"},{"photo_id":"1345178460","filename":"file0"},{"photo_id":"1345178469","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345178469":["hashtag1","hashtag2"]},{"1345178463":["hashtag1","hashtag2"]},{"1345178472":["hashtag1","hashtag2"]},{"1345178466":["hashtag1","hashtag2"]},{"1345178460":["hashtag1","hashtag2"]},{"1345178474":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345178469, 1345178463, 1345178472, 1345178466, 1345178460, 1345178474)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.713102102279663 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:01:32.300657
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_53_5976.jpg', 2), ('/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_47_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_42_6120.jpg', 2), ('/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_35_5855.jpg', 2), ('/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_30_5808.jpg', 2), ('/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_24_6148.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_53_5976.jpg', '/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_47_5878.jpg', '/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_42_6120.jpg', '/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_35_5855.jpg', '/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_30_5808.jpg', '/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_24_6148.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_53_5976.jpg
/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_47_5878.jpg
/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_42_6120.jpg
/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_35_5855.jpg
/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_30_5808.jpg
/home/nano/Desktop/images/18032025/18/01/image_18032025_18_01_24_6148.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345178708","1345178662","1345178644","1345178787","1345178694","1345178705"],"photo_ids_order":["1345178644","1345178662","1345178694","1345178705","1345178708","1345178787"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/15c7e9883d0d0ca180ef7b9322e47891.jpg","text":"TemporaryFile(/tmp/multipartBody3538647827782686933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317352716,"filename":"image_18032025_18_01_30_5808.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/75e0016a07cc5f4488ef8011a422bb36.jpg","text":"TemporaryFile(/tmp/multipartBody9114738968703515153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317352716,"filename":"image_18032025_18_01_47_5878.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/00d308c33dbcb75c5c1704aca6718cba.jpg","text":"TemporaryFile(/tmp/multipartBody4525035219948015263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317352716,"filename":"image_18032025_18_01_53_5976.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/48f7550be43ea56e2440482d772fd104.jpg","text":"TemporaryFile(/tmp/multipartBody3584603784948194881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317352716,"filename":"image_18032025_18_01_24_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0b88c50bedc3fefea38e08f46c236606.jpg","text":"TemporaryFile(/tmp/multipartBody2385810138802033114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317352716,"filename":"image_18032025_18_01_42_6120.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/423739fb1e5d9b0a094704c5e6aa6b76.jpg","text":"TemporaryFile(/tmp/multipartBody2804315966732354062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317352716,"filename":"image_18032025_18_01_35_5855.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345178694","file1":"1345178662","file0":"1345178644","file4":"1345178708","file5":"1345178787","file3":"1345178705"},"map_files_photo_id_array":[{"photo_id":"1345178787","filename":"file5"},{"photo_id":"1345178694","filename":"file2"},{"photo_id":"1345178708","filename":"file4"},{"photo_id":"1345178662","filename":"file1"},{"photo_id":"1345178644","filename":"file0"},{"photo_id":"1345178705","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345178708":["hashtag1","hashtag2"]},{"1345178662":["hashtag1","hashtag2"]},{"1345178644":["hashtag1","hashtag2"]},{"1345178787":["hashtag1","hashtag2"]},{"1345178694":["hashtag1","hashtag2"]},{"1345178705":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345178708, 1345178662, 1345178644, 1345178787, 1345178694, 1345178705)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.821532249450684 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:02:32.430617
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_53_5971.jpg', 2), ('/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_47_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_41_5989.jpg', 2), ('/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_35_6121.jpg', 2), ('/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_29_5852.jpg', 2), ('/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_23_6058.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_53_5971.jpg', '/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_47_5895.jpg', '/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_41_5989.jpg', '/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_35_6121.jpg', '/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_29_5852.jpg', '/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_23_6058.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_53_5971.jpg
/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_47_5895.jpg
/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_41_5989.jpg
/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_35_6121.jpg
/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_29_5852.jpg
/home/nano/Desktop/images/18032025/18/02/image_18032025_18_02_23_6058.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345178920","1345178940","1345178928","1345178931","1345178925","1345178936"],"photo_ids_order":["1345178920","1345178925","1345178928","1345178931","1345178936","1345178940"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/930eb29df6ec3f45e8989e2d0ff39ea4.jpg","text":"TemporaryFile(/tmp/multipartBody7711411891910328627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317412848,"filename":"image_18032025_18_02_53_5971.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01267ba8d8ab36250c0d567e9802c62d.jpg","text":"TemporaryFile(/tmp/multipartBody9107125084789894514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317412848,"filename":"image_18032025_18_02_23_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1c5b63fed24c84d631602836d0c220a4.jpg","text":"TemporaryFile(/tmp/multipartBody227853349707405060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317412848,"filename":"image_18032025_18_02_41_5989.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/82862060e72ca0a8d2ff6daeaa7a5069.jpg","text":"TemporaryFile(/tmp/multipartBody2120891921305315998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317412848,"filename":"image_18032025_18_02_35_6121.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0516c5a3972331bc1dc5d6c45803c5b0.jpg","text":"TemporaryFile(/tmp/multipartBody1252207486282448938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317412848,"filename":"image_18032025_18_02_47_5895.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8ff575da10304b2a152ef4ebcb5c0b96.jpg","text":"TemporaryFile(/tmp/multipartBody4999378931011689486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317412848,"filename":"image_18032025_18_02_29_5852.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345178928","file1":"1345178925","file0":"1345178920","file4":"1345178936","file5":"1345178940","file3":"1345178931"},"map_files_photo_id_array":[{"photo_id":"1345178940","filename":"file5"},{"photo_id":"1345178928","filename":"file2"},{"photo_id":"1345178936","filename":"file4"},{"photo_id":"1345178925","filename":"file1"},{"photo_id":"1345178920","filename":"file0"},{"photo_id":"1345178931","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345178920":["hashtag1","hashtag2"]},{"1345178940":["hashtag1","hashtag2"]},{"1345178928":["hashtag1","hashtag2"]},{"1345178931":["hashtag1","hashtag2"]},{"1345178925":["hashtag1","hashtag2"]},{"1345178936":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345178920, 1345178940, 1345178928, 1345178931, 1345178925, 1345178936)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.05519986152649 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:03:32.528450
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_53_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_47_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_41_6126.jpg', 2), ('/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_35_5067.jpg', 2), ('/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_30_6907.jpg', 2), ('/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_23_5093.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_53_5830.jpg', '/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_47_6043.jpg', '/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_41_6126.jpg', '/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_35_5067.jpg', '/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_30_6907.jpg', '/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_23_5093.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_53_5830.jpg
/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_47_6043.jpg
/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_41_6126.jpg
/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_35_5067.jpg
/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_30_6907.jpg
/home/nano/Desktop/images/18032025/18/03/image_18032025_18_03_23_5093.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345178968","1345178959","1345178982","1345178973","1345178978","1345178963"],"photo_ids_order":["1345178959","1345178963","1345178968","1345178973","1345178978","1345178982"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac17b2a599fe108ff5fe4f7c3fa89d4f.jpg","text":"TemporaryFile(/tmp/multipartBody8095953988895977443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317472932,"filename":"image_18032025_18_03_41_6126.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b2215b37ac62928e91ffdb4dfadb225e.jpg","text":"TemporaryFile(/tmp/multipartBody5967190895229877912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317472932,"filename":"image_18032025_18_03_53_5830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/98d7731474dede50950ab4f6f058806a.jpg","text":"TemporaryFile(/tmp/multipartBody1378933548708940425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317472932,"filename":"image_18032025_18_03_23_5093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2d55b54e20e722abc590105fe1ec8c7.jpg","text":"TemporaryFile(/tmp/multipartBody3914350530288815320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317472932,"filename":"image_18032025_18_03_35_5067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c468f3f9fb02f12d9cd6a283d6e49303.jpg","text":"TemporaryFile(/tmp/multipartBody9124182790803048884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317472932,"filename":"image_18032025_18_03_30_6907.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4cc436bba30dca6eb9db0a37a085067.jpg","text":"TemporaryFile(/tmp/multipartBody4779320990629570813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317472932,"filename":"image_18032025_18_03_47_6043.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345178968","file1":"1345178963","file0":"1345178959","file4":"1345178978","file5":"1345178982","file3":"1345178973"},"map_files_photo_id_array":[{"photo_id":"1345178982","filename":"file5"},{"photo_id":"1345178968","filename":"file2"},{"photo_id":"1345178978","filename":"file4"},{"photo_id":"1345178963","filename":"file1"},{"photo_id":"1345178959","filename":"file0"},{"photo_id":"1345178973","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345178968":["hashtag1","hashtag2"]},{"1345178959":["hashtag1","hashtag2"]},{"1345178982":["hashtag1","hashtag2"]},{"1345178973":["hashtag1","hashtag2"]},{"1345178978":["hashtag1","hashtag2"]},{"1345178963":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345178968, 1345178959, 1345178982, 1345178973, 1345178978, 1345178963)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.268484354019165 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:04:32.637237
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_53_5949.jpg', 2), ('/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_48_5841.jpg', 2), ('/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_42_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_36_6864.jpg', 2), ('/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_29_5946.jpg', 2), ('/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_23_5106.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_53_5949.jpg', '/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_48_5841.jpg', '/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_42_5967.jpg', '/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_36_6864.jpg', '/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_29_5946.jpg', '/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_23_5106.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_53_5949.jpg
/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_48_5841.jpg
/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_42_5967.jpg
/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_36_6864.jpg
/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_29_5946.jpg
/home/nano/Desktop/images/18032025/18/04/image_18032025_18_04_23_5106.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345179310","1345179273","1345179321","1345179368","1345179296","1345179404"],"photo_ids_order":["1345179273","1345179296","1345179310","1345179321","1345179368","1345179404"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9bcb86b7616c47c0b2c731716d7c45d1.jpg","text":"TemporaryFile(/tmp/multipartBody6787905211533553683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317533051,"filename":"image_18032025_18_04_42_5967.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4453271c7ae5114266a1a988d0e7c004.jpg","text":"TemporaryFile(/tmp/multipartBody8928496169289332387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317533051,"filename":"image_18032025_18_04_53_5949.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e9e46ca9b738f2b304abe28001ecc4b.jpg","text":"TemporaryFile(/tmp/multipartBody4278077650438063093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317533051,"filename":"image_18032025_18_04_36_6864.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/743c9812ca276538aed0bc890a4af538.jpg","text":"TemporaryFile(/tmp/multipartBody7962384873790193908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317533051,"filename":"image_18032025_18_04_29_5946.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/288228400bde46a5a72589e0ab197bd8.jpg","text":"TemporaryFile(/tmp/multipartBody375818832076642444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317533051,"filename":"image_18032025_18_04_48_5841.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/24ba3842687535e87c67f28054fce463.jpg","text":"TemporaryFile(/tmp/multipartBody6048503905777393612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317533051,"filename":"image_18032025_18_04_23_5106.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345179310","file1":"1345179296","file0":"1345179273","file4":"1345179368","file5":"1345179404","file3":"1345179321"},"map_files_photo_id_array":[{"photo_id":"1345179404","filename":"file5"},{"photo_id":"1345179310","filename":"file2"},{"photo_id":"1345179368","filename":"file4"},{"photo_id":"1345179296","filename":"file1"},{"photo_id":"1345179273","filename":"file0"},{"photo_id":"1345179321","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345179310":["hashtag1","hashtag2"]},{"1345179273":["hashtag1","hashtag2"]},{"1345179321":["hashtag1","hashtag2"]},{"1345179368":["hashtag1","hashtag2"]},{"1345179296":["hashtag1","hashtag2"]},{"1345179404":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345179310, 1345179273, 1345179321, 1345179368, 1345179296, 1345179404)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.73239088058472 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:05:32.820401
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_53_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_47_6026.jpg', 2), ('/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_41_5992.jpg', 2), ('/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_35_6118.jpg', 2), ('/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_29_5935.jpg', 2), ('/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_23_5989.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_53_6109.jpg', '/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_47_6026.jpg', '/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_41_5992.jpg', '/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_35_6118.jpg', '/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_29_5935.jpg', '/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_23_5989.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_53_6109.jpg
/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_47_6026.jpg
/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_41_5992.jpg
/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_35_6118.jpg
/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_29_5935.jpg
/home/nano/Desktop/images/18032025/18/05/image_18032025_18_05_23_5989.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345179585","1345179483","1345179456","1345179519","1345179557","1345179461"],"photo_ids_order":["1345179456","1345179461","1345179483","1345179519","1345179557","1345179585"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/724920421906d30a293ce5dde1238410.jpg","text":"TemporaryFile(/tmp/multipartBody5362871727731383156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317593243,"filename":"image_18032025_18_05_23_5989.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e7d380a2a0f63d9bde45b8f8f7a65e65.jpg","text":"TemporaryFile(/tmp/multipartBody5531618966026813424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317593243,"filename":"image_18032025_18_05_41_5992.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/16ce7b7a0cdfd8409681f5c24ea5f411.jpg","text":"TemporaryFile(/tmp/multipartBody7760668684771103551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317593243,"filename":"image_18032025_18_05_53_6109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8e4e693f667c6b794c8a79856dbe4f58.jpg","text":"TemporaryFile(/tmp/multipartBody4495397516266153926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317593243,"filename":"image_18032025_18_05_35_6118.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2becf7eb293480e696e348e909848d9c.jpg","text":"TemporaryFile(/tmp/multipartBody6881697599932316760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317593243,"filename":"image_18032025_18_05_29_5935.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/499a039bcdd00c50fa2cc5ad55272866.jpg","text":"TemporaryFile(/tmp/multipartBody853636858676052790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317593243,"filename":"image_18032025_18_05_47_6026.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345179483","file1":"1345179461","file0":"1345179456","file4":"1345179557","file5":"1345179585","file3":"1345179519"},"map_files_photo_id_array":[{"photo_id":"1345179585","filename":"file5"},{"photo_id":"1345179483","filename":"file2"},{"photo_id":"1345179557","filename":"file4"},{"photo_id":"1345179461","filename":"file1"},{"photo_id":"1345179456","filename":"file0"},{"photo_id":"1345179519","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345179585":["hashtag1","hashtag2"]},{"1345179483":["hashtag1","hashtag2"]},{"1345179456":["hashtag1","hashtag2"]},{"1345179519":["hashtag1","hashtag2"]},{"1345179557":["hashtag1","hashtag2"]},{"1345179461":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345179585, 1345179483, 1345179456, 1345179519, 1345179557, 1345179461)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.510082483291626 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:06:31.942949
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_54_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_48_5990.jpg', 2), ('/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_42_6742.jpg', 2), ('/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_35_5056.jpg', 2), ('/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_30_6837.jpg', 2), ('/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_23_6100.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_54_6113.jpg', '/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_48_5990.jpg', '/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_42_6742.jpg', '/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_35_5056.jpg', '/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_30_6837.jpg', '/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_23_6100.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_54_6113.jpg
/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_48_5990.jpg
/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_42_6742.jpg
/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_35_5056.jpg
/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_30_6837.jpg
/home/nano/Desktop/images/18032025/18/06/image_18032025_18_06_23_6100.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345179901","1345179867","1345180050","1345179994","1345180096","1345179949"],"photo_ids_order":["1345179867","1345179901","1345179949","1345179994","1345180050","1345180096"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c9999486ff83503e41b38357f2d35ce3.jpg","text":"TemporaryFile(/tmp/multipartBody7070962036759714542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317652355,"filename":"image_18032025_18_06_48_5990.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6d6d7fec84e762f76d12d28323b3d236.jpg","text":"TemporaryFile(/tmp/multipartBody2397732160123571986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317652355,"filename":"image_18032025_18_06_54_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95c4b311e7d346ec78353a79e81b1cef.jpg","text":"TemporaryFile(/tmp/multipartBody5009200561882383863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317652355,"filename":"image_18032025_18_06_30_6837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a8d88ad69db25ac0229bc998c4321a9a.jpg","text":"TemporaryFile(/tmp/multipartBody7727984164109817286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317652355,"filename":"image_18032025_18_06_35_5056.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8cddac4e1622cfd2a413b85d41971e2e.jpg","text":"TemporaryFile(/tmp/multipartBody4895285675812510301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317652355,"filename":"image_18032025_18_06_23_6100.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e30e50bcb82c85eadfecf3df24b6e01a.jpg","text":"TemporaryFile(/tmp/multipartBody3929866898990506657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317652355,"filename":"image_18032025_18_06_42_6742.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345179949","file1":"1345179901","file0":"1345179867","file4":"1345180050","file5":"1345180096","file3":"1345179994"},"map_files_photo_id_array":[{"photo_id":"1345180096","filename":"file5"},{"photo_id":"1345179949","filename":"file2"},{"photo_id":"1345180050","filename":"file4"},{"photo_id":"1345179901","filename":"file1"},{"photo_id":"1345179867","filename":"file0"},{"photo_id":"1345179994","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345179901":["hashtag1","hashtag2"]},{"1345179867":["hashtag1","hashtag2"]},{"1345180050":["hashtag1","hashtag2"]},{"1345179994":["hashtag1","hashtag2"]},{"1345180096":["hashtag1","hashtag2"]},{"1345179949":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345179901, 1345179867, 1345180050, 1345179994, 1345180096, 1345179949)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.547823429107666 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:07:32.034704
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_53_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_47_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_41_5982.jpg', 2), ('/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_35_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_29_5920.jpg', 2), ('/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_23_5831.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_53_5975.jpg', '/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_47_5767.jpg', '/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_41_5982.jpg', '/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_35_6165.jpg', '/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_29_5920.jpg', '/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_23_5831.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_53_5975.jpg
/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_47_5767.jpg
/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_41_5982.jpg
/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_35_6165.jpg
/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_29_5920.jpg
/home/nano/Desktop/images/18032025/18/07/image_18032025_18_07_23_5831.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345180406","1345180399","1345180366","1345180402","1345180395","1345180380"],"photo_ids_order":["1345180366","1345180380","1345180395","1345180399","1345180402","1345180406"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd06592e49b8785653d9d5c9defa2241.jpg","text":"TemporaryFile(/tmp/multipartBody4190284382287601310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317712427,"filename":"image_18032025_18_07_23_5831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c431fbf24e1aa97c75b3174e7c0c53b.jpg","text":"TemporaryFile(/tmp/multipartBody7366409806777278274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317712427,"filename":"image_18032025_18_07_35_6165.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3e20005d81e359c1b25481ff7d6bae34.jpg","text":"TemporaryFile(/tmp/multipartBody6170642438060364812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317712427,"filename":"image_18032025_18_07_53_5975.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be853202114bbb6547c2e38f25e1403b.jpg","text":"TemporaryFile(/tmp/multipartBody4768134660719894196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317712427,"filename":"image_18032025_18_07_29_5920.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cdc29d488f22db0499d1c3d2dacbc838.jpg","text":"TemporaryFile(/tmp/multipartBody1874730339933601234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317712427,"filename":"image_18032025_18_07_41_5982.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ed5d356dca51f02a39f297d17cf5e4e.jpg","text":"TemporaryFile(/tmp/multipartBody3049528534186959509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317712427,"filename":"image_18032025_18_07_47_5767.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345180395","file1":"1345180380","file0":"1345180366","file4":"1345180402","file5":"1345180406","file3":"1345180399"},"map_files_photo_id_array":[{"photo_id":"1345180406","filename":"file5"},{"photo_id":"1345180395","filename":"file2"},{"photo_id":"1345180402","filename":"file4"},{"photo_id":"1345180380","filename":"file1"},{"photo_id":"1345180366","filename":"file0"},{"photo_id":"1345180399","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345180406":["hashtag1","hashtag2"]},{"1345180399":["hashtag1","hashtag2"]},{"1345180366":["hashtag1","hashtag2"]},{"1345180402":["hashtag1","hashtag2"]},{"1345180395":["hashtag1","hashtag2"]},{"1345180380":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345180406, 1345180399, 1345180366, 1345180402, 1345180395, 1345180380)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.455109357833862 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:08:32.144495
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_54_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_48_5804.jpg', 2), ('/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_42_5928.jpg', 2), ('/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_36_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_30_6721.jpg', 2), ('/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_23_5924.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_54_6116.jpg', '/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_48_5804.jpg', '/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_42_5928.jpg', '/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_36_6106.jpg', '/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_30_6721.jpg', '/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_23_5924.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_54_6116.jpg
/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_48_5804.jpg
/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_42_5928.jpg
/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_36_6106.jpg
/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_30_6721.jpg
/home/nano/Desktop/images/18032025/18/08/image_18032025_18_08_23_5924.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345180759","1345180725","1345180728","1345180737","1345180701","1345180783"],"photo_ids_order":["1345180701","1345180725","1345180728","1345180737","1345180759","1345180783"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/643e5551bf5fc560a47f7af861e499e2.jpg","text":"TemporaryFile(/tmp/multipartBody8374920966900608518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317772556,"filename":"image_18032025_18_08_30_6721.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/51d355eee1fe5716553a1e35ff2a1d97.jpg","text":"TemporaryFile(/tmp/multipartBody5852652741474422943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317772556,"filename":"image_18032025_18_08_48_5804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7b7090da90bb7da9cf8d68e068269ba7.jpg","text":"TemporaryFile(/tmp/multipartBody3591682026861558892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317772556,"filename":"image_18032025_18_08_42_5928.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e0f54e30d2812a0f7a8fd45b11c1843a.jpg","text":"TemporaryFile(/tmp/multipartBody2277903440819885285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317772556,"filename":"image_18032025_18_08_36_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/494ca970f54280ba7616522800c3aa35.jpg","text":"TemporaryFile(/tmp/multipartBody2029989370151594628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317772556,"filename":"image_18032025_18_08_54_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd7abbca2a0d435b6ef23c4cdcc0f045.jpg","text":"TemporaryFile(/tmp/multipartBody2785902363412939216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317772556,"filename":"image_18032025_18_08_23_5924.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345180728","file1":"1345180725","file0":"1345180701","file4":"1345180759","file5":"1345180783","file3":"1345180737"},"map_files_photo_id_array":[{"photo_id":"1345180783","filename":"file5"},{"photo_id":"1345180728","filename":"file2"},{"photo_id":"1345180759","filename":"file4"},{"photo_id":"1345180725","filename":"file1"},{"photo_id":"1345180701","filename":"file0"},{"photo_id":"1345180737","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345180759":["hashtag1","hashtag2"]},{"1345180725":["hashtag1","hashtag2"]},{"1345180728":["hashtag1","hashtag2"]},{"1345180737":["hashtag1","hashtag2"]},{"1345180701":["hashtag1","hashtag2"]},{"1345180783":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345180759, 1345180725, 1345180728, 1345180737, 1345180701, 1345180783)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.788902759552 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:09:32.259089
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_53_5974.jpg', 2), ('/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_47_5737.jpg', 2), ('/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_41_6027.jpg', 2), ('/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_35_5989.jpg', 2), ('/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_29_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_23_5784.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_53_5974.jpg', '/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_47_5737.jpg', '/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_41_6027.jpg', '/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_35_5989.jpg', '/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_29_6047.jpg', '/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_23_5784.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_53_5974.jpg
/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_47_5737.jpg
/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_41_6027.jpg
/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_35_5989.jpg
/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_29_6047.jpg
/home/nano/Desktop/images/18032025/18/09/image_18032025_18_09_23_5784.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345181035","1345181008","1345180927","1345180900","1345180956","1345180880"],"photo_ids_order":["1345180880","1345180900","1345180927","1345180956","1345181008","1345181035"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f6d756706da94a9369d068c8e637994b.jpg","text":"TemporaryFile(/tmp/multipartBody6795216951138919858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317832658,"filename":"image_18032025_18_09_23_5784.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6e08ce85ac1b5160132059e27adf69e5.jpg","text":"TemporaryFile(/tmp/multipartBody8611459838245735611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317832658,"filename":"image_18032025_18_09_29_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe2c99eaf814647859b6d0512c06a5dd.jpg","text":"TemporaryFile(/tmp/multipartBody8840743535086970599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317832658,"filename":"image_18032025_18_09_41_6027.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a4dc917ab109777039fd632c782eea1.jpg","text":"TemporaryFile(/tmp/multipartBody2822294178291761167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317832658,"filename":"image_18032025_18_09_47_5737.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12944da014f94dd53468a147e52e3fac.jpg","text":"TemporaryFile(/tmp/multipartBody598400070635291140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317832658,"filename":"image_18032025_18_09_35_5989.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27a485649e4a27c6650923c43911ca23.jpg","text":"TemporaryFile(/tmp/multipartBody396103009028449324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317832658,"filename":"image_18032025_18_09_53_5974.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345180927","file1":"1345180900","file0":"1345180880","file4":"1345181008","file5":"1345181035","file3":"1345180956"},"map_files_photo_id_array":[{"photo_id":"1345181035","filename":"file5"},{"photo_id":"1345180927","filename":"file2"},{"photo_id":"1345181008","filename":"file4"},{"photo_id":"1345180900","filename":"file1"},{"photo_id":"1345180880","filename":"file0"},{"photo_id":"1345180956","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345181035":["hashtag1","hashtag2"]},{"1345181008":["hashtag1","hashtag2"]},{"1345180927":["hashtag1","hashtag2"]},{"1345180900":["hashtag1","hashtag2"]},{"1345180956":["hashtag1","hashtag2"]},{"1345180880":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345181035, 1345181008, 1345180927, 1345180900, 1345180956, 1345180880)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.685213804244995 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:10:32.362925
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_54_6617.jpg', 2), ('/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_47_5962.jpg', 2), ('/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_41_5823.jpg', 2), ('/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_35_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_29_5626.jpg', 2), ('/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_24_6766.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_54_6617.jpg', '/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_47_5962.jpg', '/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_41_5823.jpg', '/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_35_5860.jpg', '/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_29_5626.jpg', '/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_24_6766.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_54_6617.jpg
/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_47_5962.jpg
/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_41_5823.jpg
/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_35_5860.jpg
/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_29_5626.jpg
/home/nano/Desktop/images/18032025/18/10/image_18032025_18_10_24_6766.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345181964","1345181710","1345181775","1345181544","1345181867","1345181654"],"photo_ids_order":["1345181544","1345181654","1345181710","1345181775","1345181867","1345181964"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90238220f35eba38b0a7857589010e75.jpg","text":"TemporaryFile(/tmp/multipartBody2271143714686628629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317892765,"filename":"image_18032025_18_10_24_6766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce3e3c2816212fa03cd2510ade3327d4.jpg","text":"TemporaryFile(/tmp/multipartBody4625454623441583637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317892765,"filename":"image_18032025_18_10_41_5823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/359313bc32b1c1f7d084eced8f09f412.jpg","text":"TemporaryFile(/tmp/multipartBody3480656876990267486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317892765,"filename":"image_18032025_18_10_35_5860.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/00c836d462b641798ec281548b499d1b.jpg","text":"TemporaryFile(/tmp/multipartBody7930839533929712338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317892765,"filename":"image_18032025_18_10_54_6617.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ebfe687ed0f7e4ed1babc2f7428add1b.jpg","text":"TemporaryFile(/tmp/multipartBody6319764876366858171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317892765,"filename":"image_18032025_18_10_29_5626.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3a9f4983c04dd6f9184b59d8bd297656.jpg","text":"TemporaryFile(/tmp/multipartBody3586442946494614558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317892765,"filename":"image_18032025_18_10_47_5962.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345181710","file1":"1345181654","file0":"1345181544","file4":"1345181867","file5":"1345181964","file3":"1345181775"},"map_files_photo_id_array":[{"photo_id":"1345181964","filename":"file5"},{"photo_id":"1345181710","filename":"file2"},{"photo_id":"1345181867","filename":"file4"},{"photo_id":"1345181654","filename":"file1"},{"photo_id":"1345181544","filename":"file0"},{"photo_id":"1345181775","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345181964":["hashtag1","hashtag2"]},{"1345181710":["hashtag1","hashtag2"]},{"1345181775":["hashtag1","hashtag2"]},{"1345181544":["hashtag1","hashtag2"]},{"1345181867":["hashtag1","hashtag2"]},{"1345181654":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345181964, 1345181710, 1345181775, 1345181544, 1345181867, 1345181654)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.59565544128418 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:11:32.502027
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_53_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_47_6621.jpg', 2), ('/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_41_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_35_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_30_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_23_5680.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_53_5650.jpg', '/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_47_6621.jpg', '/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_41_5650.jpg', '/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_35_5656.jpg', '/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_30_6627.jpg', '/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_23_5680.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_53_5650.jpg
/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_47_6621.jpg
/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_41_5650.jpg
/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_35_5656.jpg
/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_30_6627.jpg
/home/nano/Desktop/images/18032025/18/11/image_18032025_18_11_23_5680.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345182963","1345182669","1345182905","1345182844","1345182730","1345182798"],"photo_ids_order":["1345182669","1345182730","1345182798","1345182844","1345182905","1345182963"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ee5169d2e36dfe427f80cef4d19b445.jpg","text":"TemporaryFile(/tmp/multipartBody7864608736747685992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317952916,"filename":"image_18032025_18_11_23_5680.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/93b71060c387aa3c884cfe725ee6a5f8.jpg","text":"TemporaryFile(/tmp/multipartBody3978754044408720665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317952916,"filename":"image_18032025_18_11_53_5650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/82166790c19aea571c6a9be11a6cc2ec.jpg","text":"TemporaryFile(/tmp/multipartBody1924919552216668183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317952916,"filename":"image_18032025_18_11_30_6627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9fc5fec4fe0a8ca2aef7b3d6a090e047.jpg","text":"TemporaryFile(/tmp/multipartBody5377271970221651748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317952916,"filename":"image_18032025_18_11_35_5656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9e96f8b47c0c92a082ddfed3e6794909.jpg","text":"TemporaryFile(/tmp/multipartBody5462012398501325402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317952916,"filename":"image_18032025_18_11_47_6621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c3e24ca1565d758e21b4e9c8cb71e79.jpg","text":"TemporaryFile(/tmp/multipartBody8772348891334617578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742317952916,"filename":"image_18032025_18_11_41_5650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345182798","file1":"1345182730","file0":"1345182669","file4":"1345182905","file5":"1345182963","file3":"1345182844"},"map_files_photo_id_array":[{"photo_id":"1345182963","filename":"file5"},{"photo_id":"1345182798","filename":"file2"},{"photo_id":"1345182905","filename":"file4"},{"photo_id":"1345182730","filename":"file1"},{"photo_id":"1345182669","filename":"file0"},{"photo_id":"1345182844","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345182963":["hashtag1","hashtag2"]},{"1345182669":["hashtag1","hashtag2"]},{"1345182905":["hashtag1","hashtag2"]},{"1345182844":["hashtag1","hashtag2"]},{"1345182730":["hashtag1","hashtag2"]},{"1345182798":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345182963, 1345182669, 1345182905, 1345182844, 1345182730, 1345182798)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.318252086639404 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:12:32.632852
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_54_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_47_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_41_5666.jpg', 2), ('/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_36_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_29_5674.jpg', 2), ('/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_23_5624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_54_6639.jpg', '/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_47_5633.jpg', '/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_41_5666.jpg', '/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_36_6655.jpg', '/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_29_5674.jpg', '/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_23_5624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_54_6639.jpg
/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_47_5633.jpg
/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_41_5666.jpg
/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_36_6655.jpg
/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_29_5674.jpg
/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_23_5624.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345183317","1345183407","1345183463","1345183343","1345183287","1345183380"],"photo_ids_order":["1345183287","1345183317","1345183343","1345183380","1345183407","1345183463"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a9526bd8c409c4fc369c2b9c8ca7c20e.jpg","text":"TemporaryFile(/tmp/multipartBody5895388162094790329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318013022,"filename":"image_18032025_18_12_47_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d04e81b51313a90964329d93339e7e28.jpg","text":"TemporaryFile(/tmp/multipartBody8046820099324617317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318013022,"filename":"image_18032025_18_12_29_5674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01b37c73468cfc00b94c346661c4929e.jpg","text":"TemporaryFile(/tmp/multipartBody5644921724460231588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318013022,"filename":"image_18032025_18_12_23_5624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4044fd6ca68367e23b7e56951a5712ca.jpg","text":"TemporaryFile(/tmp/multipartBody5002995002842038499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318013022,"filename":"image_18032025_18_12_41_5666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1eebe172bf9986e83a8bbf4db30b4d67.jpg","text":"TemporaryFile(/tmp/multipartBody3417567333776050063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318013022,"filename":"image_18032025_18_12_54_6639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10df53436fb43c6f34ce8a50482989c3.jpg","text":"TemporaryFile(/tmp/multipartBody3081253620467849326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318013022,"filename":"image_18032025_18_12_36_6655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345183343","file1":"1345183317","file0":"1345183287","file4":"1345183407","file5":"1345183463","file3":"1345183380"},"map_files_photo_id_array":[{"photo_id":"1345183463","filename":"file5"},{"photo_id":"1345183343","filename":"file2"},{"photo_id":"1345183407","filename":"file4"},{"photo_id":"1345183317","filename":"file1"},{"photo_id":"1345183287","filename":"file0"},{"photo_id":"1345183380","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345183317":["hashtag1","hashtag2"]},{"1345183407":["hashtag1","hashtag2"]},{"1345183463":["hashtag1","hashtag2"]},{"1345183343":["hashtag1","hashtag2"]},{"1345183287":["hashtag1","hashtag2"]},{"1345183380":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345183317, 1345183407, 1345183463, 1345183343, 1345183287, 1345183380)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.147420167922974 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:13:32.714256
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_47_5762.jpg', 2), ('/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_42_6761.jpg', 2), ('/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_35_5844.jpg', 2), ('/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_29_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_23_5814.jpg', 2), ('/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_18_5888.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_47_5762.jpg', '/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_42_6761.jpg', '/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_35_5844.jpg', '/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_29_5781.jpg', '/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_23_5814.jpg', '/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_18_5888.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_47_5762.jpg
/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_42_6761.jpg
/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_35_5844.jpg
/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_29_5781.jpg
/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_23_5814.jpg
/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_18_5888.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345184087","1345184051","1345184225","1345184023","1345184152","1345184093"],"photo_ids_order":["1345184023","1345184051","1345184087","1345184093","1345184152","1345184225"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/76fb302e9d36d14bd6b6d0f98dcc2c51.jpg","text":"TemporaryFile(/tmp/multipartBody8056245786003390633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318073223,"filename":"image_18032025_18_13_35_5844.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3aed3356ea995231f95e3688bff7451e.jpg","text":"TemporaryFile(/tmp/multipartBody8375966601181285042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318073223,"filename":"image_18032025_18_13_42_6761.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e2768a7a9feb9aaa1ede930278280c37.jpg","text":"TemporaryFile(/tmp/multipartBody4985478525198958280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318073223,"filename":"image_18032025_18_13_18_5888.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1716edff60ef584797ad8e48c09bf8e6.jpg","text":"TemporaryFile(/tmp/multipartBody4026535885332044772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318073223,"filename":"image_18032025_18_13_47_5762.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d5600f448a3b6452ed8f88f29f61fa8.jpg","text":"TemporaryFile(/tmp/multipartBody4003821413868423845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318073223,"filename":"image_18032025_18_13_23_5814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b849a9dcc87dfe019bcaf4b48efb6c17.jpg","text":"TemporaryFile(/tmp/multipartBody5571819322112541606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318073223,"filename":"image_18032025_18_13_29_5781.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345184087","file1":"1345184051","file0":"1345184023","file4":"1345184152","file5":"1345184225","file3":"1345184093"},"map_files_photo_id_array":[{"photo_id":"1345184225","filename":"file5"},{"photo_id":"1345184087","filename":"file2"},{"photo_id":"1345184152","filename":"file4"},{"photo_id":"1345184051","filename":"file1"},{"photo_id":"1345184023","filename":"file0"},{"photo_id":"1345184093","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345184087":["hashtag1","hashtag2"]},{"1345184051":["hashtag1","hashtag2"]},{"1345184225":["hashtag1","hashtag2"]},{"1345184023":["hashtag1","hashtag2"]},{"1345184152":["hashtag1","hashtag2"]},{"1345184093":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345184087, 1345184051, 1345184225, 1345184023, 1345184152, 1345184093)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.436330795288086 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:14:31.819345
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_54_6031.jpg', 2), ('/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_47_5820.jpg', 2), ('/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_42_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_36_6836.jpg', 2), ('/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_29_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_23_5840.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_54_6031.jpg', '/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_47_5820.jpg', '/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_42_5869.jpg', '/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_36_6836.jpg', '/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_29_5834.jpg', '/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_23_5840.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_54_6031.jpg
/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_47_5820.jpg
/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_42_5869.jpg
/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_36_6836.jpg
/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_29_5834.jpg
/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_23_5840.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345184693","1345184741","1345184716","1345184772","1345184769","1345184763"],"photo_ids_order":["1345184693","1345184716","1345184741","1345184763","1345184769","1345184772"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10d316104673a4ce24edb50aac0d736b.jpg","text":"TemporaryFile(/tmp/multipartBody7134037857048016450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318132257,"filename":"image_18032025_18_14_54_6031.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4d9c56fcd7edda72c006d4324d98e1ea.jpg","text":"TemporaryFile(/tmp/multipartBody6551391706547553415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318132257,"filename":"image_18032025_18_14_42_5869.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cb86aec546d0cb02cbb2675f0b18122c.jpg","text":"TemporaryFile(/tmp/multipartBody1361766787850752018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318132257,"filename":"image_18032025_18_14_47_5820.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dcc8c403bff034d181c3e4bddf19adf9.jpg","text":"TemporaryFile(/tmp/multipartBody8818484487742351374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318132257,"filename":"image_18032025_18_14_23_5840.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52a4b770073c18864810ce3c8cc36eb4.jpg","text":"TemporaryFile(/tmp/multipartBody4402687890107801932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318132257,"filename":"image_18032025_18_14_29_5834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c8a14d8eebc6586a88f5027b7f2febf.jpg","text":"TemporaryFile(/tmp/multipartBody1767936091936249968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318132257,"filename":"image_18032025_18_14_36_6836.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345184741","file1":"1345184716","file0":"1345184693","file4":"1345184769","file5":"1345184772","file3":"1345184763"},"map_files_photo_id_array":[{"photo_id":"1345184772","filename":"file5"},{"photo_id":"1345184741","filename":"file2"},{"photo_id":"1345184769","filename":"file4"},{"photo_id":"1345184716","filename":"file1"},{"photo_id":"1345184693","filename":"file0"},{"photo_id":"1345184763","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345184693":["hashtag1","hashtag2"]},{"1345184741":["hashtag1","hashtag2"]},{"1345184716":["hashtag1","hashtag2"]},{"1345184772":["hashtag1","hashtag2"]},{"1345184769":["hashtag1","hashtag2"]},{"1345184763":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345184693, 1345184741, 1345184716, 1345184772, 1345184769, 1345184763)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.47581100463867 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:15:31.938197
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_53_5873.jpg', 2), ('/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_47_5778.jpg', 2), ('/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_42_5864.jpg', 2), ('/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_30_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_24_6860.jpg', 2), ('/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_17_5905.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_53_5873.jpg', '/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_47_5778.jpg', '/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_42_5864.jpg', '/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_30_5894.jpg', '/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_24_6860.jpg', '/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_17_5905.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_53_5873.jpg
/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_47_5778.jpg
/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_42_5864.jpg
/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_30_5894.jpg
/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_24_6860.jpg
/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_17_5905.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345185106","1345184976","1345185009","1345184955","1345184937","1345185056"],"photo_ids_order":["1345184937","1345184955","1345184976","1345185009","1345185056","1345185106"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6fdfe28c321325ac3d17e7abafeca4e1.jpg","text":"TemporaryFile(/tmp/multipartBody5323845940771428599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318192369,"filename":"image_18032025_18_15_17_5905.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/09dabcd5eb69396561fda29bb904a88b.jpg","text":"TemporaryFile(/tmp/multipartBody8001149242924761936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318192369,"filename":"image_18032025_18_15_42_5864.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec5333cc698de550131a550b634ccd2c.jpg","text":"TemporaryFile(/tmp/multipartBody9164173724656002393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318192369,"filename":"image_18032025_18_15_30_5894.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/99a008cbdb1d44b2a5ffeee942b74a6c.jpg","text":"TemporaryFile(/tmp/multipartBody1317163640139642014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318192369,"filename":"image_18032025_18_15_47_5778.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6fd7bfa1556c50fd46f144a7f353b4cc.jpg","text":"TemporaryFile(/tmp/multipartBody1364949093576879860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318192369,"filename":"image_18032025_18_15_53_5873.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e39a1251cbd77c606cea380ed3ec8c62.jpg","text":"TemporaryFile(/tmp/multipartBody6664958263188280016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318192369,"filename":"image_18032025_18_15_24_6860.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345184976","file1":"1345184955","file0":"1345184937","file4":"1345185056","file5":"1345185106","file3":"1345185009"},"map_files_photo_id_array":[{"photo_id":"1345185106","filename":"file5"},{"photo_id":"1345184976","filename":"file2"},{"photo_id":"1345185056","filename":"file4"},{"photo_id":"1345184955","filename":"file1"},{"photo_id":"1345184937","filename":"file0"},{"photo_id":"1345185009","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345185106":["hashtag1","hashtag2"]},{"1345184976":["hashtag1","hashtag2"]},{"1345185009":["hashtag1","hashtag2"]},{"1345184955":["hashtag1","hashtag2"]},{"1345184937":["hashtag1","hashtag2"]},{"1345185056":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345185106, 1345184976, 1345185009, 1345184955, 1345184937, 1345185056)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.29739737510681 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:16:32.059788
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_47_5687.jpg', 2), ('/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_42_6635.jpg', 2), ('/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_35_5721.jpg', 2), ('/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_29_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_24_5805.jpg', 2), ('/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_18_6962.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_47_5687.jpg', '/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_42_6635.jpg', '/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_35_5721.jpg', '/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_29_5787.jpg', '/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_24_5805.jpg', '/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_18_6962.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_47_5687.jpg
/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_42_6635.jpg
/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_35_5721.jpg
/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_29_5787.jpg
/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_24_5805.jpg
/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_18_6962.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345185499","1345185559","1345185538","1345185529","1345185517","1345185543"],"photo_ids_order":["1345185499","1345185517","1345185529","1345185538","1345185543","1345185559"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/346aa6d3ff545ae057bbd36e02804341.jpg","text":"TemporaryFile(/tmp/multipartBody3777887173680685973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318252433,"filename":"image_18032025_18_16_47_5687.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ecc72c29f735503a3bd4d4b51a072468.jpg","text":"TemporaryFile(/tmp/multipartBody80587802896545566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318252433,"filename":"image_18032025_18_16_18_6962.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ef2683b36c118f0286bb56fae698401.jpg","text":"TemporaryFile(/tmp/multipartBody783639064998226886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318252433,"filename":"image_18032025_18_16_29_5787.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6cd1fe6dab2188bcaf7ac6e0833b3c5f.jpg","text":"TemporaryFile(/tmp/multipartBody1531985501188736142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318252433,"filename":"image_18032025_18_16_35_5721.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0fa1181237f8f5fb0c3617b6bd3f0500.jpg","text":"TemporaryFile(/tmp/multipartBody4354270190585188582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318252433,"filename":"image_18032025_18_16_42_6635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ce49acec2a7aad4e4890b35318b1d44.jpg","text":"TemporaryFile(/tmp/multipartBody1005514564348857757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318252433,"filename":"image_18032025_18_16_24_5805.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345185529","file1":"1345185517","file0":"1345185499","file4":"1345185543","file5":"1345185559","file3":"1345185538"},"map_files_photo_id_array":[{"photo_id":"1345185559","filename":"file5"},{"photo_id":"1345185529","filename":"file2"},{"photo_id":"1345185543","filename":"file4"},{"photo_id":"1345185517","filename":"file1"},{"photo_id":"1345185499","filename":"file0"},{"photo_id":"1345185538","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345185499":["hashtag1","hashtag2"]},{"1345185559":["hashtag1","hashtag2"]},{"1345185538":["hashtag1","hashtag2"]},{"1345185529":["hashtag1","hashtag2"]},{"1345185517":["hashtag1","hashtag2"]},{"1345185543":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345185499, 1345185559, 1345185538, 1345185529, 1345185517, 1345185543)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.23266625404358 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:17:32.173993
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_54_6664.jpg', 2), ('/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_47_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_41_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_36_6628.jpg', 2), ('/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_29_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_23_5651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_54_6664.jpg', '/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_47_5647.jpg', '/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_41_5625.jpg', '/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_36_6628.jpg', '/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_29_5644.jpg', '/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_23_5651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_54_6664.jpg
/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_47_5647.jpg
/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_41_5625.jpg
/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_36_6628.jpg
/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_29_5644.jpg
/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_23_5651.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345185833","1345185883","1345185862","1345186026","1345186145","1345186169"],"photo_ids_order":["1345185833","1345185862","1345185883","1345186026","1345186145","1345186169"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/329e6e7cb2ffeea660231010e0339de7.jpg","text":"TemporaryFile(/tmp/multipartBody1770507170820964223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318312508,"filename":"image_18032025_18_17_54_6664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2b50058c9b97dc8e19c61b3f65c3505c.jpg","text":"TemporaryFile(/tmp/multipartBody7891041877104190823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318312508,"filename":"image_18032025_18_17_41_5625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1c3c18c3af394ad58c0dde90ebe05aeb.jpg","text":"TemporaryFile(/tmp/multipartBody8574094879079845836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318312508,"filename":"image_18032025_18_17_47_5647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dca25a47d502734dd2df1047c6bdf675.jpg","text":"TemporaryFile(/tmp/multipartBody7984483572864876351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318312508,"filename":"image_18032025_18_17_36_6628.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fdd4f5910521f98fe028814ae0ecbb91.jpg","text":"TemporaryFile(/tmp/multipartBody3818296901117694305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318312508,"filename":"image_18032025_18_17_29_5644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6cbfae081e0515f492388ea4d5f74027.jpg","text":"TemporaryFile(/tmp/multipartBody4013248895796655487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318312508,"filename":"image_18032025_18_17_23_5651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345185883","file1":"1345185862","file0":"1345185833","file4":"1345186145","file5":"1345186169","file3":"1345186026"},"map_files_photo_id_array":[{"photo_id":"1345186169","filename":"file5"},{"photo_id":"1345185883","filename":"file2"},{"photo_id":"1345186145","filename":"file4"},{"photo_id":"1345185862","filename":"file1"},{"photo_id":"1345185833","filename":"file0"},{"photo_id":"1345186026","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345185833":["hashtag1","hashtag2"]},{"1345185883":["hashtag1","hashtag2"]},{"1345185862":["hashtag1","hashtag2"]},{"1345186026":["hashtag1","hashtag2"]},{"1345186145":["hashtag1","hashtag2"]},{"1345186169":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345185833, 1345185883, 1345185862, 1345186026, 1345186145, 1345186169)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.97819948196411 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:18:32.296005
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_54_6176.jpg', 2), ('/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_48_6167.jpg', 2), ('/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_41_6177.jpg', 2), ('/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_35_6175.jpg', 2), ('/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_29_6183.jpg', 2), ('/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_23_5169.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_54_6176.jpg', '/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_48_6167.jpg', '/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_41_6177.jpg', '/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_35_6175.jpg', '/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_29_6183.jpg', '/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_23_5169.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_54_6176.jpg
/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_48_6167.jpg
/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_41_6177.jpg
/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_35_6175.jpg
/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_29_6183.jpg
/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_23_5169.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345186675","1345186741","1345186791","1345186992","1345186935","1345186877"],"photo_ids_order":["1345186675","1345186741","1345186791","1345186877","1345186935","1345186992"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10f4c092b50f1d6be4f13c1c8ee55249.jpg","text":"TemporaryFile(/tmp/multipartBody6054696641057843315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318372741,"filename":"image_18032025_18_18_54_6176.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/15a69a7721f43321ad488e43da8ea754.jpg","text":"TemporaryFile(/tmp/multipartBody3197545483510595551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318372741,"filename":"image_18032025_18_18_48_6167.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d2677c49166f109d83c54ce315be19bf.jpg","text":"TemporaryFile(/tmp/multipartBody3726944907299248674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318372741,"filename":"image_18032025_18_18_41_6177.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd57491fda1b1c43c6589e0043bc033d.jpg","text":"TemporaryFile(/tmp/multipartBody4134443954484081608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318372741,"filename":"image_18032025_18_18_23_5169.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/087d5486072b0ac97cda168d7a0aecb2.jpg","text":"TemporaryFile(/tmp/multipartBody618170863955196054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318372741,"filename":"image_18032025_18_18_29_6183.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62142185022e82276d045c269244a6b2.jpg","text":"TemporaryFile(/tmp/multipartBody7908166325159615114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318372741,"filename":"image_18032025_18_18_35_6175.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345186791","file1":"1345186741","file0":"1345186675","file4":"1345186935","file5":"1345186992","file3":"1345186877"},"map_files_photo_id_array":[{"photo_id":"1345186992","filename":"file5"},{"photo_id":"1345186791","filename":"file2"},{"photo_id":"1345186935","filename":"file4"},{"photo_id":"1345186741","filename":"file1"},{"photo_id":"1345186675","filename":"file0"},{"photo_id":"1345186877","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345186675":["hashtag1","hashtag2"]},{"1345186741":["hashtag1","hashtag2"]},{"1345186791":["hashtag1","hashtag2"]},{"1345186992":["hashtag1","hashtag2"]},{"1345186935":["hashtag1","hashtag2"]},{"1345186877":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345186675, 1345186741, 1345186791, 1345186992, 1345186935, 1345186877)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.13591408729553 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:19:32.413424
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_53_5732.jpg', 2), ('/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_48_6787.jpg', 2), ('/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_41_5783.jpg', 2), ('/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_35_5785.jpg', 2), ('/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_29_5721.jpg', 2), ('/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_24_6670.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_53_5732.jpg', '/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_48_6787.jpg', '/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_41_5783.jpg', '/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_35_5785.jpg', '/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_29_5721.jpg', '/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_24_6670.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_53_5732.jpg
/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_48_6787.jpg
/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_41_5783.jpg
/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_35_5785.jpg
/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_29_5721.jpg
/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_24_6670.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345187442","1345187400","1345187477","1345187507","1345187359","1345187554"],"photo_ids_order":["1345187359","1345187400","1345187442","1345187477","1345187507","1345187554"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/761595a90609f761f984faadf8ae3515.jpg","text":"TemporaryFile(/tmp/multipartBody8743176374642962861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318432811,"filename":"image_18032025_18_19_41_5783.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ac1ee03558a639f7551b239f1fc0ef2.jpg","text":"TemporaryFile(/tmp/multipartBody3633948833317969730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318432811,"filename":"image_18032025_18_19_48_6787.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d11dc1d7a7ff4990b32f384d56003655.jpg","text":"TemporaryFile(/tmp/multipartBody3274755970750557352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318432811,"filename":"image_18032025_18_19_35_5785.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ff1f9df4a5b359c6986daf476101f40b.jpg","text":"TemporaryFile(/tmp/multipartBody2517022418635589876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318432811,"filename":"image_18032025_18_19_29_5721.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d154120b82079f78c7374fe72608dc7.jpg","text":"TemporaryFile(/tmp/multipartBody5904805795368406380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318432811,"filename":"image_18032025_18_19_53_5732.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/06c81500b15128090cdc66f1acb24353.jpg","text":"TemporaryFile(/tmp/multipartBody4188529531154867569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318432811,"filename":"image_18032025_18_19_24_6670.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345187442","file1":"1345187400","file0":"1345187359","file4":"1345187507","file5":"1345187554","file3":"1345187477"},"map_files_photo_id_array":[{"photo_id":"1345187554","filename":"file5"},{"photo_id":"1345187442","filename":"file2"},{"photo_id":"1345187507","filename":"file4"},{"photo_id":"1345187400","filename":"file1"},{"photo_id":"1345187359","filename":"file0"},{"photo_id":"1345187477","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345187442":["hashtag1","hashtag2"]},{"1345187400":["hashtag1","hashtag2"]},{"1345187477":["hashtag1","hashtag2"]},{"1345187507":["hashtag1","hashtag2"]},{"1345187359":["hashtag1","hashtag2"]},{"1345187554":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345187442, 1345187400, 1345187477, 1345187507, 1345187359, 1345187554)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.1964066028595 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:20:32.497008
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_54_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_35_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_30_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_24_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_12_6782.jpg', 2), ('/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_05_5764.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_54_6053.jpg', '/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_35_5750.jpg', '/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_30_5788.jpg', '/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_24_6042.jpg', '/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_12_6782.jpg', '/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_05_5764.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_54_6053.jpg
/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_35_5750.jpg
/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_30_5788.jpg
/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_24_6042.jpg
/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_12_6782.jpg
/home/nano/Desktop/images/18032025/18/20/image_18032025_18_20_05_5764.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345188573","1345188354","1345188297","1345188542","1345188236","1345188439"],"photo_ids_order":["1345188236","1345188297","1345188354","1345188439","1345188542","1345188573"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/11698e55d0fcc42ff7bfdef5dd94d994.jpg","text":"TemporaryFile(/tmp/multipartBody8499169321284376689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318492939,"filename":"image_18032025_18_20_05_5764.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c37facc47462d4b11b932e1c4136e6d.jpg","text":"TemporaryFile(/tmp/multipartBody153050399441653020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318492939,"filename":"image_18032025_18_20_30_5788.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/139295ba9245e56ebe046e9fab3e8888.jpg","text":"TemporaryFile(/tmp/multipartBody3765218477841382048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318492939,"filename":"image_18032025_18_20_35_5750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/abfb62015dacd3f3187bd7f4e4529866.jpg","text":"TemporaryFile(/tmp/multipartBody5176536077759503486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318492939,"filename":"image_18032025_18_20_12_6782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aebc02afd941e8b02d921bbf8b3c8851.jpg","text":"TemporaryFile(/tmp/multipartBody7172888725584234894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318492939,"filename":"image_18032025_18_20_54_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b7d1fb7d57d2681e6881717c16c2ba60.jpg","text":"TemporaryFile(/tmp/multipartBody540414515308368553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318492939,"filename":"image_18032025_18_20_24_6042.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345188354","file1":"1345188297","file0":"1345188236","file4":"1345188542","file5":"1345188573","file3":"1345188439"},"map_files_photo_id_array":[{"photo_id":"1345188573","filename":"file5"},{"photo_id":"1345188354","filename":"file2"},{"photo_id":"1345188542","filename":"file4"},{"photo_id":"1345188297","filename":"file1"},{"photo_id":"1345188236","filename":"file0"},{"photo_id":"1345188439","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345188573":["hashtag1","hashtag2"]},{"1345188354":["hashtag1","hashtag2"]},{"1345188297":["hashtag1","hashtag2"]},{"1345188542":["hashtag1","hashtag2"]},{"1345188236":["hashtag1","hashtag2"]},{"1345188439":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345188573, 1345188354, 1345188297, 1345188542, 1345188236, 1345188439)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.8387234210968 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:21:32.640601
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_41_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_29_5157.jpg', 2), ('/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_24_6053.jpg', 2), ('/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_18_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/18/20/image_18032025_18_21_00_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_59_5816.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_41_6050.jpg', '/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_29_5157.jpg', '/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_24_6053.jpg', '/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_18_6048.jpg', '/home/nano/Desktop/images/18032025/18/20/image_18032025_18_21_00_6048.jpg', '/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_59_5816.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_41_6050.jpg
/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_29_5157.jpg
/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_24_6053.jpg
/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_18_6048.jpg
/home/nano/Desktop/images/18032025/18/20/image_18032025_18_21_00_6048.jpg
/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_59_5816.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345188885","1345188926","1345188859","1345188913","1345188817","1345188910"],"photo_ids_order":["1345188817","1345188859","1345188885","1345188910","1345188913","1345188926"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ff16fe3b94995fbca0882a44bba6649.jpg","text":"TemporaryFile(/tmp/multipartBody135470666137053991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318553136,"filename":"image_18032025_18_21_24_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad536b5972b88161e9edb43758529a7f.jpg","text":"TemporaryFile(/tmp/multipartBody2399264147698413576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318553136,"filename":"image_18032025_18_19_59_5816.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cb6f3441e795cc43a37ad6312054d59c.jpg","text":"TemporaryFile(/tmp/multipartBody6963781974217524071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318553136,"filename":"image_18032025_18_21_29_5157.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a1c9fefa4ae27222d4ccb55be4e7f441.jpg","text":"TemporaryFile(/tmp/multipartBody6746216828371330226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318553136,"filename":"image_18032025_18_21_00_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ca691a77d8cf447e3d2e64fe4904461.jpg","text":"TemporaryFile(/tmp/multipartBody8230673898145070709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318553136,"filename":"image_18032025_18_21_41_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/86918031d1179380ae87ec6f1cb1276c.jpg","text":"TemporaryFile(/tmp/multipartBody3940571832026962096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318553136,"filename":"image_18032025_18_21_18_6048.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345188885","file1":"1345188859","file0":"1345188817","file4":"1345188913","file5":"1345188926","file3":"1345188910"},"map_files_photo_id_array":[{"photo_id":"1345188926","filename":"file5"},{"photo_id":"1345188885","filename":"file2"},{"photo_id":"1345188913","filename":"file4"},{"photo_id":"1345188859","filename":"file1"},{"photo_id":"1345188817","filename":"file0"},{"photo_id":"1345188910","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345188885":["hashtag1","hashtag2"]},{"1345188926":["hashtag1","hashtag2"]},{"1345188859":["hashtag1","hashtag2"]},{"1345188913":["hashtag1","hashtag2"]},{"1345188817":["hashtag1","hashtag2"]},{"1345188910":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345188885, 1345188926, 1345188859, 1345188913, 1345188817, 1345188910)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.47403955459595 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:22:32.745808
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_17_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_11_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_06_6697.jpg', 2), ('/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_59_5172.jpg', 2), ('/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_18_6155.jpg', 2), ('/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_12_6665.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_17_5653.jpg', '/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_11_5613.jpg', '/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_06_6697.jpg', '/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_59_5172.jpg', '/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_18_6155.jpg', '/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_12_6665.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_17_5653.jpg
/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_11_5613.jpg
/home/nano/Desktop/images/18032025/18/19/image_18032025_18_19_06_6697.jpg
/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_59_5172.jpg
/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_18_6155.jpg
/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_12_6665.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345189437","1345189442","1345189378","1345189516","1345189423","1345189473"],"photo_ids_order":["1345189378","1345189423","1345189437","1345189442","1345189473","1345189516"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af4ec049a22b3c7218359bd495f92a2a.jpg","text":"TemporaryFile(/tmp/multipartBody3822886349202517564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318613109,"filename":"image_18032025_18_19_06_6697.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/587dac6085f5acb7e1889a71354f178f.jpg","text":"TemporaryFile(/tmp/multipartBody3138533140904326867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318613109,"filename":"image_18032025_18_18_59_5172.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47f1d57e8e18fa36e6b1e4ad20f0758e.jpg","text":"TemporaryFile(/tmp/multipartBody3034941297543713525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318613109,"filename":"image_18032025_18_19_17_5653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/56a0b548fbfb6db4a44bbce6954a86e9.jpg","text":"TemporaryFile(/tmp/multipartBody8197418079335536664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318613109,"filename":"image_18032025_18_18_12_6665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/35a26efa27a36cad160555722764cd41.jpg","text":"TemporaryFile(/tmp/multipartBody6963130215160985628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318613109,"filename":"image_18032025_18_19_11_5613.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/515e7a8851f36181cc79e73ed8eed44a.jpg","text":"TemporaryFile(/tmp/multipartBody3184541669266990592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318613109,"filename":"image_18032025_18_18_18_6155.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345189437","file1":"1345189423","file0":"1345189378","file4":"1345189473","file5":"1345189516","file3":"1345189442"},"map_files_photo_id_array":[{"photo_id":"1345189516","filename":"file5"},{"photo_id":"1345189437","filename":"file2"},{"photo_id":"1345189473","filename":"file4"},{"photo_id":"1345189423","filename":"file1"},{"photo_id":"1345189378","filename":"file0"},{"photo_id":"1345189442","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345189437":["hashtag1","hashtag2"]},{"1345189442":["hashtag1","hashtag2"]},{"1345189378":["hashtag1","hashtag2"]},{"1345189516":["hashtag1","hashtag2"]},{"1345189423":["hashtag1","hashtag2"]},{"1345189473":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345189437, 1345189442, 1345189378, 1345189516, 1345189423, 1345189473)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.22211456298828 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:23:31.836265
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_53_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_47_6052.jpg', 2), ('/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_17_5035.jpg', 2), ('/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_47_5945.jpg', 2), ('/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_05_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_59_5626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_53_6051.jpg', '/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_47_6052.jpg', '/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_17_5035.jpg', '/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_47_5945.jpg', '/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_05_5636.jpg', '/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_59_5626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_53_6051.jpg
/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_47_6052.jpg
/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_17_5035.jpg
/home/nano/Desktop/images/18032025/18/21/image_18032025_18_21_47_5945.jpg
/home/nano/Desktop/images/18032025/18/18/image_18032025_18_18_05_5636.jpg
/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_59_5626.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345189734","1345189784","1345189760","1345189661","1345189687","1345189714"],"photo_ids_order":["1345189661","1345189687","1345189714","1345189734","1345189760","1345189784"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/602639f0524093961fa9567d3c7a8f64.jpg","text":"TemporaryFile(/tmp/multipartBody4064476311092776243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318672259,"filename":"image_18032025_18_21_47_5945.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e302a0e1df52b269334c56f6c69314e2.jpg","text":"TemporaryFile(/tmp/multipartBody52664258489812296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318672259,"filename":"image_18032025_18_17_59_5626.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/32ad4a1ee0cb984a9b9d13b5157c45ea.jpg","text":"TemporaryFile(/tmp/multipartBody4942814030204952562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318672259,"filename":"image_18032025_18_18_05_5636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bcb74d4297161d5afffeedaa5a44fdff.jpg","text":"TemporaryFile(/tmp/multipartBody8138020664431277172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318672259,"filename":"image_18032025_18_23_53_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6b71a1e1b52f00ce284a53a0f6c0fdca.jpg","text":"TemporaryFile(/tmp/multipartBody1085582718871760654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318672259,"filename":"image_18032025_18_23_47_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3faddc3cceb71c3a7959f19dfd624298.jpg","text":"TemporaryFile(/tmp/multipartBody2261933089938332975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318672259,"filename":"image_18032025_18_23_17_5035.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345189714","file1":"1345189687","file0":"1345189661","file4":"1345189760","file5":"1345189784","file3":"1345189734"},"map_files_photo_id_array":[{"photo_id":"1345189784","filename":"file5"},{"photo_id":"1345189714","filename":"file2"},{"photo_id":"1345189760","filename":"file4"},{"photo_id":"1345189687","filename":"file1"},{"photo_id":"1345189661","filename":"file0"},{"photo_id":"1345189734","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345189734":["hashtag1","hashtag2"]},{"1345189784":["hashtag1","hashtag2"]},{"1345189760":["hashtag1","hashtag2"]},{"1345189661":["hashtag1","hashtag2"]},{"1345189687":["hashtag1","hashtag2"]},{"1345189714":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345189734, 1345189784, 1345189760, 1345189661, 1345189687, 1345189714)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.79581069946289 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:24:31.980487
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_59_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_18_6678.jpg', 2), ('/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_11_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_05_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/18/16/image_18032025_18_17_00_6614.jpg', 2), ('/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_11_5048.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_59_6043.jpg', '/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_18_6678.jpg', '/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_11_5654.jpg', '/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_05_5671.jpg', '/home/nano/Desktop/images/18032025/18/16/image_18032025_18_17_00_6614.jpg', '/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_11_5048.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/23/image_18032025_18_23_59_6043.jpg
/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_18_6678.jpg
/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_11_5654.jpg
/home/nano/Desktop/images/18032025/18/17/image_18032025_18_17_05_5671.jpg
/home/nano/Desktop/images/18032025/18/16/image_18032025_18_17_00_6614.jpg
/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_11_5048.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345189985","1345190048","1345189954","1345189939","1345190095","1345189914"],"photo_ids_order":["1345189914","1345189939","1345189954","1345189985","1345190048","1345190095"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7b1fd7a53d9991304f418975075a537c.jpg","text":"TemporaryFile(/tmp/multipartBody7960684142095529183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318732361,"filename":"image_18032025_18_17_05_5671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/21186f7d32777519a05e7cf228369547.jpg","text":"TemporaryFile(/tmp/multipartBody3883817603110130887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318732361,"filename":"image_18032025_18_17_00_6614.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9593a7c709e62516adba3d0135d5a2b7.jpg","text":"TemporaryFile(/tmp/multipartBody2902641905987375605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318732361,"filename":"image_18032025_18_17_11_5654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5db3848acfe8e0aebec6b13cd7d30bbd.jpg","text":"TemporaryFile(/tmp/multipartBody2890848624319381031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318732361,"filename":"image_18032025_18_17_18_6678.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e89850e0d987b62638d8edf8c3ec854d.jpg","text":"TemporaryFile(/tmp/multipartBody1761958917737431181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318732361,"filename":"image_18032025_18_16_11_5048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d4434355c6664f12f6bdf364724ac460.jpg","text":"TemporaryFile(/tmp/multipartBody4735810217676531601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318732361,"filename":"image_18032025_18_23_59_6043.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345189954","file1":"1345189939","file0":"1345189914","file4":"1345190048","file5":"1345190095","file3":"1345189985"},"map_files_photo_id_array":[{"photo_id":"1345190095","filename":"file5"},{"photo_id":"1345189954","filename":"file2"},{"photo_id":"1345190048","filename":"file4"},{"photo_id":"1345189939","filename":"file1"},{"photo_id":"1345189914","filename":"file0"},{"photo_id":"1345189985","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345189985":["hashtag1","hashtag2"]},{"1345190048":["hashtag1","hashtag2"]},{"1345189954":["hashtag1","hashtag2"]},{"1345189939":["hashtag1","hashtag2"]},{"1345190095":["hashtag1","hashtag2"]},{"1345189914":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345189985, 1345190048, 1345189954, 1345189939, 1345190095, 1345189914)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.52635669708252 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:25:32.091212
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_06_6752.jpg', 2), ('/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_59_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_11_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_05_5831.jpg', 2), ('/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_59_5927.jpg', 2), ('/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_17_5927.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_06_6752.jpg', '/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_59_5817.jpg', '/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_11_5786.jpg', '/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_05_5831.jpg', '/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_59_5927.jpg', '/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_17_5927.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/16/image_18032025_18_16_06_6752.jpg
/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_59_5817.jpg
/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_11_5786.jpg
/home/nano/Desktop/images/18032025/18/15/image_18032025_18_15_05_5831.jpg
/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_59_5927.jpg
/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_17_5927.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345190535","1345190547","1345190447","1345190501","1345190405","1345190524"],"photo_ids_order":["1345190405","1345190447","1345190501","1345190524","1345190535","1345190547"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/711717ae98989f82636f1dbde4ec7725.jpg","text":"TemporaryFile(/tmp/multipartBody507819943525490640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318792496,"filename":"image_18032025_18_14_59_5927.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/049199c3d3e98017a754b3fff3b9dbce.jpg","text":"TemporaryFile(/tmp/multipartBody3853990125036746125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318792496,"filename":"image_18032025_18_14_17_5927.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e9932f799e36690c7c7f58849aecb719.jpg","text":"TemporaryFile(/tmp/multipartBody507195146411871255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318792496,"filename":"image_18032025_18_15_59_5817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43d8f0bd0ffa0d60969ff4d95507e39a.jpg","text":"TemporaryFile(/tmp/multipartBody8698124375617546021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318792496,"filename":"image_18032025_18_15_11_5786.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a59f4b2979d778dab8fb72c2cb8ffdb.jpg","text":"TemporaryFile(/tmp/multipartBody8939543522189101188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318792496,"filename":"image_18032025_18_16_06_6752.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c0cdaed15d199d3569dd8d70e3599b6.jpg","text":"TemporaryFile(/tmp/multipartBody2750884817579386813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318792496,"filename":"image_18032025_18_15_05_5831.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345190501","file1":"1345190447","file0":"1345190405","file4":"1345190535","file5":"1345190547","file3":"1345190524"},"map_files_photo_id_array":[{"photo_id":"1345190547","filename":"file5"},{"photo_id":"1345190501","filename":"file2"},{"photo_id":"1345190535","filename":"file4"},{"photo_id":"1345190447","filename":"file1"},{"photo_id":"1345190405","filename":"file0"},{"photo_id":"1345190524","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345190535":["hashtag1","hashtag2"]},{"1345190547":["hashtag1","hashtag2"]},{"1345190447":["hashtag1","hashtag2"]},{"1345190501":["hashtag1","hashtag2"]},{"1345190405":["hashtag1","hashtag2"]},{"1345190524":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345190535, 1345190547, 1345190447, 1345190501, 1345190405, 1345190524)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.99668788909912 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:26:32.169198
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/26/image_18032025_18_26_30_6069.jpg', 2), ('/home/nano/Desktop/images/18032025/18/26/image_18032025_18_26_12_6061.jpg', 2), ('/home/nano/Desktop/images/18032025/18/24/image_18032025_18_24_05_6096.jpg', 2), ('/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_11_6133.jpg', 2), ('/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_05_5925.jpg', 2), ('/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_53_5833.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/26/image_18032025_18_26_30_6069.jpg', '/home/nano/Desktop/images/18032025/18/26/image_18032025_18_26_12_6061.jpg', '/home/nano/Desktop/images/18032025/18/24/image_18032025_18_24_05_6096.jpg', '/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_11_6133.jpg', '/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_05_5925.jpg', '/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_53_5833.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/26/image_18032025_18_26_30_6069.jpg
/home/nano/Desktop/images/18032025/18/26/image_18032025_18_26_12_6061.jpg
/home/nano/Desktop/images/18032025/18/24/image_18032025_18_24_05_6096.jpg
/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_11_6133.jpg
/home/nano/Desktop/images/18032025/18/14/image_18032025_18_14_05_5925.jpg
/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_53_5833.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345190874","1345190838","1345190888","1345190786","1345190807","1345190893"],"photo_ids_order":["1345190786","1345190807","1345190838","1345190874","1345190888","1345190893"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d99a21fdc7564b07636d5444ac6b5631.jpg","text":"TemporaryFile(/tmp/multipartBody4479455531630763336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318852647,"filename":"image_18032025_18_14_11_6133.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b737246fa113d80c1e770ee1035867e9.jpg","text":"TemporaryFile(/tmp/multipartBody5792755086742933825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318852647,"filename":"image_18032025_18_24_05_6096.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3d59f5126cf2f75dfff1e76797ea308d.jpg","text":"TemporaryFile(/tmp/multipartBody2660071163559176037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318852647,"filename":"image_18032025_18_14_05_5925.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d55af1b515d9237fb32abf9f779d7cbb.jpg","text":"TemporaryFile(/tmp/multipartBody3033285306325492901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318852647,"filename":"image_18032025_18_26_30_6069.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dc2da9c93dd58b2ebef0a2265a981e23.jpg","text":"TemporaryFile(/tmp/multipartBody1406276631295690726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318852647,"filename":"image_18032025_18_26_12_6061.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/826283ec8849c70ceb2a943bd82f2ebf.jpg","text":"TemporaryFile(/tmp/multipartBody4930669562254626112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318852647,"filename":"image_18032025_18_13_53_5833.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345190838","file1":"1345190807","file0":"1345190786","file4":"1345190888","file5":"1345190893","file3":"1345190874"},"map_files_photo_id_array":[{"photo_id":"1345190893","filename":"file5"},{"photo_id":"1345190838","filename":"file2"},{"photo_id":"1345190888","filename":"file4"},{"photo_id":"1345190807","filename":"file1"},{"photo_id":"1345190786","filename":"file0"},{"photo_id":"1345190874","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345190874":["hashtag1","hashtag2"]},{"1345190838":["hashtag1","hashtag2"]},{"1345190888":["hashtag1","hashtag2"]},{"1345190786":["hashtag1","hashtag2"]},{"1345190807":["hashtag1","hashtag2"]},{"1345190893":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345190874, 1345190838, 1345190888, 1345190786, 1345190807, 1345190893)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.32932925224304 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:27:32.297843
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_47_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_41_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_23_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_11_6063.jpg', 2), ('/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_05_6054.jpg', 2), ('/home/nano/Desktop/images/18032025/18/26/image_18032025_18_26_53_6042.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_47_6045.jpg', '/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_41_6070.jpg', '/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_23_6042.jpg', '/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_11_6063.jpg', '/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_05_6054.jpg', '/home/nano/Desktop/images/18032025/18/26/image_18032025_18_26_53_6042.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_47_6045.jpg
/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_41_6070.jpg
/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_23_6042.jpg
/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_11_6063.jpg
/home/nano/Desktop/images/18032025/18/27/image_18032025_18_27_05_6054.jpg
/home/nano/Desktop/images/18032025/18/26/image_18032025_18_26_53_6042.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345190931","1345190910","1345190960","1345190915","1345190920","1345190905"],"photo_ids_order":["1345190905","1345190910","1345190915","1345190920","1345190931","1345190960"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fc0739187e4e1092215510142865cc63.jpg","text":"TemporaryFile(/tmp/multipartBody450249253616883591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318912991,"filename":"image_18032025_18_27_05_6054.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cab9df874fb549d565bf28640db1a4e6.jpg","text":"TemporaryFile(/tmp/multipartBody3981716259407396457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318912991,"filename":"image_18032025_18_27_41_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ed798b475597012d39bb6ecb7d5c679.jpg","text":"TemporaryFile(/tmp/multipartBody4155177233827447469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318912991,"filename":"image_18032025_18_26_53_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e582f7577e13efa7c215461426970591.jpg","text":"TemporaryFile(/tmp/multipartBody5368207151728858634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318912991,"filename":"image_18032025_18_27_23_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c6bf3f7a16f05e3283cf83466848c0d.jpg","text":"TemporaryFile(/tmp/multipartBody631210181842817222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318912991,"filename":"image_18032025_18_27_11_6063.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1438c4012bde64c0d54527a60a0631a7.jpg","text":"TemporaryFile(/tmp/multipartBody7452959847222138714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318912991,"filename":"image_18032025_18_27_47_6045.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345190915","file1":"1345190910","file0":"1345190905","file4":"1345190931","file5":"1345190960","file3":"1345190920"},"map_files_photo_id_array":[{"photo_id":"1345190960","filename":"file5"},{"photo_id":"1345190915","filename":"file2"},{"photo_id":"1345190931","filename":"file4"},{"photo_id":"1345190910","filename":"file1"},{"photo_id":"1345190905","filename":"file0"},{"photo_id":"1345190920","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345190931":["hashtag1","hashtag2"]},{"1345190910":["hashtag1","hashtag2"]},{"1345190960":["hashtag1","hashtag2"]},{"1345190915":["hashtag1","hashtag2"]},{"1345190920":["hashtag1","hashtag2"]},{"1345190905":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345190931, 1345190910, 1345190960, 1345190915, 1345190920, 1345190905)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.07138013839722 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:28:32.415548
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/28/image_18032025_18_28_53_6042.jpg', 2), ('/home/nano/Desktop/images/18032025/18/27/image_18032025_18_28_00_6086.jpg', 2), ('/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_12_6789.jpg', 2), ('/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_05_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_59_5593.jpg', 2), ('/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_18_6679.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/28/image_18032025_18_28_53_6042.jpg', '/home/nano/Desktop/images/18032025/18/27/image_18032025_18_28_00_6086.jpg', '/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_12_6789.jpg', '/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_05_5638.jpg', '/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_59_5593.jpg', '/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_18_6679.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/28/image_18032025_18_28_53_6042.jpg
/home/nano/Desktop/images/18032025/18/27/image_18032025_18_28_00_6086.jpg
/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_12_6789.jpg
/home/nano/Desktop/images/18032025/18/13/image_18032025_18_13_05_5638.jpg
/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_59_5593.jpg
/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_18_6679.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345191260","1345191323","1345191331","1345191334","1345191328","1345191318"],"photo_ids_order":["1345191260","1345191318","1345191323","1345191328","1345191331","1345191334"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/80bc4a508a783fc73aa6b3e69d3c747c.jpg","text":"TemporaryFile(/tmp/multipartBody1924690031480477462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318972975,"filename":"image_18032025_18_28_53_6042.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10f713bec940229a6dc0e9adf27b23f1.jpg","text":"TemporaryFile(/tmp/multipartBody5129671318289553633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318972975,"filename":"image_18032025_18_13_12_6789.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c133446619ab923fb371444b4f08b6ed.jpg","text":"TemporaryFile(/tmp/multipartBody9110719887044400274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318972975,"filename":"image_18032025_18_12_59_5593.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd7f64038a65c6a08c650811da97cc1a.jpg","text":"TemporaryFile(/tmp/multipartBody358027778634257105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318972975,"filename":"image_18032025_18_12_18_6679.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd35a86df7b90450802361f23e68689a.jpg","text":"TemporaryFile(/tmp/multipartBody7889570174032157588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318972975,"filename":"image_18032025_18_13_05_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7fc272efe61b1c0eadf37bba2c24364d.jpg","text":"TemporaryFile(/tmp/multipartBody9052820907558110117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742318972975,"filename":"image_18032025_18_28_00_6086.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345191323","file1":"1345191318","file0":"1345191260","file4":"1345191331","file5":"1345191334","file3":"1345191328"},"map_files_photo_id_array":[{"photo_id":"1345191334","filename":"file5"},{"photo_id":"1345191323","filename":"file2"},{"photo_id":"1345191331","filename":"file4"},{"photo_id":"1345191318","filename":"file1"},{"photo_id":"1345191260","filename":"file0"},{"photo_id":"1345191328","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345191260":["hashtag1","hashtag2"]},{"1345191323":["hashtag1","hashtag2"]},{"1345191331":["hashtag1","hashtag2"]},{"1345191334":["hashtag1","hashtag2"]},{"1345191328":["hashtag1","hashtag2"]},{"1345191318":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345191260, 1345191323, 1345191331, 1345191334, 1345191328, 1345191318)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.66419053077698 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:29:32.530819
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/29/image_18032025_18_29_30_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/18/29/image_18032025_18_29_18_6066.jpg', 2), ('/home/nano/Desktop/images/18032025/18/29/image_18032025_18_29_12_6103.jpg', 2), ('/home/nano/Desktop/images/18032025/18/28/image_18032025_18_28_59_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_11_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_05_5655.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/29/image_18032025_18_29_30_6058.jpg', '/home/nano/Desktop/images/18032025/18/29/image_18032025_18_29_18_6066.jpg', '/home/nano/Desktop/images/18032025/18/29/image_18032025_18_29_12_6103.jpg', '/home/nano/Desktop/images/18032025/18/28/image_18032025_18_28_59_6058.jpg', '/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_11_5641.jpg', '/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_05_5655.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/29/image_18032025_18_29_30_6058.jpg
/home/nano/Desktop/images/18032025/18/29/image_18032025_18_29_18_6066.jpg
/home/nano/Desktop/images/18032025/18/29/image_18032025_18_29_12_6103.jpg
/home/nano/Desktop/images/18032025/18/28/image_18032025_18_28_59_6058.jpg
/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_11_5641.jpg
/home/nano/Desktop/images/18032025/18/12/image_18032025_18_12_05_5655.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345191350","1345191362","1345191401","1345191376","1345191370","1345191390"],"photo_ids_order":["1345191350","1345191362","1345191370","1345191376","1345191390","1345191401"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/111637ba6979a77c0deaba6ed09726bf.jpg","text":"TemporaryFile(/tmp/multipartBody335122005543751787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319033062,"filename":"image_18032025_18_29_30_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e04c8e75c0915581c362927b06b5c9fa.jpg","text":"TemporaryFile(/tmp/multipartBody8715927807859860960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319033062,"filename":"image_18032025_18_29_18_6066.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a64ffc671b0089eb23681bd76e767f79.jpg","text":"TemporaryFile(/tmp/multipartBody5215502515008560037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319033062,"filename":"image_18032025_18_12_05_5655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49749d27e425be9ef97d8b108c38af44.jpg","text":"TemporaryFile(/tmp/multipartBody6280457388342645535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319033062,"filename":"image_18032025_18_28_59_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9e83fde059374579eb9ab64f3245db8d.jpg","text":"TemporaryFile(/tmp/multipartBody4011713326377291984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319033062,"filename":"image_18032025_18_29_12_6103.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/304e45c7360b12ba786a757d93caceb1.jpg","text":"TemporaryFile(/tmp/multipartBody6045075195719569694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319033062,"filename":"image_18032025_18_12_11_5641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345191370","file1":"1345191362","file0":"1345191350","file4":"1345191390","file5":"1345191401","file3":"1345191376"},"map_files_photo_id_array":[{"photo_id":"1345191401","filename":"file5"},{"photo_id":"1345191370","filename":"file2"},{"photo_id":"1345191390","filename":"file4"},{"photo_id":"1345191362","filename":"file1"},{"photo_id":"1345191350","filename":"file0"},{"photo_id":"1345191376","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345191350":["hashtag1","hashtag2"]},{"1345191362":["hashtag1","hashtag2"]},{"1345191401":["hashtag1","hashtag2"]},{"1345191376":["hashtag1","hashtag2"]},{"1345191370":["hashtag1","hashtag2"]},{"1345191390":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345191350, 1345191362, 1345191401, 1345191376, 1345191370, 1345191390)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.99383902549744 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:30:32.675731
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_47_6047.jpg', 2), ('/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_41_6060.jpg', 2), ('/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_35_6059.jpg', 2), ('/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_29_6038.jpg', 2), ('/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_23_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_17_6055.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_47_6047.jpg', '/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_41_6060.jpg', '/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_35_6059.jpg', '/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_29_6038.jpg', '/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_23_6046.jpg', '/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_17_6055.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_47_6047.jpg
/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_41_6060.jpg
/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_35_6059.jpg
/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_29_6038.jpg
/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_23_6046.jpg
/home/nano/Desktop/images/18032025/18/30/image_18032025_18_30_17_6055.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345191680","1345191962","1345191824","1345191908","1345191631","1345191744"],"photo_ids_order":["1345191631","1345191680","1345191744","1345191824","1345191908","1345191962"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b41fccff55fcb808e2ecabdcf662d538.jpg","text":"TemporaryFile(/tmp/multipartBody3063274626356924302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319093335,"filename":"image_18032025_18_30_41_6060.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f17dc1af8549cb9561a9c5c394726e8b.jpg","text":"TemporaryFile(/tmp/multipartBody160459568927693032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319093335,"filename":"image_18032025_18_30_17_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c439272824cbd9ea1f91e54e2071560f.jpg","text":"TemporaryFile(/tmp/multipartBody5198018863718652881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319093335,"filename":"image_18032025_18_30_29_6038.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd7ac6014f115fc4abaf30ccc14c0d49.jpg","text":"TemporaryFile(/tmp/multipartBody73301737112095680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319093335,"filename":"image_18032025_18_30_23_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/471f6f4fbba00ce6148c607b43569675.jpg","text":"TemporaryFile(/tmp/multipartBody4252554674075683996asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319093335,"filename":"image_18032025_18_30_47_6047.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ae0c4b1fd1436209e7f94cc48c36da85.jpg","text":"TemporaryFile(/tmp/multipartBody7716097746524055700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319093335,"filename":"image_18032025_18_30_35_6059.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345191744","file1":"1345191680","file0":"1345191631","file4":"1345191908","file5":"1345191962","file3":"1345191824"},"map_files_photo_id_array":[{"photo_id":"1345191962","filename":"file5"},{"photo_id":"1345191744","filename":"file2"},{"photo_id":"1345191908","filename":"file4"},{"photo_id":"1345191680","filename":"file1"},{"photo_id":"1345191631","filename":"file0"},{"photo_id":"1345191824","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345191680":["hashtag1","hashtag2"]},{"1345191962":["hashtag1","hashtag2"]},{"1345191824":["hashtag1","hashtag2"]},{"1345191908":["hashtag1","hashtag2"]},{"1345191631":["hashtag1","hashtag2"]},{"1345191744":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345191680, 1345191962, 1345191824, 1345191908, 1345191631, 1345191744)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.06446146965027 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:31:31.814499
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_53_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_29_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_23_5063.jpg', 2), ('/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_18_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_12_6070.jpg', 2), ('/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_06_6053.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_53_6046.jpg', '/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_29_6067.jpg', '/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_23_5063.jpg', '/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_18_6041.jpg', '/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_12_6070.jpg', '/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_06_6053.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_53_6046.jpg
/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_29_6067.jpg
/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_23_5063.jpg
/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_18_6041.jpg
/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_12_6070.jpg
/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_06_6053.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345192544","1345192569","1345192647","1345192515","1345192602","1345192469"],"photo_ids_order":["1345192469","1345192515","1345192544","1345192569","1345192602","1345192647"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9aedcc51b18aa77f7ea63b4e2f9bb542.jpg","text":"TemporaryFile(/tmp/multipartBody968423051502673730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319152300,"filename":"image_18032025_18_31_23_5063.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b593b063dfd609c693b6911c563e99df.jpg","text":"TemporaryFile(/tmp/multipartBody1186594812001459232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319152300,"filename":"image_18032025_18_31_18_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/087df0dcc4a501689458606fb45d42ff.jpg","text":"TemporaryFile(/tmp/multipartBody5772793244944046749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319152300,"filename":"image_18032025_18_31_06_6053.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/664c71a005883b03e886a02f5fe527f3.jpg","text":"TemporaryFile(/tmp/multipartBody1959218115327518788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319152300,"filename":"image_18032025_18_31_29_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac9bbaf3e0876e8250c8ea8aec5716a9.jpg","text":"TemporaryFile(/tmp/multipartBody2893298528734834278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319152300,"filename":"image_18032025_18_31_12_6070.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7863ef8a5d0e9049c60d9de966ffdb29.jpg","text":"TemporaryFile(/tmp/multipartBody217565060646298898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319152300,"filename":"image_18032025_18_31_53_6046.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345192544","file1":"1345192515","file0":"1345192469","file4":"1345192602","file5":"1345192647","file3":"1345192569"},"map_files_photo_id_array":[{"photo_id":"1345192647","filename":"file5"},{"photo_id":"1345192544","filename":"file2"},{"photo_id":"1345192602","filename":"file4"},{"photo_id":"1345192515","filename":"file1"},{"photo_id":"1345192469","filename":"file0"},{"photo_id":"1345192569","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345192544":["hashtag1","hashtag2"]},{"1345192569":["hashtag1","hashtag2"]},{"1345192647":["hashtag1","hashtag2"]},{"1345192515":["hashtag1","hashtag2"]},{"1345192602":["hashtag1","hashtag2"]},{"1345192469":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345192544, 1345192569, 1345192647, 1345192515, 1345192602, 1345192469)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.912920475006104 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:32:31.939688
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_54_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_48_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_30_6045.jpg', 2), ('/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_17_6046.jpg', 2), ('/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_05_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_59_6058.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_54_6044.jpg', '/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_48_6048.jpg', '/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_30_6045.jpg', '/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_17_6046.jpg', '/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_05_6123.jpg', '/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_59_6058.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_54_6044.jpg
/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_48_6048.jpg
/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_30_6045.jpg
/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_17_6046.jpg
/home/nano/Desktop/images/18032025/18/32/image_18032025_18_32_05_6123.jpg
/home/nano/Desktop/images/18032025/18/31/image_18032025_18_31_59_6058.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345192940","1345192987","1345193209","1345193157","1345193291","1345193103"],"photo_ids_order":["1345192940","1345192987","1345193103","1345193157","1345193209","1345193291"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fcfe76ccdebc279c37d47be595c6f6c6.jpg","text":"TemporaryFile(/tmp/multipartBody5114280020472346299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319212523,"filename":"image_18032025_18_32_54_6044.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d7147b0ac26b10ff758dc903e90de39.jpg","text":"TemporaryFile(/tmp/multipartBody5274170060048833165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319212523,"filename":"image_18032025_18_32_48_6048.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/552587f762596e861aced5292a85a70a.jpg","text":"TemporaryFile(/tmp/multipartBody5920382801480223596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319212523,"filename":"image_18032025_18_32_05_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f97a73552d2f1e4d7cc58106d2a45a22.jpg","text":"TemporaryFile(/tmp/multipartBody6749140355523919877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319212523,"filename":"image_18032025_18_32_17_6046.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/451e24b68ac3b4053e10cac3a25dd214.jpg","text":"TemporaryFile(/tmp/multipartBody8526272844082713206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319212523,"filename":"image_18032025_18_31_59_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bf794c4c657df4aa4bf7475d03a40730.jpg","text":"TemporaryFile(/tmp/multipartBody8510780445530202905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319212523,"filename":"image_18032025_18_32_30_6045.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345193103","file1":"1345192987","file0":"1345192940","file4":"1345193209","file5":"1345193291","file3":"1345193157"},"map_files_photo_id_array":[{"photo_id":"1345193291","filename":"file5"},{"photo_id":"1345193103","filename":"file2"},{"photo_id":"1345193209","filename":"file4"},{"photo_id":"1345192987","filename":"file1"},{"photo_id":"1345192940","filename":"file0"},{"photo_id":"1345193157","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345192940":["hashtag1","hashtag2"]},{"1345192987":["hashtag1","hashtag2"]},{"1345193209":["hashtag1","hashtag2"]},{"1345193157":["hashtag1","hashtag2"]},{"1345193291":["hashtag1","hashtag2"]},{"1345193103":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345192940, 1345192987, 1345193209, 1345193157, 1345193291, 1345193103)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.087949991226196 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:33:32.030735
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_30_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_24_6006.jpg', 2), ('/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_18_5891.jpg', 2), ('/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_12_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_06_6022.jpg', 2), ('/home/nano/Desktop/images/18032025/18/32/image_18032025_18_33_00_5944.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_30_6029.jpg', '/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_24_6006.jpg', '/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_18_5891.jpg', '/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_12_5890.jpg', '/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_06_6022.jpg', '/home/nano/Desktop/images/18032025/18/32/image_18032025_18_33_00_5944.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_30_6029.jpg
/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_24_6006.jpg
/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_18_5891.jpg
/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_12_5890.jpg
/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_06_6022.jpg
/home/nano/Desktop/images/18032025/18/32/image_18032025_18_33_00_5944.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3866097927093506 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:34:02.781413
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_30_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_24_6006.jpg', 2), ('/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_18_5891.jpg', 2), ('/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_12_5890.jpg', 2), ('/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_06_6022.jpg', 2), ('/home/nano/Desktop/images/18032025/18/32/image_18032025_18_33_00_5944.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_30_6029.jpg', '/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_24_6006.jpg', '/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_18_5891.jpg', '/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_12_5890.jpg', '/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_06_6022.jpg', '/home/nano/Desktop/images/18032025/18/32/image_18032025_18_33_00_5944.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_30_6029.jpg
/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_24_6006.jpg
/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_18_5891.jpg
/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_12_5890.jpg
/home/nano/Desktop/images/18032025/18/33/image_18032025_18_33_06_6022.jpg
/home/nano/Desktop/images/18032025/18/32/image_18032025_18_33_00_5944.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345194597","1345194288","1345194123","1345194501","1345194638","1345194568"],"photo_ids_order":["1345194123","1345194288","1345194501","1345194568","1345194597","1345194638"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a3f5b505b050114421a0391f19bbabc3.jpg","text":"TemporaryFile(/tmp/multipartBody2867162994971749161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319303254,"filename":"image_18032025_18_33_06_6022.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3fd00e84db7e6786eb3bb1c21786af93.jpg","text":"TemporaryFile(/tmp/multipartBody9164483649383793169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319303254,"filename":"image_18032025_18_33_24_6006.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ed404e9eae90052f9145e39b72c63fad.jpg","text":"TemporaryFile(/tmp/multipartBody5387430066539584461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319303254,"filename":"image_18032025_18_33_30_6029.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01dcb222271b5a368dfe8a44a4135e48.jpg","text":"TemporaryFile(/tmp/multipartBody2512388696150042985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319303254,"filename":"image_18032025_18_33_18_5891.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd7f3018bef8a8dc33fdc5fa434ad54c.jpg","text":"TemporaryFile(/tmp/multipartBody5328715921834297489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319303254,"filename":"image_18032025_18_33_00_5944.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9f09db7875828e0cd746ca11694b725e.jpg","text":"TemporaryFile(/tmp/multipartBody1038726940620807186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319303254,"filename":"image_18032025_18_33_12_5890.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345194501","file1":"1345194288","file0":"1345194123","file4":"1345194597","file5":"1345194638","file3":"1345194568"},"map_files_photo_id_array":[{"photo_id":"1345194638","filename":"file5"},{"photo_id":"1345194501","filename":"file2"},{"photo_id":"1345194597","filename":"file4"},{"photo_id":"1345194288","filename":"file1"},{"photo_id":"1345194123","filename":"file0"},{"photo_id":"1345194568","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345194597":["hashtag1","hashtag2"]},{"1345194288":["hashtag1","hashtag2"]},{"1345194123":["hashtag1","hashtag2"]},{"1345194501":["hashtag1","hashtag2"]},{"1345194638":["hashtag1","hashtag2"]},{"1345194568":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345194597, 1345194288, 1345194123, 1345194501, 1345194638, 1345194568)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.27512001991272 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:35:02.642944
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_53_5977.jpg', 2), ('/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_47_5990.jpg', 2), ('/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_41_5875.jpg', 2), ('/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_35_5978.jpg', 2), ('/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_23_5969.jpg', 2), ('/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_17_6016.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_53_5977.jpg', '/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_47_5990.jpg', '/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_41_5875.jpg', '/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_35_5978.jpg', '/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_23_5969.jpg', '/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_17_6016.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_53_5977.jpg
/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_47_5990.jpg
/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_41_5875.jpg
/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_35_5978.jpg
/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_23_5969.jpg
/home/nano/Desktop/images/18032025/18/34/image_18032025_18_34_17_6016.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345194838","1345194795","1345195257","1345195232","1345195205","1345194985"],"photo_ids_order":["1345194795","1345194838","1345194985","1345195205","1345195232","1345195257"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dfd2dc6a8801e098bf8f717aeea3a4fc.jpg","text":"TemporaryFile(/tmp/multipartBody27787534915238460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319363108,"filename":"image_18032025_18_34_47_5990.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9060a4474be7bfce0d19ccc28a7871ef.jpg","text":"TemporaryFile(/tmp/multipartBody8515751154863198178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319363108,"filename":"image_18032025_18_34_53_5977.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/04d8c4f29a537a17840f3a0bc3d25619.jpg","text":"TemporaryFile(/tmp/multipartBody3403963321113890650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319363108,"filename":"image_18032025_18_34_17_6016.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a028763f83436c39e90cba4f05e1088a.jpg","text":"TemporaryFile(/tmp/multipartBody4625311584138982051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319363108,"filename":"image_18032025_18_34_23_5969.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/676975f40828baaf63db810359c00d4c.jpg","text":"TemporaryFile(/tmp/multipartBody4497872590206378216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319363108,"filename":"image_18032025_18_34_35_5978.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/547547202e31476293690df210f5e840.jpg","text":"TemporaryFile(/tmp/multipartBody3281543847192925288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319363108,"filename":"image_18032025_18_34_41_5875.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345194985","file1":"1345194838","file0":"1345194795","file4":"1345195232","file5":"1345195257","file3":"1345195205"},"map_files_photo_id_array":[{"photo_id":"1345195257","filename":"file5"},{"photo_id":"1345194985","filename":"file2"},{"photo_id":"1345195232","filename":"file4"},{"photo_id":"1345194838","filename":"file1"},{"photo_id":"1345194795","filename":"file0"},{"photo_id":"1345195205","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345194838":["hashtag1","hashtag2"]},{"1345194795":["hashtag1","hashtag2"]},{"1345195257":["hashtag1","hashtag2"]},{"1345195232":["hashtag1","hashtag2"]},{"1345195205":["hashtag1","hashtag2"]},{"1345194985":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345194838, 1345194795, 1345195257, 1345195232, 1345195205, 1345194985)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.220306634902954 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:36:02.822324
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_42_6034.jpg', 2), ('/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_36_5959.jpg', 2), ('/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_30_6017.jpg', 2), ('/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_24_5979.jpg', 2), ('/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_18_6864.jpg', 2), ('/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_05_6026.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_42_6034.jpg', '/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_36_5959.jpg', '/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_30_6017.jpg', '/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_24_5979.jpg', '/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_18_6864.jpg', '/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_05_6026.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_42_6034.jpg
/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_36_5959.jpg
/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_30_6017.jpg
/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_24_5979.jpg
/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_18_6864.jpg
/home/nano/Desktop/images/18032025/18/35/image_18032025_18_35_05_6026.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345196166","1345196067","1345196037","1345196124","1345196209","1345195995"],"photo_ids_order":["1345195995","1345196037","1345196067","1345196124","1345196166","1345196209"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8fdf2263cfd826c9b9fe89962cdfad21.jpg","text":"TemporaryFile(/tmp/multipartBody8281007085994758703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319423297,"filename":"image_18032025_18_35_18_6864.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3eaa16ec6cb3384187ca45c0f80cc3f2.jpg","text":"TemporaryFile(/tmp/multipartBody134871024039289755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319423297,"filename":"image_18032025_18_35_30_6017.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ed8008f2cee4dbfe4ac4413cbdc9f54f.jpg","text":"TemporaryFile(/tmp/multipartBody5966896382098520907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319423297,"filename":"image_18032025_18_35_36_5959.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/788260ac55b6a8fd19e1ee1a0dbc8765.jpg","text":"TemporaryFile(/tmp/multipartBody8442744118559890142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319423297,"filename":"image_18032025_18_35_24_5979.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/804473c5e1abafe5d692161f3d86c1bc.jpg","text":"TemporaryFile(/tmp/multipartBody5812842856229517138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319423297,"filename":"image_18032025_18_35_05_6026.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/42c658b76264c66065e9a332b8cc7803.jpg","text":"TemporaryFile(/tmp/multipartBody7902655137852552312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319423297,"filename":"image_18032025_18_35_42_6034.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345196067","file1":"1345196037","file0":"1345195995","file4":"1345196166","file5":"1345196209","file3":"1345196124"},"map_files_photo_id_array":[{"photo_id":"1345196209","filename":"file5"},{"photo_id":"1345196067","filename":"file2"},{"photo_id":"1345196166","filename":"file4"},{"photo_id":"1345196037","filename":"file1"},{"photo_id":"1345195995","filename":"file0"},{"photo_id":"1345196124","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345196166":["hashtag1","hashtag2"]},{"1345196067":["hashtag1","hashtag2"]},{"1345196037":["hashtag1","hashtag2"]},{"1345196124":["hashtag1","hashtag2"]},{"1345196209":["hashtag1","hashtag2"]},{"1345195995":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345196166, 1345196067, 1345196037, 1345196124, 1345196209, 1345195995)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.91908860206604 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:37:02.852547
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_53_5924.jpg', 2), ('/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_48_5993.jpg', 2), ('/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_42_5942.jpg', 2), ('/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_36_5995.jpg', 2), ('/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_30_6032.jpg', 2), ('/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_24_5874.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_53_5924.jpg', '/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_48_5993.jpg', '/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_42_5942.jpg', '/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_36_5995.jpg', '/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_30_6032.jpg', '/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_24_5874.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_53_5924.jpg
/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_48_5993.jpg
/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_42_5942.jpg
/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_36_5995.jpg
/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_30_6032.jpg
/home/nano/Desktop/images/18032025/18/36/image_18032025_18_36_24_5874.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345196949","1345196922","1345196980","1345196828","1345196900","1345196865"],"photo_ids_order":["1345196828","1345196865","1345196900","1345196922","1345196949","1345196980"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/34993c2fa6720ad8a8de66cc8c556699.jpg","text":"TemporaryFile(/tmp/multipartBody9162080346173467675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319483313,"filename":"image_18032025_18_36_30_6032.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1bae7a264d3ba6190b1a5c5c8ebecf5f.jpg","text":"TemporaryFile(/tmp/multipartBody3704722053756390028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319483313,"filename":"image_18032025_18_36_36_5995.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/50f3dbc07ef2480221362d35cd501b93.jpg","text":"TemporaryFile(/tmp/multipartBody6090509236454755435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319483313,"filename":"image_18032025_18_36_24_5874.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a8c98b14fcffbdbd888c4a815a9232a7.jpg","text":"TemporaryFile(/tmp/multipartBody6496166026344710007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319483313,"filename":"image_18032025_18_36_53_5924.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e87274d9c16434cca2e955d068e3f2d2.jpg","text":"TemporaryFile(/tmp/multipartBody5715576717670354720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319483313,"filename":"image_18032025_18_36_42_5942.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c5e97c1cdb09fe14713f9f726b296777.jpg","text":"TemporaryFile(/tmp/multipartBody6769112680328000966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319483313,"filename":"image_18032025_18_36_48_5993.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345196900","file1":"1345196865","file0":"1345196828","file4":"1345196949","file5":"1345196980","file3":"1345196922"},"map_files_photo_id_array":[{"photo_id":"1345196980","filename":"file5"},{"photo_id":"1345196900","filename":"file2"},{"photo_id":"1345196949","filename":"file4"},{"photo_id":"1345196865","filename":"file1"},{"photo_id":"1345196828","filename":"file0"},{"photo_id":"1345196922","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345196949":["hashtag1","hashtag2"]},{"1345196922":["hashtag1","hashtag2"]},{"1345196980":["hashtag1","hashtag2"]},{"1345196828":["hashtag1","hashtag2"]},{"1345196900":["hashtag1","hashtag2"]},{"1345196865":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345196949, 1345196922, 1345196980, 1345196828, 1345196900, 1345196865)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.908642292022705 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:38:02.972001
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_53_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_47_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_35_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_29_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_23_6029.jpg', 2), ('/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_17_5871.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_53_5750.jpg', '/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_47_5908.jpg', '/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_35_5865.jpg', '/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_29_6013.jpg', '/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_23_6029.jpg', '/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_17_5871.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_53_5750.jpg
/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_47_5908.jpg
/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_35_5865.jpg
/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_29_6013.jpg
/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_23_6029.jpg
/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_17_5871.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345197347","1345197236","1345197292","1345197319","1345197208","1345197303"],"photo_ids_order":["1345197208","1345197236","1345197292","1345197303","1345197319","1345197347"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/22b35c2023a900d57e8281b55db0ce92.jpg","text":"TemporaryFile(/tmp/multipartBody1669254467543547093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319543415,"filename":"image_18032025_18_37_17_5871.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3ddcb7984cafd800a823f34e1c09380f.jpg","text":"TemporaryFile(/tmp/multipartBody5540987500678194122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319543415,"filename":"image_18032025_18_37_47_5908.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c964d7819a1329d1c8b5db7113bf9eb.jpg","text":"TemporaryFile(/tmp/multipartBody884460323660522250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319543415,"filename":"image_18032025_18_37_35_5865.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/743149ab163980c3a91d19633a14a864.jpg","text":"TemporaryFile(/tmp/multipartBody573224863156443213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319543415,"filename":"image_18032025_18_37_23_6029.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0a9e09ffb6cf0ff298654f40821b2282.jpg","text":"TemporaryFile(/tmp/multipartBody2782171754876003957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319543415,"filename":"image_18032025_18_37_53_5750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/76582b55bab15da6db2f12df72e8cdcd.jpg","text":"TemporaryFile(/tmp/multipartBody3705371455438161722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319543415,"filename":"image_18032025_18_37_29_6013.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345197292","file1":"1345197236","file0":"1345197208","file4":"1345197319","file5":"1345197347","file3":"1345197303"},"map_files_photo_id_array":[{"photo_id":"1345197347","filename":"file5"},{"photo_id":"1345197292","filename":"file2"},{"photo_id":"1345197319","filename":"file4"},{"photo_id":"1345197236","filename":"file1"},{"photo_id":"1345197208","filename":"file0"},{"photo_id":"1345197303","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345197347":["hashtag1","hashtag2"]},{"1345197236":["hashtag1","hashtag2"]},{"1345197292":["hashtag1","hashtag2"]},{"1345197319":["hashtag1","hashtag2"]},{"1345197208":["hashtag1","hashtag2"]},{"1345197303":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345197347, 1345197236, 1345197292, 1345197319, 1345197208, 1345197303)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.35839080810547 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:39:03.363415
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_54_6843.jpg', 2), ('/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_47_5735.jpg', 2), ('/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_41_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_35_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_30_6809.jpg', 2), ('/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_23_5755.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_54_6843.jpg', '/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_47_5735.jpg', '/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_41_5749.jpg', '/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_35_5729.jpg', '/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_30_6809.jpg', '/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_23_5755.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_54_6843.jpg
/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_47_5735.jpg
/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_41_5749.jpg
/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_35_5729.jpg
/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_30_6809.jpg
/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_23_5755.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345197887","1345197683","1345197850","1345197928","1345197783","1345197729"],"photo_ids_order":["1345197683","1345197729","1345197783","1345197850","1345197887","1345197928"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f61a1f145dffdbb02aee8de8cde30513.jpg","text":"TemporaryFile(/tmp/multipartBody6083985322444600064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319603768,"filename":"image_18032025_18_38_30_6809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e5436c1838caa8b53c5a67ac311a8c0.jpg","text":"TemporaryFile(/tmp/multipartBody5435658109999999728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319603768,"filename":"image_18032025_18_38_54_6843.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fac183e46dc7f04a424d025aa91ca859.jpg","text":"TemporaryFile(/tmp/multipartBody3092029572147956232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319603768,"filename":"image_18032025_18_38_35_5729.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d5cc24aa5ad449dca39f1d536530f1f.jpg","text":"TemporaryFile(/tmp/multipartBody5211631449184648215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319603768,"filename":"image_18032025_18_38_23_5755.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14395be87e4227f515f62b0ca9d559fc.jpg","text":"TemporaryFile(/tmp/multipartBody8931758899690536110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319603768,"filename":"image_18032025_18_38_41_5749.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/706b9d6328d27ff27d1b11d41ddd7529.jpg","text":"TemporaryFile(/tmp/multipartBody8778298239081263535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319603768,"filename":"image_18032025_18_38_47_5735.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345197783","file1":"1345197729","file0":"1345197683","file4":"1345197887","file5":"1345197928","file3":"1345197850"},"map_files_photo_id_array":[{"photo_id":"1345197928","filename":"file5"},{"photo_id":"1345197783","filename":"file2"},{"photo_id":"1345197887","filename":"file4"},{"photo_id":"1345197729","filename":"file1"},{"photo_id":"1345197683","filename":"file0"},{"photo_id":"1345197850","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345197887":["hashtag1","hashtag2"]},{"1345197683":["hashtag1","hashtag2"]},{"1345197850":["hashtag1","hashtag2"]},{"1345197928":["hashtag1","hashtag2"]},{"1345197783":["hashtag1","hashtag2"]},{"1345197729":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345197887, 1345197683, 1345197850, 1345197928, 1345197783, 1345197729)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.179741382598877 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:40:02.165254
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_53_5607.jpg', 2), ('/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_47_5609.jpg', 2), ('/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_42_6618.jpg', 2), ('/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_35_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_24_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_17_5730.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_53_5607.jpg', '/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_47_5609.jpg', '/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_42_6618.jpg', '/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_35_5618.jpg', '/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_24_6651.jpg', '/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_17_5730.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_53_5607.jpg
/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_47_5609.jpg
/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_42_6618.jpg
/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_35_5618.jpg
/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_24_6651.jpg
/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_17_5730.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345198754","1345198418","1345198593","1345198510","1345198644","1345198694"],"photo_ids_order":["1345198418","1345198510","1345198593","1345198644","1345198694","1345198754"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5c99853bdacc833faf94c205f21dbccc.jpg","text":"TemporaryFile(/tmp/multipartBody3695125634762880053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319662482,"filename":"image_18032025_18_39_17_5730.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0f53fb9da39ff48e4a2079b08b4fdc72.jpg","text":"TemporaryFile(/tmp/multipartBody5091046399323956775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319662482,"filename":"image_18032025_18_39_53_5607.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85056b75c6e5e0a3cbf39d1491e963a0.jpg","text":"TemporaryFile(/tmp/multipartBody6332303173619429779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319662482,"filename":"image_18032025_18_39_42_6618.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1bff60b7a1b278b5557828f43ccae034.jpg","text":"TemporaryFile(/tmp/multipartBody2060097505130303399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319662482,"filename":"image_18032025_18_39_47_5609.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6086059448fcdcc9542889b2a475e388.jpg","text":"TemporaryFile(/tmp/multipartBody4611506800166672444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319662482,"filename":"image_18032025_18_39_35_5618.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/77c4fc5141a3cff0db36fd445f519c35.jpg","text":"TemporaryFile(/tmp/multipartBody3735616973865382939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319662482,"filename":"image_18032025_18_39_24_6651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345198593","file1":"1345198510","file0":"1345198418","file4":"1345198694","file5":"1345198754","file3":"1345198644"},"map_files_photo_id_array":[{"photo_id":"1345198754","filename":"file5"},{"photo_id":"1345198593","filename":"file2"},{"photo_id":"1345198694","filename":"file4"},{"photo_id":"1345198510","filename":"file1"},{"photo_id":"1345198418","filename":"file0"},{"photo_id":"1345198644","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345198754":["hashtag1","hashtag2"]},{"1345198418":["hashtag1","hashtag2"]},{"1345198593":["hashtag1","hashtag2"]},{"1345198510":["hashtag1","hashtag2"]},{"1345198644":["hashtag1","hashtag2"]},{"1345198694":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345198754, 1345198418, 1345198593, 1345198510, 1345198644, 1345198694)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.411700010299683 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:41:02.289697
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_53_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_47_6622.jpg', 2), ('/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_41_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_35_5587.jpg', 2), ('/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_30_6622.jpg', 2), ('/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_23_5634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_53_5654.jpg', '/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_47_6622.jpg', '/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_41_5632.jpg', '/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_35_5587.jpg', '/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_30_6622.jpg', '/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_23_5634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_53_5654.jpg
/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_47_6622.jpg
/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_41_5632.jpg
/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_35_5587.jpg
/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_30_6622.jpg
/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_23_5634.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345199362","1345199242","1345199277","1345199304","1345199399","1345199390"],"photo_ids_order":["1345199242","1345199277","1345199304","1345199362","1345199390","1345199399"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f256092062f3826f7e5278886062b898.jpg","text":"TemporaryFile(/tmp/multipartBody7967921068247722091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319722621,"filename":"image_18032025_18_40_35_5587.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/03ecd211326b5b08429209f0c2c686c5.jpg","text":"TemporaryFile(/tmp/multipartBody3560987759200351259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319722621,"filename":"image_18032025_18_40_53_5654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10e44d86de5a3521357a452f8ca07b37.jpg","text":"TemporaryFile(/tmp/multipartBody4839256087788195616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319722621,"filename":"image_18032025_18_40_47_6622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a06f01e53eeb455eee7b1f11d29539f5.jpg","text":"TemporaryFile(/tmp/multipartBody131873579980517234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319722621,"filename":"image_18032025_18_40_41_5632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/032e0b465a8660dc9bcda9fd54acbe43.jpg","text":"TemporaryFile(/tmp/multipartBody7376810793596360588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319722621,"filename":"image_18032025_18_40_23_5634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a4843842188a72cc6cd7ff18421beffc.jpg","text":"TemporaryFile(/tmp/multipartBody835552575264106553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319722621,"filename":"image_18032025_18_40_30_6622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345199304","file1":"1345199277","file0":"1345199242","file4":"1345199390","file5":"1345199399","file3":"1345199362"},"map_files_photo_id_array":[{"photo_id":"1345199399","filename":"file5"},{"photo_id":"1345199304","filename":"file2"},{"photo_id":"1345199390","filename":"file4"},{"photo_id":"1345199277","filename":"file1"},{"photo_id":"1345199242","filename":"file0"},{"photo_id":"1345199362","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345199362":["hashtag1","hashtag2"]},{"1345199242":["hashtag1","hashtag2"]},{"1345199277":["hashtag1","hashtag2"]},{"1345199304":["hashtag1","hashtag2"]},{"1345199399":["hashtag1","hashtag2"]},{"1345199390":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345199362, 1345199242, 1345199277, 1345199304, 1345199399, 1345199390)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.74204969406128 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:42:02.326435
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_54_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_47_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_41_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_36_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_29_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_23_5598.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_54_6648.jpg', '/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_47_5654.jpg', '/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_41_5630.jpg', '/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_36_6629.jpg', '/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_29_5632.jpg', '/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_23_5598.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_54_6648.jpg
/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_47_5654.jpg
/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_41_5630.jpg
/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_36_6629.jpg
/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_29_5632.jpg
/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_23_5598.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345199572","1345199566","1345199557","1345199568","1345199532","1345199570"],"photo_ids_order":["1345199532","1345199557","1345199566","1345199568","1345199570","1345199572"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c434e1be023a8521475a7ccd3e65d026.jpg","text":"TemporaryFile(/tmp/multipartBody9044138603018117910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319782663,"filename":"image_18032025_18_41_23_5598.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad975d65ef8a08eec78a8e79842cb5f9.jpg","text":"TemporaryFile(/tmp/multipartBody5062959582421542093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319782663,"filename":"image_18032025_18_41_41_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a6a235991be7ad75ffd6dee5ffb17fb6.jpg","text":"TemporaryFile(/tmp/multipartBody4060049342799122079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319782663,"filename":"image_18032025_18_41_47_5654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e4d272c506889cb6beda14745343b75.jpg","text":"TemporaryFile(/tmp/multipartBody5161244813943713227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319782663,"filename":"image_18032025_18_41_36_6629.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c43bd4ba20c90ec604d93c72991aa6f.jpg","text":"TemporaryFile(/tmp/multipartBody7057748651318124255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319782663,"filename":"image_18032025_18_41_54_6648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/575520584e611c1f5bd9aeab36b0fbf8.jpg","text":"TemporaryFile(/tmp/multipartBody1615744464669319453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319782663,"filename":"image_18032025_18_41_29_5632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345199566","file1":"1345199557","file0":"1345199532","file4":"1345199570","file5":"1345199572","file3":"1345199568"},"map_files_photo_id_array":[{"photo_id":"1345199572","filename":"file5"},{"photo_id":"1345199566","filename":"file2"},{"photo_id":"1345199570","filename":"file4"},{"photo_id":"1345199557","filename":"file1"},{"photo_id":"1345199532","filename":"file0"},{"photo_id":"1345199568","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345199572":["hashtag1","hashtag2"]},{"1345199566":["hashtag1","hashtag2"]},{"1345199557":["hashtag1","hashtag2"]},{"1345199568":["hashtag1","hashtag2"]},{"1345199532":["hashtag1","hashtag2"]},{"1345199570":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345199572, 1345199566, 1345199557, 1345199568, 1345199532, 1345199570)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.509573459625244 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:43:02.607787
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_54_6837.jpg', 2), ('/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_47_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_41_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_35_5640.jpg', 2), ('/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_30_6776.jpg', 2), ('/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_23_5728.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_54_6837.jpg', '/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_47_5810.jpg', '/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_41_5817.jpg', '/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_35_5640.jpg', '/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_30_6776.jpg', '/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_23_5728.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_54_6837.jpg
/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_47_5810.jpg
/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_41_5817.jpg
/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_35_5640.jpg
/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_30_6776.jpg
/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_23_5728.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345199629","1345199608","1345199610","1345199607","1345199654","1345199609"],"photo_ids_order":["1345199607","1345199608","1345199609","1345199610","1345199629","1345199654"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0269800eb6b39fc71170987a403c7b78.jpg","text":"TemporaryFile(/tmp/multipartBody8045301662403009236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319843025,"filename":"image_18032025_18_42_30_6776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf6e203dca7f0e45392d18d7706aaa3d.jpg","text":"TemporaryFile(/tmp/multipartBody8627717908865680734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319843025,"filename":"image_18032025_18_42_47_5810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c3be3614775e317dba444ee7fd71de5.jpg","text":"TemporaryFile(/tmp/multipartBody2262011788081516229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319843025,"filename":"image_18032025_18_42_35_5640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3825ba7b63383c5e7dde3bb33bbc695a.jpg","text":"TemporaryFile(/tmp/multipartBody4095161463156067270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319843025,"filename":"image_18032025_18_42_54_6837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cccce34562d998e620c7eee682a1a311.jpg","text":"TemporaryFile(/tmp/multipartBody88713724525770861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319843025,"filename":"image_18032025_18_42_23_5728.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/92d149fd07bd1f41d31f71965238e388.jpg","text":"TemporaryFile(/tmp/multipartBody1330175897322617455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319843025,"filename":"image_18032025_18_42_41_5817.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345199609","file1":"1345199608","file0":"1345199607","file4":"1345199629","file5":"1345199654","file3":"1345199610"},"map_files_photo_id_array":[{"photo_id":"1345199654","filename":"file5"},{"photo_id":"1345199609","filename":"file2"},{"photo_id":"1345199629","filename":"file4"},{"photo_id":"1345199608","filename":"file1"},{"photo_id":"1345199607","filename":"file0"},{"photo_id":"1345199610","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345199629":["hashtag1","hashtag2"]},{"1345199608":["hashtag1","hashtag2"]},{"1345199610":["hashtag1","hashtag2"]},{"1345199607":["hashtag1","hashtag2"]},{"1345199654":["hashtag1","hashtag2"]},{"1345199609":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345199629, 1345199608, 1345199610, 1345199607, 1345199654, 1345199609)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.927475929260254 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:44:02.986275
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_54_5768.jpg', 2), ('/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_48_6849.jpg', 2), ('/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_41_5762.jpg', 2), ('/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_35_5795.jpg', 2), ('/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_29_5727.jpg', 2), ('/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_24_6797.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_54_5768.jpg', '/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_48_6849.jpg', '/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_41_5762.jpg', '/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_35_5795.jpg', '/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_29_5727.jpg', '/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_24_6797.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_54_5768.jpg
/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_48_6849.jpg
/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_41_5762.jpg
/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_35_5795.jpg
/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_29_5727.jpg
/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_24_6797.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345199977","1345200060","1345200006","1345199949","1345200035","1345200091"],"photo_ids_order":["1345199949","1345199977","1345200006","1345200035","1345200060","1345200091"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f114328b61fb98b4dc2ef4a8cd71a334.jpg","text":"TemporaryFile(/tmp/multipartBody7669273120479334870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319903365,"filename":"image_18032025_18_43_48_6849.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/16a99342ee6be34f2d5f9cbaeb66e197.jpg","text":"TemporaryFile(/tmp/multipartBody8431494143152863443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319903365,"filename":"image_18032025_18_43_29_5727.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dcad3d4ddb61c80e927b5271d643a952.jpg","text":"TemporaryFile(/tmp/multipartBody1777449610117472122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319903365,"filename":"image_18032025_18_43_41_5762.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e17ea40d41aecc09349dbff94b2fd6b.jpg","text":"TemporaryFile(/tmp/multipartBody5878794789903961147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319903365,"filename":"image_18032025_18_43_54_5768.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0cea0e395905ad5eb016c1e033386aa2.jpg","text":"TemporaryFile(/tmp/multipartBody7211870997430792734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319903365,"filename":"image_18032025_18_43_35_5795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1567c2511c45adedb6aae869ae7e4866.jpg","text":"TemporaryFile(/tmp/multipartBody5036901862136629073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319903365,"filename":"image_18032025_18_43_24_6797.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345200006","file1":"1345199977","file0":"1345199949","file4":"1345200060","file5":"1345200091","file3":"1345200035"},"map_files_photo_id_array":[{"photo_id":"1345200091","filename":"file5"},{"photo_id":"1345200006","filename":"file2"},{"photo_id":"1345200060","filename":"file4"},{"photo_id":"1345199977","filename":"file1"},{"photo_id":"1345199949","filename":"file0"},{"photo_id":"1345200035","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345199977":["hashtag1","hashtag2"]},{"1345200060":["hashtag1","hashtag2"]},{"1345200006":["hashtag1","hashtag2"]},{"1345199949":["hashtag1","hashtag2"]},{"1345200035":["hashtag1","hashtag2"]},{"1345200091":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345199977, 1345200060, 1345200006, 1345199949, 1345200035, 1345200091)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.33816409111023 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:45:02.826576
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_53_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_47_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_42_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_35_5741.jpg', 2), ('/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_29_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_24_6833.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_53_5646.jpg', '/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_47_5637.jpg', '/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_42_6647.jpg', '/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_35_5741.jpg', '/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_29_5618.jpg', '/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_24_6833.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_53_5646.jpg
/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_47_5637.jpg
/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_42_6647.jpg
/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_35_5741.jpg
/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_29_5618.jpg
/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_24_6833.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345200288","1345200312","1345200306","1345200315","1345200318","1345200289"],"photo_ids_order":["1345200288","1345200289","1345200306","1345200312","1345200315","1345200318"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4077d50a689385ef5087ca727f667695.jpg","text":"TemporaryFile(/tmp/multipartBody1408349170017793437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319963167,"filename":"image_18032025_18_44_53_5646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12cd69fe13cc19dfbece6caa6c6126cc.jpg","text":"TemporaryFile(/tmp/multipartBody7394405500370560522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319963167,"filename":"image_18032025_18_44_35_5741.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5be93059d1c7488e30b1367eaa50bd88.jpg","text":"TemporaryFile(/tmp/multipartBody7400909747487499500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319963167,"filename":"image_18032025_18_44_42_6647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/75c13836e173ac4217522efa2d49e063.jpg","text":"TemporaryFile(/tmp/multipartBody7187548666292545158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319963167,"filename":"image_18032025_18_44_29_5618.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af2602d5ea3c32613c4cf89f3dda02ab.jpg","text":"TemporaryFile(/tmp/multipartBody8382435645166791299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319963167,"filename":"image_18032025_18_44_24_6833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b29c0a2f79ac1c2ff0fc303f808812a9.jpg","text":"TemporaryFile(/tmp/multipartBody8429762051224001037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742319963167,"filename":"image_18032025_18_44_47_5637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345200306","file1":"1345200289","file0":"1345200288","file4":"1345200315","file5":"1345200318","file3":"1345200312"},"map_files_photo_id_array":[{"photo_id":"1345200318","filename":"file5"},{"photo_id":"1345200306","filename":"file2"},{"photo_id":"1345200315","filename":"file4"},{"photo_id":"1345200289","filename":"file1"},{"photo_id":"1345200288","filename":"file0"},{"photo_id":"1345200312","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345200288":["hashtag1","hashtag2"]},{"1345200312":["hashtag1","hashtag2"]},{"1345200306":["hashtag1","hashtag2"]},{"1345200315":["hashtag1","hashtag2"]},{"1345200318":["hashtag1","hashtag2"]},{"1345200289":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345200288, 1345200312, 1345200306, 1345200315, 1345200318, 1345200289)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.45931839942932 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:46:02.797593
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_53_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_48_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_41_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_36_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_29_5600.jpg', 2), ('/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_23_5643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_53_5630.jpg', '/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_48_6624.jpg', '/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_41_5613.jpg', '/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_36_6657.jpg', '/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_29_5600.jpg', '/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_23_5643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_53_5630.jpg
/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_48_6624.jpg
/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_41_5613.jpg
/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_36_6657.jpg
/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_29_5600.jpg
/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_23_5643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345200450","1345200453","1345200432","1345200452","1345200434","1345200460"],"photo_ids_order":["1345200432","1345200434","1345200450","1345200452","1345200453","1345200460"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/98cbdee012d64cd7d8417cf0b98b9442.jpg","text":"TemporaryFile(/tmp/multipartBody1833688557772691763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320023132,"filename":"image_18032025_18_45_41_5613.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3d6e8f1305e945accd4bc960661aaf5a.jpg","text":"TemporaryFile(/tmp/multipartBody4962186926278557320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320023132,"filename":"image_18032025_18_45_29_5600.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ec3474add1acf63963ed8894de520530.jpg","text":"TemporaryFile(/tmp/multipartBody7334833601830091386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320023132,"filename":"image_18032025_18_45_53_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0285cc3598e5cd28b7009d8bf1ccfed.jpg","text":"TemporaryFile(/tmp/multipartBody5915443252120270624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320023132,"filename":"image_18032025_18_45_36_6657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/16ac6fb2f6b390343e4f69455268cd6f.jpg","text":"TemporaryFile(/tmp/multipartBody2934579612570477846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320023132,"filename":"image_18032025_18_45_48_6624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3185df7e01454a3e08fbc57ba27202ff.jpg","text":"TemporaryFile(/tmp/multipartBody8840124460170288842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320023132,"filename":"image_18032025_18_45_23_5643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345200450","file1":"1345200434","file0":"1345200432","file4":"1345200453","file5":"1345200460","file3":"1345200452"},"map_files_photo_id_array":[{"photo_id":"1345200460","filename":"file5"},{"photo_id":"1345200450","filename":"file2"},{"photo_id":"1345200453","filename":"file4"},{"photo_id":"1345200434","filename":"file1"},{"photo_id":"1345200432","filename":"file0"},{"photo_id":"1345200452","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345200450":["hashtag1","hashtag2"]},{"1345200453":["hashtag1","hashtag2"]},{"1345200432":["hashtag1","hashtag2"]},{"1345200452":["hashtag1","hashtag2"]},{"1345200434":["hashtag1","hashtag2"]},{"1345200460":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345200450, 1345200453, 1345200432, 1345200452, 1345200434, 1345200460)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.944482564926147 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:47:02.879470
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_53_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_47_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_42_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_35_5658.jpg', 2), ('/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_29_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_24_6647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_53_5658.jpg', '/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_47_5643.jpg', '/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_42_6655.jpg', '/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_35_5658.jpg', '/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_29_5638.jpg', '/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_24_6647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_53_5658.jpg
/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_47_5643.jpg
/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_42_6655.jpg
/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_35_5658.jpg
/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_29_5638.jpg
/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_24_6647.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345200502","1345200504","1345200507","1345200506","1345200509","1345200508"],"photo_ids_order":["1345200502","1345200504","1345200506","1345200507","1345200508","1345200509"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b03b902dc3201d29b4de9cb21e18750e.jpg","text":"TemporaryFile(/tmp/multipartBody1077874196422366753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320083216,"filename":"image_18032025_18_46_53_5658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/20d23467e9d1addc492aeae7fe4196f0.jpg","text":"TemporaryFile(/tmp/multipartBody258955143127395673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320083216,"filename":"image_18032025_18_46_47_5643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/30fbf3330a017974cd20fc91017cf871.jpg","text":"TemporaryFile(/tmp/multipartBody3310431868189106192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320083216,"filename":"image_18032025_18_46_35_5658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3b0896ef203b288656780776ed1a7b62.jpg","text":"TemporaryFile(/tmp/multipartBody585755086740534263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320083216,"filename":"image_18032025_18_46_42_6655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01f0669a24a1b2bf32a161becd045a16.jpg","text":"TemporaryFile(/tmp/multipartBody7648192888668415405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320083216,"filename":"image_18032025_18_46_24_6647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/91338e66c45ad16265de7e6b6eebc44c.jpg","text":"TemporaryFile(/tmp/multipartBody2184807619606343710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320083216,"filename":"image_18032025_18_46_29_5638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345200506","file1":"1345200504","file0":"1345200502","file4":"1345200508","file5":"1345200509","file3":"1345200507"},"map_files_photo_id_array":[{"photo_id":"1345200509","filename":"file5"},{"photo_id":"1345200506","filename":"file2"},{"photo_id":"1345200508","filename":"file4"},{"photo_id":"1345200504","filename":"file1"},{"photo_id":"1345200502","filename":"file0"},{"photo_id":"1345200507","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345200502":["hashtag1","hashtag2"]},{"1345200504":["hashtag1","hashtag2"]},{"1345200507":["hashtag1","hashtag2"]},{"1345200506":["hashtag1","hashtag2"]},{"1345200509":["hashtag1","hashtag2"]},{"1345200508":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345200502, 1345200504, 1345200507, 1345200506, 1345200509, 1345200508)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.658241510391235 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:48:03.146257
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_54_5987.jpg', 2), ('/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_48_6778.jpg', 2), ('/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_41_5747.jpg', 2), ('/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_35_5804.jpg', 2), ('/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_29_5825.jpg', 2), ('/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_24_5717.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_54_5987.jpg', '/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_48_6778.jpg', '/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_41_5747.jpg', '/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_35_5804.jpg', '/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_29_5825.jpg', '/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_24_5717.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_54_5987.jpg
/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_48_6778.jpg
/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_41_5747.jpg
/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_35_5804.jpg
/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_29_5825.jpg
/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_24_5717.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345200543","1345200546","1345200548","1345200542","1345200545","1345200544"],"photo_ids_order":["1345200542","1345200543","1345200544","1345200545","1345200546","1345200548"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/93e9e7039b9b9bdd934974a2a08153a4.jpg","text":"TemporaryFile(/tmp/multipartBody9100140407026803943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320143537,"filename":"image_18032025_18_47_48_6778.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a2acf73a905ff912922aec777114a8f2.jpg","text":"TemporaryFile(/tmp/multipartBody3453799677515437519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320143537,"filename":"image_18032025_18_47_29_5825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f322fba65c2016292ddbc0082d7e89a6.jpg","text":"TemporaryFile(/tmp/multipartBody2560448872482860674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320143537,"filename":"image_18032025_18_47_24_5717.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/103fdaa1db1d7b3b02d0709f89056325.jpg","text":"TemporaryFile(/tmp/multipartBody5581118236873472011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320143537,"filename":"image_18032025_18_47_54_5987.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d93809ae871e14bbc84aa4cb3a0aea28.jpg","text":"TemporaryFile(/tmp/multipartBody4610845207248945714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320143537,"filename":"image_18032025_18_47_35_5804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fdafa8fc5271e48d06a68a753fce6795.jpg","text":"TemporaryFile(/tmp/multipartBody8747977602216277133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320143537,"filename":"image_18032025_18_47_41_5747.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345200544","file1":"1345200543","file0":"1345200542","file4":"1345200546","file5":"1345200548","file3":"1345200545"},"map_files_photo_id_array":[{"photo_id":"1345200548","filename":"file5"},{"photo_id":"1345200544","filename":"file2"},{"photo_id":"1345200546","filename":"file4"},{"photo_id":"1345200543","filename":"file1"},{"photo_id":"1345200542","filename":"file0"},{"photo_id":"1345200545","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345200543":["hashtag1","hashtag2"]},{"1345200546":["hashtag1","hashtag2"]},{"1345200548":["hashtag1","hashtag2"]},{"1345200542":["hashtag1","hashtag2"]},{"1345200545":["hashtag1","hashtag2"]},{"1345200544":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345200543, 1345200546, 1345200548, 1345200542, 1345200545, 1345200544)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.992117166519165 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:49:02.417871
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_53_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_47_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_42_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_35_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_29_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_24_6721.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_53_5655.jpg', '/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_47_5619.jpg', '/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_42_6651.jpg', '/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_35_5653.jpg', '/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_29_5781.jpg', '/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_24_6721.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_53_5655.jpg
/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_47_5619.jpg
/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_42_6651.jpg
/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_35_5653.jpg
/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_29_5781.jpg
/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_24_6721.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345200657","1345200714","1345200686","1345200767","1345200632","1345200740"],"photo_ids_order":["1345200632","1345200657","1345200686","1345200714","1345200740","1345200767"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6781df8d5961ce0b17dfb63c90f5eb31.jpg","text":"TemporaryFile(/tmp/multipartBody4946900451282342622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320202759,"filename":"image_18032025_18_48_47_5619.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8294dbb3b462626594de136616a948b.jpg","text":"TemporaryFile(/tmp/multipartBody5977634332849571471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320202759,"filename":"image_18032025_18_48_35_5653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c8dc34053b49369a08ae92673c52d6bd.jpg","text":"TemporaryFile(/tmp/multipartBody1040448540521138590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320202759,"filename":"image_18032025_18_48_42_6651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7abab5dfacf0443aba25dd218b208544.jpg","text":"TemporaryFile(/tmp/multipartBody1826746236126752393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320202759,"filename":"image_18032025_18_48_24_6721.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/53506bb132b4d18289735d0e1a325d93.jpg","text":"TemporaryFile(/tmp/multipartBody7714389815883266749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320202759,"filename":"image_18032025_18_48_53_5655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/df03f328a38388447129bfae2077ec6b.jpg","text":"TemporaryFile(/tmp/multipartBody2911737833209355772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320202759,"filename":"image_18032025_18_48_29_5781.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345200686","file1":"1345200657","file0":"1345200632","file4":"1345200740","file5":"1345200767","file3":"1345200714"},"map_files_photo_id_array":[{"photo_id":"1345200767","filename":"file5"},{"photo_id":"1345200686","filename":"file2"},{"photo_id":"1345200740","filename":"file4"},{"photo_id":"1345200657","filename":"file1"},{"photo_id":"1345200632","filename":"file0"},{"photo_id":"1345200714","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345200657":["hashtag1","hashtag2"]},{"1345200714":["hashtag1","hashtag2"]},{"1345200686":["hashtag1","hashtag2"]},{"1345200767":["hashtag1","hashtag2"]},{"1345200632":["hashtag1","hashtag2"]},{"1345200740":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345200657, 1345200714, 1345200686, 1345200767, 1345200632, 1345200740)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.940210580825806 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:50:02.364911
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_54_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_47_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_41_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_36_6675.jpg', 2), ('/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_29_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_23_5663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_54_6634.jpg', '/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_47_5637.jpg', '/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_41_5656.jpg', '/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_36_6675.jpg', '/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_29_5662.jpg', '/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_23_5663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_54_6634.jpg
/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_47_5637.jpg
/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_41_5656.jpg
/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_36_6675.jpg
/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_29_5662.jpg
/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_23_5663.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345200981","1345200984","1345200987","1345200992","1345200989","1345200979"],"photo_ids_order":["1345200979","1345200981","1345200984","1345200987","1345200989","1345200992"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d32fcd72113038ff039cb5165099a655.jpg","text":"TemporaryFile(/tmp/multipartBody746372632827692666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320262702,"filename":"image_18032025_18_49_47_5637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0bccbbe7fa6c881e32fb5aa78acba4d3.jpg","text":"TemporaryFile(/tmp/multipartBody1190711847857599143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320262702,"filename":"image_18032025_18_49_41_5656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a0156ec7e6b264bea6de43769246453.jpg","text":"TemporaryFile(/tmp/multipartBody1822070487652507396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320262702,"filename":"image_18032025_18_49_36_6675.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7944c865afbcb81d38709e7fd506a09c.jpg","text":"TemporaryFile(/tmp/multipartBody5821305919561013829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320262702,"filename":"image_18032025_18_49_23_5663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd7e36aefaaab498c183df79fc08a64c.jpg","text":"TemporaryFile(/tmp/multipartBody3576407264448030025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320262702,"filename":"image_18032025_18_49_29_5662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a9c60f811bc38be9971a9f32b739a049.jpg","text":"TemporaryFile(/tmp/multipartBody7176123014016205041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320262702,"filename":"image_18032025_18_49_54_6634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345200984","file1":"1345200981","file0":"1345200979","file4":"1345200989","file5":"1345200992","file3":"1345200987"},"map_files_photo_id_array":[{"photo_id":"1345200992","filename":"file5"},{"photo_id":"1345200984","filename":"file2"},{"photo_id":"1345200989","filename":"file4"},{"photo_id":"1345200981","filename":"file1"},{"photo_id":"1345200979","filename":"file0"},{"photo_id":"1345200987","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345200981":["hashtag1","hashtag2"]},{"1345200984":["hashtag1","hashtag2"]},{"1345200987":["hashtag1","hashtag2"]},{"1345200992":["hashtag1","hashtag2"]},{"1345200989":["hashtag1","hashtag2"]},{"1345200979":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345200981, 1345200984, 1345200987, 1345200992, 1345200989, 1345200979)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.68179941177368 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:51:02.530585
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_48_6248.jpg', 2), ('/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_41_6191.jpg', 2), ('/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_35_6207.jpg', 2), ('/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_29_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_23_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_18_6639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_48_6248.jpg', '/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_41_6191.jpg', '/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_35_6207.jpg', '/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_29_5758.jpg', '/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_23_5644.jpg', '/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_18_6639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_48_6248.jpg
/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_41_6191.jpg
/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_35_6207.jpg
/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_29_5758.jpg
/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_23_5644.jpg
/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_18_6639.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345201131","1345201134","1345201136","1345201133","1345201141","1345201138"],"photo_ids_order":["1345201131","1345201133","1345201134","1345201136","1345201138","1345201141"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8054bfc83cfc4be6d68d17528aa5fa1.jpg","text":"TemporaryFile(/tmp/multipartBody5648146811271653994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320323006,"filename":"image_18032025_18_50_48_6248.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe36a81a86a1f588cf0c0a1843ba0f08.jpg","text":"TemporaryFile(/tmp/multipartBody6819175211341594006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320323006,"filename":"image_18032025_18_50_35_6207.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8f171b194e18433b226f497f4f70cdf5.jpg","text":"TemporaryFile(/tmp/multipartBody5569098519915387248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320323006,"filename":"image_18032025_18_50_29_5758.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1219d4cbac3f8afa3d907799d21200a3.jpg","text":"TemporaryFile(/tmp/multipartBody5686753160637291999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320323006,"filename":"image_18032025_18_50_41_6191.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a9610ea972a2f518c0b13a3bf0c8c6e4.jpg","text":"TemporaryFile(/tmp/multipartBody5447209413756580563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320323006,"filename":"image_18032025_18_50_18_6639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e708d0f5cbfb3f00fcf88e88a25b8e89.jpg","text":"TemporaryFile(/tmp/multipartBody1060990702041502534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320323006,"filename":"image_18032025_18_50_23_5644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345201134","file1":"1345201133","file0":"1345201131","file4":"1345201138","file5":"1345201141","file3":"1345201136"},"map_files_photo_id_array":[{"photo_id":"1345201141","filename":"file5"},{"photo_id":"1345201134","filename":"file2"},{"photo_id":"1345201138","filename":"file4"},{"photo_id":"1345201133","filename":"file1"},{"photo_id":"1345201131","filename":"file0"},{"photo_id":"1345201136","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345201131":["hashtag1","hashtag2"]},{"1345201134":["hashtag1","hashtag2"]},{"1345201136":["hashtag1","hashtag2"]},{"1345201133":["hashtag1","hashtag2"]},{"1345201141":["hashtag1","hashtag2"]},{"1345201138":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345201131, 1345201134, 1345201136, 1345201133, 1345201141, 1345201138)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.786612510681152 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:52:02.647010
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/51/image_18032025_18_51_18_6216.jpg', 2), ('/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_59_5202.jpg', 2), ('/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_11_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_05_6025.jpg', 2), ('/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_59_5682.jpg', 2), ('/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_18_6649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/51/image_18032025_18_51_18_6216.jpg', '/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_59_5202.jpg', '/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_11_5630.jpg', '/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_05_6025.jpg', '/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_59_5682.jpg', '/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_18_6649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/51/image_18032025_18_51_18_6216.jpg
/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_59_5202.jpg
/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_11_5630.jpg
/home/nano/Desktop/images/18032025/18/50/image_18032025_18_50_05_6025.jpg
/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_59_5682.jpg
/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_18_6649.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345201179","1345201178","1345201172","1345201181","1345201174","1345201176"],"photo_ids_order":["1345201172","1345201174","1345201176","1345201178","1345201179","1345201181"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/326c4f6f43cad6cbd4743fbe97304253.jpg","text":"TemporaryFile(/tmp/multipartBody4716683040516150818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320383068,"filename":"image_18032025_18_49_59_5682.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac0bfd2581a73b677ac93f17fd4f4a20.jpg","text":"TemporaryFile(/tmp/multipartBody2322480468845980160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320383068,"filename":"image_18032025_18_50_05_6025.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f0af113038005518c3c3e251bdf95bed.jpg","text":"TemporaryFile(/tmp/multipartBody7121690676023189823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320383068,"filename":"image_18032025_18_51_18_6216.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/168a6e99c1ca5ac3954767da8695549d.jpg","text":"TemporaryFile(/tmp/multipartBody5197208049819237854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320383068,"filename":"image_18032025_18_49_18_6649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9f79bca474be6a9ef0255b5ffdf4f60.jpg","text":"TemporaryFile(/tmp/multipartBody5039140514654914792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320383068,"filename":"image_18032025_18_50_59_5202.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28f6eb0f5b20b6d3ae2cb7b175406aae.jpg","text":"TemporaryFile(/tmp/multipartBody5943555251138229718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320383068,"filename":"image_18032025_18_50_11_5630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345201176","file1":"1345201174","file0":"1345201172","file4":"1345201179","file5":"1345201181","file3":"1345201178"},"map_files_photo_id_array":[{"photo_id":"1345201181","filename":"file5"},{"photo_id":"1345201176","filename":"file2"},{"photo_id":"1345201179","filename":"file4"},{"photo_id":"1345201174","filename":"file1"},{"photo_id":"1345201172","filename":"file0"},{"photo_id":"1345201178","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345201179":["hashtag1","hashtag2"]},{"1345201178":["hashtag1","hashtag2"]},{"1345201172":["hashtag1","hashtag2"]},{"1345201181":["hashtag1","hashtag2"]},{"1345201174":["hashtag1","hashtag2"]},{"1345201176":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345201179, 1345201178, 1345201172, 1345201181, 1345201174, 1345201176)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.09550905227661 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:53:02.771805
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_47_5196.jpg', 2), ('/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_23_6251.jpg', 2), ('/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_05_6223.jpg', 2), ('/home/nano/Desktop/images/18032025/18/51/image_18032025_18_51_23_5199.jpg', 2), ('/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_11_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_05_5616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_47_5196.jpg', '/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_23_6251.jpg', '/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_05_6223.jpg', '/home/nano/Desktop/images/18032025/18/51/image_18032025_18_51_23_5199.jpg', '/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_11_5667.jpg', '/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_05_5616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_47_5196.jpg
/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_23_6251.jpg
/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_05_6223.jpg
/home/nano/Desktop/images/18032025/18/51/image_18032025_18_51_23_5199.jpg
/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_11_5667.jpg
/home/nano/Desktop/images/18032025/18/49/image_18032025_18_49_05_5616.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345201221","1345201223","1345201217","1345201214","1345201222","1345201219"],"photo_ids_order":["1345201214","1345201217","1345201219","1345201221","1345201222","1345201223"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d0f6c45537a756b33ed24053b7976eaf.jpg","text":"TemporaryFile(/tmp/multipartBody4169832593427307150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320443286,"filename":"image_18032025_18_51_23_5199.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0eb1edb86d13dac8e8a07ea7c5c66caf.jpg","text":"TemporaryFile(/tmp/multipartBody878369078424333686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320443286,"filename":"image_18032025_18_49_05_5616.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f1c38001c56bf1fda36c04bf635a330d.jpg","text":"TemporaryFile(/tmp/multipartBody5463245266112091116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320443286,"filename":"image_18032025_18_52_23_6251.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f024dcb7c031f24a6499668d5dbaf24f.jpg","text":"TemporaryFile(/tmp/multipartBody4005254156811546379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320443286,"filename":"image_18032025_18_52_47_5196.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9115a1535b382d3b7b74f50086e0f9fd.jpg","text":"TemporaryFile(/tmp/multipartBody6819668849813218818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320443286,"filename":"image_18032025_18_49_11_5667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3cb22a69c4781698cee1e7c610a2f70.jpg","text":"TemporaryFile(/tmp/multipartBody3080905544323855683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320443286,"filename":"image_18032025_18_52_05_6223.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345201219","file1":"1345201217","file0":"1345201214","file4":"1345201222","file5":"1345201223","file3":"1345201221"},"map_files_photo_id_array":[{"photo_id":"1345201223","filename":"file5"},{"photo_id":"1345201219","filename":"file2"},{"photo_id":"1345201222","filename":"file4"},{"photo_id":"1345201217","filename":"file1"},{"photo_id":"1345201214","filename":"file0"},{"photo_id":"1345201221","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345201221":["hashtag1","hashtag2"]},{"1345201223":["hashtag1","hashtag2"]},{"1345201217":["hashtag1","hashtag2"]},{"1345201214":["hashtag1","hashtag2"]},{"1345201222":["hashtag1","hashtag2"]},{"1345201219":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345201221, 1345201223, 1345201217, 1345201214, 1345201222, 1345201219)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.080634355545044 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:54:03.279210
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/53/image_18032025_18_53_41_6214.jpg', 2), ('/home/nano/Desktop/images/18032025/18/53/image_18032025_18_53_35_5231.jpg', 2), ('/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_53_6212.jpg', 2), ('/home/nano/Desktop/images/18032025/18/48/image_18032025_18_49_00_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_17_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_11_5928.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/53/image_18032025_18_53_41_6214.jpg', '/home/nano/Desktop/images/18032025/18/53/image_18032025_18_53_35_5231.jpg', '/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_53_6212.jpg', '/home/nano/Desktop/images/18032025/18/48/image_18032025_18_49_00_6651.jpg', '/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_17_5767.jpg', '/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_11_5928.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/53/image_18032025_18_53_41_6214.jpg
/home/nano/Desktop/images/18032025/18/53/image_18032025_18_53_35_5231.jpg
/home/nano/Desktop/images/18032025/18/52/image_18032025_18_52_53_6212.jpg
/home/nano/Desktop/images/18032025/18/48/image_18032025_18_49_00_6651.jpg
/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_17_5767.jpg
/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_11_5928.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345201262","1345201256","1345201261","1345201264","1345201258","1345201260"],"photo_ids_order":["1345201256","1345201258","1345201260","1345201261","1345201262","1345201264"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9de02c2a6eaa209c99f02dda9ff3c993.jpg","text":"TemporaryFile(/tmp/multipartBody340596303578239761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320503749,"filename":"image_18032025_18_48_17_5767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/34998f0c5cd17a7683dcd474068e48e1.jpg","text":"TemporaryFile(/tmp/multipartBody1898209641212647530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320503749,"filename":"image_18032025_18_53_41_6214.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6255c9c12f2d9fd4148a7c3a5b5f8988.jpg","text":"TemporaryFile(/tmp/multipartBody8557995808484289324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320503749,"filename":"image_18032025_18_49_00_6651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69b8c6691021fea8eeead13da40d4b61.jpg","text":"TemporaryFile(/tmp/multipartBody7337414995933609534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320503749,"filename":"image_18032025_18_48_11_5928.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/18feb9635a827b65ab8941d22af92222.jpg","text":"TemporaryFile(/tmp/multipartBody3745181493006524606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320503749,"filename":"image_18032025_18_53_35_5231.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a6565ced887df8da4207f5463e51042c.jpg","text":"TemporaryFile(/tmp/multipartBody1235306963315624254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320503749,"filename":"image_18032025_18_52_53_6212.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345201260","file1":"1345201258","file0":"1345201256","file4":"1345201262","file5":"1345201264","file3":"1345201261"},"map_files_photo_id_array":[{"photo_id":"1345201264","filename":"file5"},{"photo_id":"1345201260","filename":"file2"},{"photo_id":"1345201262","filename":"file4"},{"photo_id":"1345201258","filename":"file1"},{"photo_id":"1345201256","filename":"file0"},{"photo_id":"1345201261","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345201262":["hashtag1","hashtag2"]},{"1345201256":["hashtag1","hashtag2"]},{"1345201261":["hashtag1","hashtag2"]},{"1345201264":["hashtag1","hashtag2"]},{"1345201258":["hashtag1","hashtag2"]},{"1345201260":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345201262, 1345201256, 1345201261, 1345201264, 1345201258, 1345201260)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.953373193740845 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:55:02.935081
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_54_6244.jpg', 2), ('/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_41_6198.jpg', 2), ('/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_35_6222.jpg', 2), ('/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_29_5247.jpg', 2), ('/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_24_6212.jpg', 2), ('/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_17_6216.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_54_6244.jpg', '/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_41_6198.jpg', '/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_35_6222.jpg', '/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_29_5247.jpg', '/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_24_6212.jpg', '/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_17_6216.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_54_6244.jpg
/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_41_6198.jpg
/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_35_6222.jpg
/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_29_5247.jpg
/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_24_6212.jpg
/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_17_6216.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345201362","1345201295","1345201472","1345201301","1345201423","1345201464"],"photo_ids_order":["1345201295","1345201301","1345201362","1345201423","1345201464","1345201472"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/29fb87fbf18f45aa6ddd3fae61b7ac31.jpg","text":"TemporaryFile(/tmp/multipartBody8794648994099341590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320563460,"filename":"image_18032025_18_54_35_6222.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ed81e51190fd1008594f7c0a87b09fc8.jpg","text":"TemporaryFile(/tmp/multipartBody3944515967237289393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320563460,"filename":"image_18032025_18_54_54_6244.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a9c303c4c350fe20fc69f0f7d40f7dd.jpg","text":"TemporaryFile(/tmp/multipartBody991919196768292443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320563460,"filename":"image_18032025_18_54_17_6216.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9137c4f718c429a2c8ff67002207b6d.jpg","text":"TemporaryFile(/tmp/multipartBody8006126608494596675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320563460,"filename":"image_18032025_18_54_41_6198.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/796f7279377ec340e43eeca9a7e2063c.jpg","text":"TemporaryFile(/tmp/multipartBody8696809568779320790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320563460,"filename":"image_18032025_18_54_29_5247.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/43cccc11312853a2c1722b52bcc32206.jpg","text":"TemporaryFile(/tmp/multipartBody1111932672734249716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320563460,"filename":"image_18032025_18_54_24_6212.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345201362","file1":"1345201301","file0":"1345201295","file4":"1345201464","file5":"1345201472","file3":"1345201423"},"map_files_photo_id_array":[{"photo_id":"1345201472","filename":"file5"},{"photo_id":"1345201362","filename":"file2"},{"photo_id":"1345201464","filename":"file4"},{"photo_id":"1345201301","filename":"file1"},{"photo_id":"1345201295","filename":"file0"},{"photo_id":"1345201423","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345201362":["hashtag1","hashtag2"]},{"1345201295":["hashtag1","hashtag2"]},{"1345201472":["hashtag1","hashtag2"]},{"1345201301":["hashtag1","hashtag2"]},{"1345201423":["hashtag1","hashtag2"]},{"1345201464":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345201362, 1345201295, 1345201472, 1345201301, 1345201423, 1345201464)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.68700122833252 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:56:03.110315
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_54_6212.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_48_6055.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_41_6112.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_29_6027.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_23_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_17_6084.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_54_6212.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_48_6055.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_41_6112.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_29_6027.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_23_6036.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_17_6084.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_54_6212.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_48_6055.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_41_6112.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_29_6027.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_23_6036.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_17_6084.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.43007946014404297 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:56:32.711949
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_48_6025.jpg', 2), ('/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_42_6019.jpg', 2), ('/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_36_6153.jpg', 2), ('/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_29_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_23_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_06_5984.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_48_6025.jpg', '/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_42_6019.jpg', '/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_36_6153.jpg', '/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_29_6135.jpg', '/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_23_6140.jpg', '/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_06_5984.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_48_6025.jpg
/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_42_6019.jpg
/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_36_6153.jpg
/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_29_6135.jpg
/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_23_6140.jpg
/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_06_5984.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345201557","1345201574","1345201577","1345201567","1345201570","1345201563"],"photo_ids_order":["1345201557","1345201563","1345201567","1345201570","1345201574","1345201577"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a6e41ac567db0e149695f64a40ddb8b1.jpg","text":"TemporaryFile(/tmp/multipartBody3971897737031286320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320653216,"filename":"image_18032025_18_56_48_6025.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be3d65ac9fae83d7a90e4033ce0b95e0.jpg","text":"TemporaryFile(/tmp/multipartBody5452192988892238133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320653216,"filename":"image_18032025_18_56_23_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0669ab038bee19e1ddc247ddaf4d14fb.jpg","text":"TemporaryFile(/tmp/multipartBody1441431404503784835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320653216,"filename":"image_18032025_18_56_06_5984.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63aa71f9c054afb32dbbd356813f62e6.jpg","text":"TemporaryFile(/tmp/multipartBody1887991734984637127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320653216,"filename":"image_18032025_18_56_36_6153.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d14516813bcf1a5c0734b49ef2b8eb5.jpg","text":"TemporaryFile(/tmp/multipartBody8491149444688702394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320653216,"filename":"image_18032025_18_56_29_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ff9c2182ff131fa6a02062b554972645.jpg","text":"TemporaryFile(/tmp/multipartBody3601599457260048859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320653216,"filename":"image_18032025_18_56_42_6019.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345201567","file1":"1345201563","file0":"1345201557","file4":"1345201574","file5":"1345201577","file3":"1345201570"},"map_files_photo_id_array":[{"photo_id":"1345201577","filename":"file5"},{"photo_id":"1345201567","filename":"file2"},{"photo_id":"1345201574","filename":"file4"},{"photo_id":"1345201563","filename":"file1"},{"photo_id":"1345201557","filename":"file0"},{"photo_id":"1345201570","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345201557":["hashtag1","hashtag2"]},{"1345201574":["hashtag1","hashtag2"]},{"1345201577":["hashtag1","hashtag2"]},{"1345201567":["hashtag1","hashtag2"]},{"1345201570":["hashtag1","hashtag2"]},{"1345201563":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345201557, 1345201574, 1345201577, 1345201567, 1345201570, 1345201563)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.465059518814087 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:57:31.865354
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_54_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_47_5989.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_35_6137.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_29_6011.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_23_6009.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_17_6125.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_54_6094.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_47_5989.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_35_6137.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_29_6011.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_23_6009.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_17_6125.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_54_6094.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_47_5989.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_35_6137.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_29_6011.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_23_6009.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_17_6125.jpg
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:58:02.207293
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_54_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_47_5989.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_35_6137.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_29_6011.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_23_6009.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_17_6125.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_54_6094.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_47_5989.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_35_6137.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_29_6011.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_23_6009.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_17_6125.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_54_6094.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_47_5989.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_35_6137.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_29_6011.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_23_6009.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_17_6125.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345202027","1345202036","1345202032","1345202023","1345202002","1345201974"],"photo_ids_order":["1345201974","1345202002","1345202023","1345202027","1345202032","1345202036"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5992b614453e64e4cbc89ea5c6e8265a.jpg","text":"TemporaryFile(/tmp/multipartBody8364533779842978419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320742699,"filename":"image_18032025_18_57_29_6011.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/965862187ed767d0b50b969ed453dd4f.jpg","text":"TemporaryFile(/tmp/multipartBody394638677678905466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320742699,"filename":"image_18032025_18_57_17_6125.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/604005adf9602de137330993db4d8df7.jpg","text":"TemporaryFile(/tmp/multipartBody7873429742048627860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320742699,"filename":"image_18032025_18_57_23_6009.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a86ddb848fd655c0d0b6b9cb241d61df.jpg","text":"TemporaryFile(/tmp/multipartBody892245808144519475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320742699,"filename":"image_18032025_18_57_35_6137.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/184e1067f8409dc3a7ba8b567306953b.jpg","text":"TemporaryFile(/tmp/multipartBody1816230056450268239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320742699,"filename":"image_18032025_18_57_47_5989.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/17d673dabd327eab81d6c7d0f149968a.jpg","text":"TemporaryFile(/tmp/multipartBody6848149791613682585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320742699,"filename":"image_18032025_18_57_54_6094.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345202023","file1":"1345202002","file0":"1345201974","file4":"1345202032","file5":"1345202036","file3":"1345202027"},"map_files_photo_id_array":[{"photo_id":"1345202036","filename":"file5"},{"photo_id":"1345202023","filename":"file2"},{"photo_id":"1345202032","filename":"file4"},{"photo_id":"1345202002","filename":"file1"},{"photo_id":"1345201974","filename":"file0"},{"photo_id":"1345202027","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345202027":["hashtag1","hashtag2"]},{"1345202036":["hashtag1","hashtag2"]},{"1345202032":["hashtag1","hashtag2"]},{"1345202023":["hashtag1","hashtag2"]},{"1345202002":["hashtag1","hashtag2"]},{"1345201974":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345202027, 1345202036, 1345202032, 1345202023, 1345202002, 1345201974)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.009933948516846 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 18:59:03.143313
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_11_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_05_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_54_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_56_00_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_54_6212.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_48_6055.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_11_6125.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_05_6152.jpg', '/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_54_6128.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_56_00_6043.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_54_6212.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_48_6055.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_11_6125.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_57_05_6152.jpg
/home/nano/Desktop/images/18032025/18/56/image_18032025_18_56_54_6128.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_56_00_6043.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_54_6212.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_48_6055.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345202494","1345202452","1345202562","1345202532","1345202597","1345202400"],"photo_ids_order":["1345202400","1345202452","1345202494","1345202532","1345202562","1345202597"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f15a263c9cac72f163d13864c331f1e8.jpg","text":"TemporaryFile(/tmp/multipartBody8441748407317714345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320803664,"filename":"image_18032025_18_56_54_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f5996339e51219425d3b051ad9d44f10.jpg","text":"TemporaryFile(/tmp/multipartBody8973460039698915606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320803664,"filename":"image_18032025_18_57_05_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47c68890abc875954504cea096f6ca11.jpg","text":"TemporaryFile(/tmp/multipartBody5137446753666755534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320803664,"filename":"image_18032025_18_55_54_6212.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/030abc4d0f52fcbbfcc7871401c78d82.jpg","text":"TemporaryFile(/tmp/multipartBody2373041137861842708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320803664,"filename":"image_18032025_18_56_00_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/45fef3f280f5f73d49099184fd0d326d.jpg","text":"TemporaryFile(/tmp/multipartBody2526405126548682087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320803664,"filename":"image_18032025_18_55_48_6055.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d89444e5fcdcdb6ba48ce6710d85e20.jpg","text":"TemporaryFile(/tmp/multipartBody3385542819537546994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320803664,"filename":"image_18032025_18_57_11_6125.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345202494","file1":"1345202452","file0":"1345202400","file4":"1345202562","file5":"1345202597","file3":"1345202532"},"map_files_photo_id_array":[{"photo_id":"1345202597","filename":"file5"},{"photo_id":"1345202494","filename":"file2"},{"photo_id":"1345202562","filename":"file4"},{"photo_id":"1345202452","filename":"file1"},{"photo_id":"1345202400","filename":"file0"},{"photo_id":"1345202532","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345202494":["hashtag1","hashtag2"]},{"1345202452":["hashtag1","hashtag2"]},{"1345202562":["hashtag1","hashtag2"]},{"1345202532":["hashtag1","hashtag2"]},{"1345202597":["hashtag1","hashtag2"]},{"1345202400":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345202494, 1345202452, 1345202562, 1345202532, 1345202597, 1345202400)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.02010536193848 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:00:03.073177
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_47_6133.jpg', 2), ('/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_35_6092.jpg', 2), ('/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_29_6018.jpg', 2), ('/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_17_6005.jpg', 2), ('/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_11_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_05_6052.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_47_6133.jpg', '/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_35_6092.jpg', '/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_29_6018.jpg', '/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_17_6005.jpg', '/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_11_6094.jpg', '/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_05_6052.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_47_6133.jpg
/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_35_6092.jpg
/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_29_6018.jpg
/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_17_6005.jpg
/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_11_6094.jpg
/home/nano/Desktop/images/18032025/18/59/image_18032025_18_59_05_6052.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345203011","1345202921","1345202890","1345203040","1345202982","1345202949"],"photo_ids_order":["1345202890","1345202921","1345202949","1345202982","1345203011","1345203040"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/794ebf219e80ce575ff4c07c5979b3b3.jpg","text":"TemporaryFile(/tmp/multipartBody7455132549629100930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320863562,"filename":"image_18032025_18_59_11_6094.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/33d0dc4b296eeea86a0bd8335eef062d.jpg","text":"TemporaryFile(/tmp/multipartBody5035031053518622324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320863562,"filename":"image_18032025_18_59_35_6092.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/30eefe784c31338b41894946d81b2d0e.jpg","text":"TemporaryFile(/tmp/multipartBody1331024993187136513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320863562,"filename":"image_18032025_18_59_47_6133.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9c5b262c1144a40fc7d7239bfeed198.jpg","text":"TemporaryFile(/tmp/multipartBody3873516380515237426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320863562,"filename":"image_18032025_18_59_05_6052.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8ad11f17457981bc80269bb54949a56.jpg","text":"TemporaryFile(/tmp/multipartBody3387643165941330535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320863562,"filename":"image_18032025_18_59_17_6005.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/42ba7f8aef7120498143bf3b954bb8bc.jpg","text":"TemporaryFile(/tmp/multipartBody4299304265494076296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320863562,"filename":"image_18032025_18_59_29_6018.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345202949","file1":"1345202921","file0":"1345202890","file4":"1345203011","file5":"1345203040","file3":"1345202982"},"map_files_photo_id_array":[{"photo_id":"1345203040","filename":"file5"},{"photo_id":"1345202949","filename":"file2"},{"photo_id":"1345203011","filename":"file4"},{"photo_id":"1345202921","filename":"file1"},{"photo_id":"1345202890","filename":"file0"},{"photo_id":"1345202982","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345203011":["hashtag1","hashtag2"]},{"1345202921":["hashtag1","hashtag2"]},{"1345202890":["hashtag1","hashtag2"]},{"1345203040":["hashtag1","hashtag2"]},{"1345202982":["hashtag1","hashtag2"]},{"1345202949":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345203011, 1345202921, 1345202890, 1345203040, 1345202982, 1345202949)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.905990600585938 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:01:02.240836
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_53_6181.jpg', 2), ('/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_47_6152.jpg', 2), ('/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_24_5912.jpg', 2), ('/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_18_6171.jpg', 2), ('/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_05_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/18/59/image_18032025_19_00_00_6071.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_53_6181.jpg', '/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_47_6152.jpg', '/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_24_5912.jpg', '/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_18_6171.jpg', '/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_05_5869.jpg', '/home/nano/Desktop/images/18032025/18/59/image_18032025_19_00_00_6071.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_53_6181.jpg
/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_47_6152.jpg
/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_24_5912.jpg
/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_18_6171.jpg
/home/nano/Desktop/images/18032025/19/00/image_18032025_19_00_05_5869.jpg
/home/nano/Desktop/images/18032025/18/59/image_18032025_19_00_00_6071.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345203394","1345203295","1345203457","1345203334","1345203423","1345203371"],"photo_ids_order":["1345203295","1345203334","1345203371","1345203394","1345203423","1345203457"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ccb900647b46b2b946a07277bc5e2241.jpg","text":"TemporaryFile(/tmp/multipartBody162879706103917406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320922722,"filename":"image_18032025_19_00_18_6171.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ee7cca9174e5265655342ee154ad4ac1.jpg","text":"TemporaryFile(/tmp/multipartBody8528285753168715477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320922722,"filename":"image_18032025_19_00_53_6181.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12d70c70805c4adf24aac091df596374.jpg","text":"TemporaryFile(/tmp/multipartBody8004402840855809483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320922722,"filename":"image_18032025_19_00_00_6071.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/937687d184357bc7f82678a1f508c3f8.jpg","text":"TemporaryFile(/tmp/multipartBody8930017024178587552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320922722,"filename":"image_18032025_19_00_47_6152.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9fe2178f18017a70d2b1c32705201730.jpg","text":"TemporaryFile(/tmp/multipartBody8626388195907680274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320922722,"filename":"image_18032025_19_00_05_5869.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2b3f3980a95026013d3963d9ffda4582.jpg","text":"TemporaryFile(/tmp/multipartBody3030887254056305605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320922722,"filename":"image_18032025_19_00_24_5912.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345203371","file1":"1345203334","file0":"1345203295","file4":"1345203423","file5":"1345203457","file3":"1345203394"},"map_files_photo_id_array":[{"photo_id":"1345203457","filename":"file5"},{"photo_id":"1345203371","filename":"file2"},{"photo_id":"1345203423","filename":"file4"},{"photo_id":"1345203334","filename":"file1"},{"photo_id":"1345203295","filename":"file0"},{"photo_id":"1345203394","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345203394":["hashtag1","hashtag2"]},{"1345203295":["hashtag1","hashtag2"]},{"1345203457":["hashtag1","hashtag2"]},{"1345203334":["hashtag1","hashtag2"]},{"1345203423":["hashtag1","hashtag2"]},{"1345203371":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345203394, 1345203295, 1345203457, 1345203334, 1345203423, 1345203371)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.17467451095581 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:02:02.291214
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_47_5995.jpg', 2), ('/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_35_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_18_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_12_6104.jpg', 2), ('/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_06_5960.jpg', 2), ('/home/nano/Desktop/images/18032025/19/00/image_18032025_19_01_00_6175.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_47_5995.jpg', '/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_35_6058.jpg', '/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_18_6127.jpg', '/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_12_6104.jpg', '/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_06_5960.jpg', '/home/nano/Desktop/images/18032025/19/00/image_18032025_19_01_00_6175.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_47_5995.jpg
/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_35_6058.jpg
/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_18_6127.jpg
/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_12_6104.jpg
/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_06_5960.jpg
/home/nano/Desktop/images/18032025/19/00/image_18032025_19_01_00_6175.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345203790","1345203769","1345203748","1345203765","1345203837","1345203816"],"photo_ids_order":["1345203748","1345203765","1345203769","1345203790","1345203816","1345203837"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90c2cc3d6cd32534b5f43173c8bceceb.jpg","text":"TemporaryFile(/tmp/multipartBody5331808315923580943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320982776,"filename":"image_18032025_19_01_12_6104.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1399c2e5f527b9b99edcf18d6940a004.jpg","text":"TemporaryFile(/tmp/multipartBody1789886944592702400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320982776,"filename":"image_18032025_19_01_18_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c8da842da38ced97424d001624df36ce.jpg","text":"TemporaryFile(/tmp/multipartBody2528602757362979756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320982776,"filename":"image_18032025_19_01_47_5995.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac62abecb86c308fb38c931082d2c466.jpg","text":"TemporaryFile(/tmp/multipartBody8163650565680108683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320982776,"filename":"image_18032025_19_01_35_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e0eaf1ad4f4017b5d1b0ca19f63f3b7.jpg","text":"TemporaryFile(/tmp/multipartBody333349833169505887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320982776,"filename":"image_18032025_19_01_00_6175.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e333e061bcac06f20baaa66ecd3c6bca.jpg","text":"TemporaryFile(/tmp/multipartBody3865072150768210890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742320982776,"filename":"image_18032025_19_01_06_5960.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345203769","file1":"1345203765","file0":"1345203748","file4":"1345203816","file5":"1345203837","file3":"1345203790"},"map_files_photo_id_array":[{"photo_id":"1345203837","filename":"file5"},{"photo_id":"1345203769","filename":"file2"},{"photo_id":"1345203816","filename":"file4"},{"photo_id":"1345203765","filename":"file1"},{"photo_id":"1345203748","filename":"file0"},{"photo_id":"1345203790","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345203790":["hashtag1","hashtag2"]},{"1345203769":["hashtag1","hashtag2"]},{"1345203748":["hashtag1","hashtag2"]},{"1345203765":["hashtag1","hashtag2"]},{"1345203837":["hashtag1","hashtag2"]},{"1345203816":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345203790, 1345203769, 1345203748, 1345203765, 1345203837, 1345203816)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.13637661933899 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:03:02.157293
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_53_6034.jpg', 2), ('/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_47_5106.jpg', 2), ('/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_42_6028.jpg', 2), ('/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_30_6170.jpg', 2), ('/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_24_6004.jpg', 2), ('/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_18_6097.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_53_6034.jpg', '/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_47_5106.jpg', '/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_42_6028.jpg', '/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_30_6170.jpg', '/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_24_6004.jpg', '/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_18_6097.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_53_6034.jpg
/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_47_5106.jpg
/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_42_6028.jpg
/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_30_6170.jpg
/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_24_6004.jpg
/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_18_6097.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345204007","1345203994","1345203973","1345203945","1345204010","1345204004"],"photo_ids_order":["1345203945","1345203973","1345203994","1345204004","1345204007","1345204010"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cafd236be7cff8c0c287d9c4c391c5d7.jpg","text":"TemporaryFile(/tmp/multipartBody1317303405280758670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321042632,"filename":"image_18032025_19_02_24_6004.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/df65cb877fb1e9b6711fa0c2615c4dd5.jpg","text":"TemporaryFile(/tmp/multipartBody7086434916494179201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321042632,"filename":"image_18032025_19_02_42_6028.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6d788272680e3cbd9d29f9d4602d5381.jpg","text":"TemporaryFile(/tmp/multipartBody1999948479810510310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321042632,"filename":"image_18032025_19_02_47_5106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/edfb481c64f3f44a4078766fad5a92e9.jpg","text":"TemporaryFile(/tmp/multipartBody2595732724709012460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321042632,"filename":"image_18032025_19_02_53_6034.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8064bcdd26df58361db549b447a0d2fa.jpg","text":"TemporaryFile(/tmp/multipartBody6633500650073989216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321042632,"filename":"image_18032025_19_02_18_6097.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7c3553f8baf65a06964452b5cb3e88a2.jpg","text":"TemporaryFile(/tmp/multipartBody4655682265497044641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321042632,"filename":"image_18032025_19_02_30_6170.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345203994","file1":"1345203973","file0":"1345203945","file4":"1345204007","file5":"1345204010","file3":"1345204004"},"map_files_photo_id_array":[{"photo_id":"1345204010","filename":"file5"},{"photo_id":"1345203994","filename":"file2"},{"photo_id":"1345204007","filename":"file4"},{"photo_id":"1345203973","filename":"file1"},{"photo_id":"1345203945","filename":"file0"},{"photo_id":"1345204004","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345204007":["hashtag1","hashtag2"]},{"1345203994":["hashtag1","hashtag2"]},{"1345203973":["hashtag1","hashtag2"]},{"1345203945":["hashtag1","hashtag2"]},{"1345204010":["hashtag1","hashtag2"]},{"1345204004":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345204007, 1345203994, 1345203973, 1345203945, 1345204010, 1345204004)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.243247747421265 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:04:02.790521
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_53_5818.jpg', 2), ('/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_47_5850.jpg', 2), ('/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_42_5851.jpg', 2), ('/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_36_6784.jpg', 2), ('/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_29_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_23_5791.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_53_5818.jpg', '/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_47_5850.jpg', '/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_42_5851.jpg', '/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_36_6784.jpg', '/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_29_5835.jpg', '/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_23_5791.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_53_5818.jpg
/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_47_5850.jpg
/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_42_5851.jpg
/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_36_6784.jpg
/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_29_5835.jpg
/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_23_5791.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345204255","1345204378","1345204348","1345204306","1345204446","1345204401"],"photo_ids_order":["1345204255","1345204306","1345204348","1345204378","1345204401","1345204446"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d93e95ce5ccfd1de2cadabcd0b05c59.jpg","text":"TemporaryFile(/tmp/multipartBody8464277564425542823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321103164,"filename":"image_18032025_19_03_53_5818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8552d16ce4dd05de74517b3fdacaa538.jpg","text":"TemporaryFile(/tmp/multipartBody786470355143387167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321103164,"filename":"image_18032025_19_03_36_6784.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/98d6ca161f08cdaa46fcb55be600ad24.jpg","text":"TemporaryFile(/tmp/multipartBody3400625467660325432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321103164,"filename":"image_18032025_19_03_42_5851.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9240a6035baaaa95a9b660ba59559cff.jpg","text":"TemporaryFile(/tmp/multipartBody7237163880282759655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321103164,"filename":"image_18032025_19_03_47_5850.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a3bb1193e47edc0282884b2de402eb58.jpg","text":"TemporaryFile(/tmp/multipartBody1289103396949607554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321103164,"filename":"image_18032025_19_03_23_5791.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ca253156cf42f28be2684758929b7a1.jpg","text":"TemporaryFile(/tmp/multipartBody7129764352454050069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321103164,"filename":"image_18032025_19_03_29_5835.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345204348","file1":"1345204306","file0":"1345204255","file4":"1345204401","file5":"1345204446","file3":"1345204378"},"map_files_photo_id_array":[{"photo_id":"1345204446","filename":"file5"},{"photo_id":"1345204348","filename":"file2"},{"photo_id":"1345204401","filename":"file4"},{"photo_id":"1345204306","filename":"file1"},{"photo_id":"1345204255","filename":"file0"},{"photo_id":"1345204378","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345204255":["hashtag1","hashtag2"]},{"1345204378":["hashtag1","hashtag2"]},{"1345204348":["hashtag1","hashtag2"]},{"1345204306":["hashtag1","hashtag2"]},{"1345204446":["hashtag1","hashtag2"]},{"1345204401":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345204255, 1345204378, 1345204348, 1345204306, 1345204446, 1345204401)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.551957607269287 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:05:02.395814
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_54_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_48_6843.jpg', 2), ('/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_41_5863.jpg', 2), ('/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_35_5885.jpg', 2), ('/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_29_6139.jpg', 2), ('/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_23_6146.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_54_5870.jpg', '/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_48_6843.jpg', '/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_41_5863.jpg', '/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_35_5885.jpg', '/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_29_6139.jpg', '/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_23_6146.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_54_5870.jpg
/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_48_6843.jpg
/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_41_5863.jpg
/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_35_5885.jpg
/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_29_6139.jpg
/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_23_6146.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345204913","1345205047","1345205005","1345204857","1345204952","1345204802"],"photo_ids_order":["1345204802","1345204857","1345204913","1345204952","1345205005","1345205047"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2cb2882f780ffffcee64af8a84ae1911.jpg","text":"TemporaryFile(/tmp/multipartBody931753157528147240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321162815,"filename":"image_18032025_19_04_41_5863.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9a391ea9cd94b6d359759e4d1e742524.jpg","text":"TemporaryFile(/tmp/multipartBody7459896214576518344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321162815,"filename":"image_18032025_19_04_23_6146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/05691b69723e32bf0cc41fdeb0be2c99.jpg","text":"TemporaryFile(/tmp/multipartBody2271274976353048179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321162815,"filename":"image_18032025_19_04_29_6139.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e6eea03041219b691e89f5220ecbbd4.jpg","text":"TemporaryFile(/tmp/multipartBody5631301451381701257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321162815,"filename":"image_18032025_19_04_48_6843.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/acafe58ee62cce4b568dc2684a58f885.jpg","text":"TemporaryFile(/tmp/multipartBody3140488295503754300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321162815,"filename":"image_18032025_19_04_35_5885.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/67d7876bce3d1d0a24a5add3b3f534fe.jpg","text":"TemporaryFile(/tmp/multipartBody76035614769735563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321162815,"filename":"image_18032025_19_04_54_5870.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345204913","file1":"1345204857","file0":"1345204802","file4":"1345205005","file5":"1345205047","file3":"1345204952"},"map_files_photo_id_array":[{"photo_id":"1345205047","filename":"file5"},{"photo_id":"1345204913","filename":"file2"},{"photo_id":"1345205005","filename":"file4"},{"photo_id":"1345204857","filename":"file1"},{"photo_id":"1345204802","filename":"file0"},{"photo_id":"1345204952","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345204913":["hashtag1","hashtag2"]},{"1345205047":["hashtag1","hashtag2"]},{"1345205005":["hashtag1","hashtag2"]},{"1345204857":["hashtag1","hashtag2"]},{"1345204952":["hashtag1","hashtag2"]},{"1345204802":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345204913, 1345205047, 1345205005, 1345204857, 1345204952, 1345204802)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.484440803527832 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:06:02.720138
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_48_6809.jpg', 2), ('/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_41_5853.jpg', 2), ('/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_35_5831.jpg', 2), ('/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_29_5921.jpg', 2), ('/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_23_5871.jpg', 2), ('/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_17_6155.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_48_6809.jpg', '/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_41_5853.jpg', '/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_35_5831.jpg', '/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_29_5921.jpg', '/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_23_5871.jpg', '/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_17_6155.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_48_6809.jpg
/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_41_5853.jpg
/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_35_5831.jpg
/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_29_5921.jpg
/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_23_5871.jpg
/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_17_6155.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345205569","1345205701","1345205763","1345205631","1345205540","1345205741"],"photo_ids_order":["1345205540","1345205569","1345205631","1345205701","1345205741","1345205763"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c354f6ce8625d198a139b19da74daa57.jpg","text":"TemporaryFile(/tmp/multipartBody3571259901408057072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321223287,"filename":"image_18032025_19_05_41_5853.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27a3dbc444c56a33ba5b50136e4d8393.jpg","text":"TemporaryFile(/tmp/multipartBody5470551948431465412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321223287,"filename":"image_18032025_19_05_29_5921.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12c3f63f168e971bed8bd85022f5fa0b.jpg","text":"TemporaryFile(/tmp/multipartBody6912966157303255180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321223287,"filename":"image_18032025_19_05_17_6155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a634164c5f221d1dea69f33dcca34e24.jpg","text":"TemporaryFile(/tmp/multipartBody5681639906811335798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321223287,"filename":"image_18032025_19_05_35_5831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a4c83f76a4daabf92b651602d3d026b.jpg","text":"TemporaryFile(/tmp/multipartBody5594963392106814594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321223287,"filename":"image_18032025_19_05_48_6809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f624ec0e4367722b2930d1a91e27d023.jpg","text":"TemporaryFile(/tmp/multipartBody2571666070028055791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321223287,"filename":"image_18032025_19_05_23_5871.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345205631","file1":"1345205569","file0":"1345205540","file4":"1345205741","file5":"1345205763","file3":"1345205701"},"map_files_photo_id_array":[{"photo_id":"1345205763","filename":"file5"},{"photo_id":"1345205631","filename":"file2"},{"photo_id":"1345205741","filename":"file4"},{"photo_id":"1345205569","filename":"file1"},{"photo_id":"1345205540","filename":"file0"},{"photo_id":"1345205701","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345205569":["hashtag1","hashtag2"]},{"1345205701":["hashtag1","hashtag2"]},{"1345205763":["hashtag1","hashtag2"]},{"1345205631":["hashtag1","hashtag2"]},{"1345205540":["hashtag1","hashtag2"]},{"1345205741":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345205569, 1345205701, 1345205763, 1345205631, 1345205540, 1345205741)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.29214358329773 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:07:02.812566
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_53_5831.jpg', 2), ('/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_47_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_41_6138.jpg', 2), ('/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_35_5833.jpg', 2), ('/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_29_5917.jpg', 2), ('/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_23_5883.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_53_5831.jpg', '/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_47_6123.jpg', '/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_41_6138.jpg', '/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_35_5833.jpg', '/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_29_5917.jpg', '/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_23_5883.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_53_5831.jpg
/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_47_6123.jpg
/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_41_6138.jpg
/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_35_5833.jpg
/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_29_5917.jpg
/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_23_5883.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345206456","1345206500","1345206397","1345206565","1345206529","1345206322"],"photo_ids_order":["1345206322","1345206397","1345206456","1345206500","1345206529","1345206565"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7c8a900663066447165f881aee50b924.jpg","text":"TemporaryFile(/tmp/multipartBody8147048292939975224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321283392,"filename":"image_18032025_19_06_41_6138.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e2a7c5f8c52054f2d2ac191a674993f9.jpg","text":"TemporaryFile(/tmp/multipartBody1912520584647793766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321283392,"filename":"image_18032025_19_06_35_5833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/307b38081ac7c99ff1da6ef1000479ad.jpg","text":"TemporaryFile(/tmp/multipartBody6901013382414761814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321283392,"filename":"image_18032025_19_06_47_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/685b8ca0847a73d24fdc1a4c0f030586.jpg","text":"TemporaryFile(/tmp/multipartBody4400079382663999295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321283392,"filename":"image_18032025_19_06_23_5883.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d9b7b9d8a160bf185bc1fc14e5b76641.jpg","text":"TemporaryFile(/tmp/multipartBody1342058153732198378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321283392,"filename":"image_18032025_19_06_29_5917.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/de6cbe89b902ab1f33f7d371cd749198.jpg","text":"TemporaryFile(/tmp/multipartBody3291432999712584067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321283392,"filename":"image_18032025_19_06_53_5831.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345206456","file1":"1345206397","file0":"1345206322","file4":"1345206529","file5":"1345206565","file3":"1345206500"},"map_files_photo_id_array":[{"photo_id":"1345206565","filename":"file5"},{"photo_id":"1345206456","filename":"file2"},{"photo_id":"1345206529","filename":"file4"},{"photo_id":"1345206397","filename":"file1"},{"photo_id":"1345206322","filename":"file0"},{"photo_id":"1345206500","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345206456":["hashtag1","hashtag2"]},{"1345206500":["hashtag1","hashtag2"]},{"1345206397":["hashtag1","hashtag2"]},{"1345206565":["hashtag1","hashtag2"]},{"1345206529":["hashtag1","hashtag2"]},{"1345206322":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345206456, 1345206500, 1345206397, 1345206565, 1345206529, 1345206322)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.614264249801636 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:08:03.004174
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_29_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_24_6658.jpg', 2), ('/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_17_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_11_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_06_6723.jpg', 2), ('/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_59_5821.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_29_5627.jpg', '/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_24_6658.jpg', '/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_17_5613.jpg', '/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_11_5643.jpg', '/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_06_6723.jpg', '/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_59_5821.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_29_5627.jpg
/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_24_6658.jpg
/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_17_5613.jpg
/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_11_5643.jpg
/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_06_6723.jpg
/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_59_5821.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345206796","1345206799","1345206790","1345206793","1345206742","1345206802"],"photo_ids_order":["1345206742","1345206790","1345206793","1345206796","1345206799","1345206802"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1b20f955943e25939cd17b36bd5e5ac3.jpg","text":"TemporaryFile(/tmp/multipartBody7222460034237170740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321343365,"filename":"image_18032025_19_07_11_5643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1cc5e6d545faaa7328c5860630f8102f.jpg","text":"TemporaryFile(/tmp/multipartBody6201764793064955823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321343365,"filename":"image_18032025_19_07_06_6723.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eef19cdd86aba72f3cca2f6397d97795.jpg","text":"TemporaryFile(/tmp/multipartBody2618804184720161112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321343365,"filename":"image_18032025_19_07_24_6658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0bdf8fb7936aa1631805bb21b3277ba1.jpg","text":"TemporaryFile(/tmp/multipartBody6152323058434327893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321343365,"filename":"image_18032025_19_07_17_5613.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/899bc5d78f088dad2effbfd64bb316b2.jpg","text":"TemporaryFile(/tmp/multipartBody1227614939626327605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321343365,"filename":"image_18032025_19_07_29_5627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4078c87408bd05099100239434abd359.jpg","text":"TemporaryFile(/tmp/multipartBody4462390963786607676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321343365,"filename":"image_18032025_19_06_59_5821.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345206793","file1":"1345206790","file0":"1345206742","file4":"1345206799","file5":"1345206802","file3":"1345206796"},"map_files_photo_id_array":[{"photo_id":"1345206802","filename":"file5"},{"photo_id":"1345206793","filename":"file2"},{"photo_id":"1345206799","filename":"file4"},{"photo_id":"1345206790","filename":"file1"},{"photo_id":"1345206742","filename":"file0"},{"photo_id":"1345206796","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345206796":["hashtag1","hashtag2"]},{"1345206799":["hashtag1","hashtag2"]},{"1345206790":["hashtag1","hashtag2"]},{"1345206793":["hashtag1","hashtag2"]},{"1345206742":["hashtag1","hashtag2"]},{"1345206802":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345206796, 1345206799, 1345206790, 1345206793, 1345206742, 1345206802)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.467374324798584 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:09:03.355168
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_17_5794.jpg', 2), ('/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_12_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_06_6067.jpg', 2), ('/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_54_5861.jpg', 2), ('/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_11_5944.jpg', 2), ('/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_05_5923.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_17_5794.jpg', '/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_12_5843.jpg', '/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_06_6067.jpg', '/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_54_5861.jpg', '/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_11_5944.jpg', '/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_05_5923.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_17_5794.jpg
/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_12_5843.jpg
/home/nano/Desktop/images/18032025/19/06/image_18032025_19_06_06_6067.jpg
/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_54_5861.jpg
/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_11_5944.jpg
/home/nano/Desktop/images/18032025/19/05/image_18032025_19_05_05_5923.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345207236","1345207230","1345207220","1345207192","1345207225","1345207216"],"photo_ids_order":["1345207192","1345207216","1345207220","1345207225","1345207230","1345207236"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d98a80791ec1eed3334d822f611c8df1.jpg","text":"TemporaryFile(/tmp/multipartBody4593900399807823359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321403782,"filename":"image_18032025_19_05_05_5923.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1dd31f1d438c7ed73156670b34f2cc17.jpg","text":"TemporaryFile(/tmp/multipartBody6453212607869732533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321403782,"filename":"image_18032025_19_05_11_5944.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f04125cc03cbf0d0640800f047c61798.jpg","text":"TemporaryFile(/tmp/multipartBody6721332725908677318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321403782,"filename":"image_18032025_19_06_06_6067.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8fbcfe4adfb9e2baae26f49694201f1a.jpg","text":"TemporaryFile(/tmp/multipartBody6006402943581328826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321403782,"filename":"image_18032025_19_06_17_5794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8078b423b1438d034ae194c390e168bb.jpg","text":"TemporaryFile(/tmp/multipartBody5877243323115156660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321403782,"filename":"image_18032025_19_05_54_5861.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/693cc811c1091ee87b6782f9e254bcce.jpg","text":"TemporaryFile(/tmp/multipartBody8393521185450761910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321403782,"filename":"image_18032025_19_06_12_5843.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345207220","file1":"1345207216","file0":"1345207192","file4":"1345207230","file5":"1345207236","file3":"1345207225"},"map_files_photo_id_array":[{"photo_id":"1345207236","filename":"file5"},{"photo_id":"1345207220","filename":"file2"},{"photo_id":"1345207230","filename":"file4"},{"photo_id":"1345207216","filename":"file1"},{"photo_id":"1345207192","filename":"file0"},{"photo_id":"1345207225","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345207236":["hashtag1","hashtag2"]},{"1345207230":["hashtag1","hashtag2"]},{"1345207220":["hashtag1","hashtag2"]},{"1345207192":["hashtag1","hashtag2"]},{"1345207225":["hashtag1","hashtag2"]},{"1345207216":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345207236, 1345207230, 1345207220, 1345207192, 1345207225, 1345207216)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.89675760269165 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:10:02.243490
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_59_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_17_5116.jpg', 2), ('/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_12_5895.jpg', 2), ('/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_06_6793.jpg', 2), ('/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_59_5843.jpg', 2), ('/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_17_6133.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_59_5869.jpg', '/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_17_5116.jpg', '/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_12_5895.jpg', '/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_06_6793.jpg', '/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_59_5843.jpg', '/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_17_6133.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_59_5869.jpg
/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_17_5116.jpg
/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_12_5895.jpg
/home/nano/Desktop/images/18032025/19/04/image_18032025_19_04_06_6793.jpg
/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_59_5843.jpg
/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_17_6133.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345207356","1345207302","1345207319","1345207348","1345207299","1345207353"],"photo_ids_order":["1345207299","1345207302","1345207319","1345207348","1345207353","1345207356"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1dfd264823448e48824be62782b2ff1b.jpg","text":"TemporaryFile(/tmp/multipartBody5075070436516600215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321462670,"filename":"image_18032025_19_03_17_6133.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3ad9577cdfef40b09132b5e3eb2fe6e2.jpg","text":"TemporaryFile(/tmp/multipartBody4922899750987488652asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321462670,"filename":"image_18032025_19_04_17_5116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/86146892b302305c58a6511f122a3b94.jpg","text":"TemporaryFile(/tmp/multipartBody2979189997281575241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321462670,"filename":"image_18032025_19_04_12_5895.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/823d8784251f3511db39a56b93f3abf1.jpg","text":"TemporaryFile(/tmp/multipartBody5990656060968346655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321462670,"filename":"image_18032025_19_04_06_6793.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4e4451606000281ab98dd7e434a3865.jpg","text":"TemporaryFile(/tmp/multipartBody6399175709528834877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321462670,"filename":"image_18032025_19_04_59_5869.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fbac29301232d805d40ac5fb09a7c4de.jpg","text":"TemporaryFile(/tmp/multipartBody3611987125128370840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321462670,"filename":"image_18032025_19_03_59_5843.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345207319","file1":"1345207302","file0":"1345207299","file4":"1345207353","file5":"1345207356","file3":"1345207348"},"map_files_photo_id_array":[{"photo_id":"1345207356","filename":"file5"},{"photo_id":"1345207319","filename":"file2"},{"photo_id":"1345207353","filename":"file4"},{"photo_id":"1345207302","filename":"file1"},{"photo_id":"1345207299","filename":"file0"},{"photo_id":"1345207348","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345207356":["hashtag1","hashtag2"]},{"1345207302":["hashtag1","hashtag2"]},{"1345207319":["hashtag1","hashtag2"]},{"1345207348":["hashtag1","hashtag2"]},{"1345207299":["hashtag1","hashtag2"]},{"1345207353":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345207356, 1345207302, 1345207319, 1345207348, 1345207299, 1345207353)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.40075159072876 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:11:02.299515
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_11_6051.jpg', 2), ('/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_05_5997.jpg', 2), ('/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_59_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_12_6148.jpg', 2), ('/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_05_5963.jpg', 2), ('/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_59_6148.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_11_6051.jpg', '/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_05_5997.jpg', '/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_59_6117.jpg', '/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_12_6148.jpg', '/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_05_5963.jpg', '/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_59_6148.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_11_6051.jpg
/home/nano/Desktop/images/18032025/19/03/image_18032025_19_03_05_5997.jpg
/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_59_6117.jpg
/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_12_6148.jpg
/home/nano/Desktop/images/18032025/19/02/image_18032025_19_02_05_5963.jpg
/home/nano/Desktop/images/18032025/19/01/image_18032025_19_01_59_6148.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345207568","1345207565","1345207538","1345207511","1345207607","1345207576"],"photo_ids_order":["1345207511","1345207538","1345207565","1345207568","1345207576","1345207607"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/81abc88ee8542167a198e0b0596b7138.jpg","text":"TemporaryFile(/tmp/multipartBody99830838857181271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321522779,"filename":"image_18032025_19_02_12_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e06ca3048285450e8bedcc02bafbef88.jpg","text":"TemporaryFile(/tmp/multipartBody7768746059423427567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321522779,"filename":"image_18032025_19_02_59_6117.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b61e76fe7d58117d8f335ffd9c780e4a.jpg","text":"TemporaryFile(/tmp/multipartBody4423949139982310177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321522779,"filename":"image_18032025_19_03_05_5997.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bf0b2f8538b4a71c74d31aa29ef9fed6.jpg","text":"TemporaryFile(/tmp/multipartBody3554612846524843112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321522779,"filename":"image_18032025_19_03_11_6051.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1edfadef87cf4abc079e88c83b7b9832.jpg","text":"TemporaryFile(/tmp/multipartBody3579275901446479491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321522779,"filename":"image_18032025_19_01_59_6148.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1600774f3e9fdc45b97019f547b8174a.jpg","text":"TemporaryFile(/tmp/multipartBody1571669868148979940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321522779,"filename":"image_18032025_19_02_05_5963.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345207565","file1":"1345207538","file0":"1345207511","file4":"1345207576","file5":"1345207607","file3":"1345207568"},"map_files_photo_id_array":[{"photo_id":"1345207607","filename":"file5"},{"photo_id":"1345207565","filename":"file2"},{"photo_id":"1345207576","filename":"file4"},{"photo_id":"1345207538","filename":"file1"},{"photo_id":"1345207511","filename":"file0"},{"photo_id":"1345207568","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345207568":["hashtag1","hashtag2"]},{"1345207565":["hashtag1","hashtag2"]},{"1345207538":["hashtag1","hashtag2"]},{"1345207511":["hashtag1","hashtag2"]},{"1345207607":["hashtag1","hashtag2"]},{"1345207576":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345207568, 1345207565, 1345207538, 1345207511, 1345207607, 1345207576)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.84610605239868 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:12:02.562946
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/11/image_18032025_19_11_05_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_59_5194.jpg', 2), ('/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_54_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_48_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_41_6004.jpg', 2), ('/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_35_6159.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/11/image_18032025_19_11_05_5654.jpg', '/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_59_5194.jpg', '/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_54_6128.jpg', '/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_48_6089.jpg', '/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_41_6004.jpg', '/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_35_6159.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/11/image_18032025_19_11_05_5654.jpg
/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_59_5194.jpg
/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_54_6128.jpg
/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_48_6089.jpg
/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_41_6004.jpg
/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_35_6159.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345207760","1345207757","1345207762","1345207765","1345207755","1345207737"],"photo_ids_order":["1345207737","1345207755","1345207757","1345207760","1345207762","1345207765"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f559797fcba9c3bc3d83cca8b8aa5627.jpg","text":"TemporaryFile(/tmp/multipartBody8481516585537585773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321583143,"filename":"image_18032025_18_58_48_6089.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ed476db5e0964b7eafec6256951d1aaf.jpg","text":"TemporaryFile(/tmp/multipartBody8658952150480502870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321583143,"filename":"image_18032025_18_58_54_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be5180fd29e9e7a7598d34e4dc1567af.jpg","text":"TemporaryFile(/tmp/multipartBody6888228816266055657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321583143,"filename":"image_18032025_18_58_41_6004.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6e0261a41432103351f9d4f933d1ea92.jpg","text":"TemporaryFile(/tmp/multipartBody3687973557556791801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321583143,"filename":"image_18032025_18_58_35_6159.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a1372b2254fd7fa2b30b340f1fcbc1fb.jpg","text":"TemporaryFile(/tmp/multipartBody224445083508856198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321583143,"filename":"image_18032025_18_58_59_5194.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7f38a85184ef767cada2655fbec921f9.jpg","text":"TemporaryFile(/tmp/multipartBody343024873946635221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321583143,"filename":"image_18032025_19_11_05_5654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345207757","file1":"1345207755","file0":"1345207737","file4":"1345207762","file5":"1345207765","file3":"1345207760"},"map_files_photo_id_array":[{"photo_id":"1345207765","filename":"file5"},{"photo_id":"1345207757","filename":"file2"},{"photo_id":"1345207762","filename":"file4"},{"photo_id":"1345207755","filename":"file1"},{"photo_id":"1345207737","filename":"file0"},{"photo_id":"1345207760","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345207760":["hashtag1","hashtag2"]},{"1345207757":["hashtag1","hashtag2"]},{"1345207762":["hashtag1","hashtag2"]},{"1345207765":["hashtag1","hashtag2"]},{"1345207755":["hashtag1","hashtag2"]},{"1345207737":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345207760, 1345207757, 1345207762, 1345207765, 1345207755, 1345207737)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.399785041809082 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:13:02.596067
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_29_6163.jpg', 2), ('/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_23_6076.jpg', 2), ('/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_17_6166.jpg', 2), ('/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_11_5205.jpg', 2), ('/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_06_6023.jpg', 2), ('/home/nano/Desktop/images/18032025/18/57/image_18032025_18_58_00_6190.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_29_6163.jpg', '/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_23_6076.jpg', '/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_17_6166.jpg', '/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_11_5205.jpg', '/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_06_6023.jpg', '/home/nano/Desktop/images/18032025/18/57/image_18032025_18_58_00_6190.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_29_6163.jpg
/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_23_6076.jpg
/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_17_6166.jpg
/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_11_5205.jpg
/home/nano/Desktop/images/18032025/18/58/image_18032025_18_58_06_6023.jpg
/home/nano/Desktop/images/18032025/18/57/image_18032025_18_58_00_6190.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345207833","1345207829","1345207825","1345207837","1345207822","1345207819"],"photo_ids_order":["1345207819","1345207822","1345207825","1345207829","1345207833","1345207837"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/967e44453d5dcb4f06e688f24a87ab52.jpg","text":"TemporaryFile(/tmp/multipartBody3796094927058012618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321643093,"filename":"image_18032025_18_58_06_6023.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12d53fd191246341eabd38ad5419b6ec.jpg","text":"TemporaryFile(/tmp/multipartBody8602563589851135785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321643093,"filename":"image_18032025_18_58_11_5205.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a61773e0fe60aec7f6737e71b5697bb.jpg","text":"TemporaryFile(/tmp/multipartBody3129607224132236947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321643093,"filename":"image_18032025_18_58_17_6166.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e7f3e34ea663119539adfe1daa5036f5.jpg","text":"TemporaryFile(/tmp/multipartBody4148494542774242728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321643093,"filename":"image_18032025_18_58_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/3/18/f20817574e012941db607e8d720a1704.jpg","text":"TemporaryFile(/tmp/multipartBody413600059111952733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321643093,"filename":"image_18032025_18_58_23_6076.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cbff5bf80fa49a85091ea93506ff8bf0.jpg","text":"TemporaryFile(/tmp/multipartBody8382802946971194237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321643093,"filename":"image_18032025_18_58_29_6163.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345207825","file1":"1345207822","file0":"1345207819","file4":"1345207833","file5":"1345207837","file3":"1345207829"},"map_files_photo_id_array":[{"photo_id":"1345207837","filename":"file5"},{"photo_id":"1345207825","filename":"file2"},{"photo_id":"1345207833","filename":"file4"},{"photo_id":"1345207822","filename":"file1"},{"photo_id":"1345207819","filename":"file0"},{"photo_id":"1345207829","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345207833":["hashtag1","hashtag2"]},{"1345207829":["hashtag1","hashtag2"]},{"1345207825":["hashtag1","hashtag2"]},{"1345207837":["hashtag1","hashtag2"]},{"1345207822":["hashtag1","hashtag2"]},{"1345207819":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345207833, 1345207829, 1345207825, 1345207837, 1345207822, 1345207819)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.64338445663452 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:14:02.868483
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_41_6112.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_29_6027.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_23_6036.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_17_6084.jpg', 2), ('/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_05_5127.jpg', 2), ('/home/nano/Desktop/images/18032025/18/54/image_18032025_18_55_00_6126.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_41_6112.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_29_6027.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_23_6036.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_17_6084.jpg', '/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_05_5127.jpg', '/home/nano/Desktop/images/18032025/18/54/image_18032025_18_55_00_6126.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_41_6112.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_29_6027.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_23_6036.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_17_6084.jpg
/home/nano/Desktop/images/18032025/18/55/image_18032025_18_55_05_5127.jpg
/home/nano/Desktop/images/18032025/18/54/image_18032025_18_55_00_6126.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345207871","1345207861","1345207864","1345207867","1345207875","1345207857"],"photo_ids_order":["1345207857","1345207861","1345207864","1345207867","1345207871","1345207875"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bb577c390f529bcf50ed03d6f607eb1a.jpg","text":"TemporaryFile(/tmp/multipartBody34325707877763940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321703356,"filename":"image_18032025_18_55_05_5127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be278aa2ebec8539fc14de6e316cb8c8.jpg","text":"TemporaryFile(/tmp/multipartBody8505233031760221999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321703356,"filename":"image_18032025_18_55_29_6027.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fcd52bb9eb0448588fbc69ee13ff338d.jpg","text":"TemporaryFile(/tmp/multipartBody3278904891987299656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321703356,"filename":"image_18032025_18_55_23_6036.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4bb6a9574ac48dc38db4ae13fc6340d6.jpg","text":"TemporaryFile(/tmp/multipartBody8651534578871471030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321703356,"filename":"image_18032025_18_55_17_6084.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/018fc95255b8dbca14ae2740d4e5ae49.jpg","text":"TemporaryFile(/tmp/multipartBody8130093249813735516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321703356,"filename":"image_18032025_18_55_00_6126.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0f17a721c4306fc1593aa3108dadf685.jpg","text":"TemporaryFile(/tmp/multipartBody9011953840122403132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321703356,"filename":"image_18032025_18_55_41_6112.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345207864","file1":"1345207861","file0":"1345207857","file4":"1345207871","file5":"1345207875","file3":"1345207867"},"map_files_photo_id_array":[{"photo_id":"1345207875","filename":"file5"},{"photo_id":"1345207864","filename":"file2"},{"photo_id":"1345207871","filename":"file4"},{"photo_id":"1345207861","filename":"file1"},{"photo_id":"1345207857","filename":"file0"},{"photo_id":"1345207867","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345207871":["hashtag1","hashtag2"]},{"1345207861":["hashtag1","hashtag2"]},{"1345207864":["hashtag1","hashtag2"]},{"1345207867":["hashtag1","hashtag2"]},{"1345207875":["hashtag1","hashtag2"]},{"1345207857":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345207871, 1345207861, 1345207864, 1345207867, 1345207875, 1345207857)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.33972477912903 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:15:02.804450
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_11_6234.jpg', 2), ('/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_05_5212.jpg', 2), ('/home/nano/Desktop/images/18032025/18/53/image_18032025_18_53_47_6208.jpg', 2), ('/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_05_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_59_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_18_6748.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_11_6234.jpg', '/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_05_5212.jpg', '/home/nano/Desktop/images/18032025/18/53/image_18032025_18_53_47_6208.jpg', '/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_05_5790.jpg', '/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_59_5781.jpg', '/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_18_6748.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_11_6234.jpg
/home/nano/Desktop/images/18032025/18/54/image_18032025_18_54_05_5212.jpg
/home/nano/Desktop/images/18032025/18/53/image_18032025_18_53_47_6208.jpg
/home/nano/Desktop/images/18032025/18/48/image_18032025_18_48_05_5790.jpg
/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_59_5781.jpg
/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_18_6748.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345207925","1345207919","1345207912","1345207906","1345207915","1345207903"],"photo_ids_order":["1345207903","1345207906","1345207912","1345207915","1345207919","1345207925"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fa10b1ec40e47c970a88d1279590fc0d.jpg","text":"TemporaryFile(/tmp/multipartBody1136039688455219333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321763230,"filename":"image_18032025_18_47_18_6748.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a1208825b2b1f5aed9c0cc5163381f8b.jpg","text":"TemporaryFile(/tmp/multipartBody3950718555168610518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321763230,"filename":"image_18032025_18_47_59_5781.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/44f72b4b7d2b29854cf98e4f2da805b6.jpg","text":"TemporaryFile(/tmp/multipartBody2698754720844786012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321763230,"filename":"image_18032025_18_53_47_6208.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95d7bbb86ca6af79ccf70c1b470d7618.jpg","text":"TemporaryFile(/tmp/multipartBody8465605036711717807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321763230,"filename":"image_18032025_18_54_05_5212.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f459ad6455312e0592b1be690d7d8bee.jpg","text":"TemporaryFile(/tmp/multipartBody678734319786618056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321763230,"filename":"image_18032025_18_48_05_5790.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf685f37cb00a93a81040acb9a80a8dc.jpg","text":"TemporaryFile(/tmp/multipartBody9010648110187283069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321763230,"filename":"image_18032025_18_54_11_6234.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345207912","file1":"1345207906","file0":"1345207903","file4":"1345207919","file5":"1345207925","file3":"1345207915"},"map_files_photo_id_array":[{"photo_id":"1345207925","filename":"file5"},{"photo_id":"1345207912","filename":"file2"},{"photo_id":"1345207919","filename":"file4"},{"photo_id":"1345207906","filename":"file1"},{"photo_id":"1345207903","filename":"file0"},{"photo_id":"1345207915","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345207925":["hashtag1","hashtag2"]},{"1345207919":["hashtag1","hashtag2"]},{"1345207912":["hashtag1","hashtag2"]},{"1345207906":["hashtag1","hashtag2"]},{"1345207915":["hashtag1","hashtag2"]},{"1345207903":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345207925, 1345207919, 1345207912, 1345207906, 1345207915, 1345207903)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.324530839920044 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:16:02.860876
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_11_5715.jpg', 2), ('/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_05_5684.jpg', 2), ('/home/nano/Desktop/images/18032025/18/46/image_18032025_18_47_00_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_17_5670.jpg', 2), ('/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_11_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_06_6640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_11_5715.jpg', '/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_05_5684.jpg', '/home/nano/Desktop/images/18032025/18/46/image_18032025_18_47_00_6650.jpg', '/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_17_5670.jpg', '/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_11_5668.jpg', '/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_06_6640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_11_5715.jpg
/home/nano/Desktop/images/18032025/18/47/image_18032025_18_47_05_5684.jpg
/home/nano/Desktop/images/18032025/18/46/image_18032025_18_47_00_6650.jpg
/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_17_5670.jpg
/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_11_5668.jpg
/home/nano/Desktop/images/18032025/18/46/image_18032025_18_46_06_6640.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345208078","1345208066","1345208060","1345208074","1345208070","1345208034"],"photo_ids_order":["1345208034","1345208060","1345208066","1345208070","1345208074","1345208078"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/04f9ce3e28bfe771191e5d0ebb9072af.jpg","text":"TemporaryFile(/tmp/multipartBody4394975940011869297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321823168,"filename":"image_18032025_18_46_06_6640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/51fa18b93a9484694c37f6c1b8e7e5aa.jpg","text":"TemporaryFile(/tmp/multipartBody1534874935078360017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321823168,"filename":"image_18032025_18_47_00_6650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f117814b301204542431adbde479b070.jpg","text":"TemporaryFile(/tmp/multipartBody7105286129999012181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321823168,"filename":"image_18032025_18_47_05_5684.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a47e5b91e8b05f9d480d162c85cd2ab0.jpg","text":"TemporaryFile(/tmp/multipartBody1521179636990436541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321823168,"filename":"image_18032025_18_46_11_5668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/54ae7bc565b2f33c31358c8178866d30.jpg","text":"TemporaryFile(/tmp/multipartBody8902692181619834360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321823168,"filename":"image_18032025_18_46_17_5670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12a38fe905e31b8e9bff09351ec287ce.jpg","text":"TemporaryFile(/tmp/multipartBody7508149441279271147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321823168,"filename":"image_18032025_18_47_11_5715.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345208066","file1":"1345208060","file0":"1345208034","file4":"1345208074","file5":"1345208078","file3":"1345208070"},"map_files_photo_id_array":[{"photo_id":"1345208078","filename":"file5"},{"photo_id":"1345208066","filename":"file2"},{"photo_id":"1345208074","filename":"file4"},{"photo_id":"1345208060","filename":"file1"},{"photo_id":"1345208034","filename":"file0"},{"photo_id":"1345208070","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345208078":["hashtag1","hashtag2"]},{"1345208066":["hashtag1","hashtag2"]},{"1345208060":["hashtag1","hashtag2"]},{"1345208074":["hashtag1","hashtag2"]},{"1345208070":["hashtag1","hashtag2"]},{"1345208034":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345208078, 1345208066, 1345208060, 1345208074, 1345208070, 1345208034)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.877164363861084 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:17:03.071191
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/17/image_18032025_19_17_05_5655.jpg', 2), ('/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_59_5698.jpg', 2), ('/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_18_6620.jpg', 2), ('/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_11_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_05_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/18/44/image_18032025_18_45_00_6648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/17/image_18032025_19_17_05_5655.jpg', '/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_59_5698.jpg', '/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_18_6620.jpg', '/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_11_5652.jpg', '/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_05_5645.jpg', '/home/nano/Desktop/images/18032025/18/44/image_18032025_18_45_00_6648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/17/image_18032025_19_17_05_5655.jpg
/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_59_5698.jpg
/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_18_6620.jpg
/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_11_5652.jpg
/home/nano/Desktop/images/18032025/18/45/image_18032025_18_45_05_5645.jpg
/home/nano/Desktop/images/18032025/18/44/image_18032025_18_45_00_6648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345208111","1345208114","1345208107","1345208097","1345208100","1345208103"],"photo_ids_order":["1345208097","1345208100","1345208103","1345208107","1345208111","1345208114"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6fecf58b151c0947ecb21c1ed083ce50.jpg","text":"TemporaryFile(/tmp/multipartBody3299212400051106382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321883402,"filename":"image_18032025_18_45_05_5645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/30aef3744293c869a35bdf94ab387c08.jpg","text":"TemporaryFile(/tmp/multipartBody4664911654366856735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321883402,"filename":"image_18032025_18_45_00_6648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce0ef62bc68a44e76a3a98dae03962d2.jpg","text":"TemporaryFile(/tmp/multipartBody9173501124661528661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321883402,"filename":"image_18032025_18_45_11_5652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd1356975319d51ca4dda0995e40216d.jpg","text":"TemporaryFile(/tmp/multipartBody2949390420636484508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321883402,"filename":"image_18032025_19_17_05_5655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c537c053d46a88658e2a1682d8cc26cf.jpg","text":"TemporaryFile(/tmp/multipartBody7231747149204345104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321883402,"filename":"image_18032025_18_45_59_5698.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/17680faeb93023f9b90f9f55cb7e2b97.jpg","text":"TemporaryFile(/tmp/multipartBody3537771019402948938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321883402,"filename":"image_18032025_18_45_18_6620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345208103","file1":"1345208100","file0":"1345208097","file4":"1345208111","file5":"1345208114","file3":"1345208107"},"map_files_photo_id_array":[{"photo_id":"1345208114","filename":"file5"},{"photo_id":"1345208103","filename":"file2"},{"photo_id":"1345208111","filename":"file4"},{"photo_id":"1345208100","filename":"file1"},{"photo_id":"1345208097","filename":"file0"},{"photo_id":"1345208107","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345208111":["hashtag1","hashtag2"]},{"1345208114":["hashtag1","hashtag2"]},{"1345208107":["hashtag1","hashtag2"]},{"1345208097":["hashtag1","hashtag2"]},{"1345208100":["hashtag1","hashtag2"]},{"1345208103":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345208111, 1345208114, 1345208107, 1345208097, 1345208100, 1345208103)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.78528928756714 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:18:03.171404
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_36_6629.jpg', 2), ('/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_17_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_11_5824.jpg', 2), ('/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_05_5814.jpg', 2), ('/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_59_5886.jpg', 2), ('/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_17_5741.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_36_6629.jpg', '/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_17_5838.jpg', '/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_11_5824.jpg', '/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_05_5814.jpg', '/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_59_5886.jpg', '/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_17_5741.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/07/image_18032025_19_07_36_6629.jpg
/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_17_5838.jpg
/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_11_5824.jpg
/home/nano/Desktop/images/18032025/18/44/image_18032025_18_44_05_5814.jpg
/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_59_5886.jpg
/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_17_5741.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345208144","1345208147","1345208152","1345208140","1345208133","1345208136"],"photo_ids_order":["1345208133","1345208136","1345208140","1345208144","1345208147","1345208152"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63aaaf83b03b617f7b6b346e73b3306d.jpg","text":"TemporaryFile(/tmp/multipartBody198919111818466000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321943548,"filename":"image_18032025_18_44_05_5814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b7d9957fb0d9b861446d0b9cf67c1e48.jpg","text":"TemporaryFile(/tmp/multipartBody2682345229923583733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321943548,"filename":"image_18032025_18_43_59_5886.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fd76d9122a5ba4bc32a40bb3c2bcdb0f.jpg","text":"TemporaryFile(/tmp/multipartBody6607785873463716953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321943548,"filename":"image_18032025_18_43_17_5741.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f49f3525cd4c5abd249dda0bdd4917d.jpg","text":"TemporaryFile(/tmp/multipartBody4305718274872673670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321943548,"filename":"image_18032025_18_44_11_5824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ab71f215624dca8f49d628d3f8a69bd5.jpg","text":"TemporaryFile(/tmp/multipartBody3319365780261779614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321943548,"filename":"image_18032025_19_07_36_6629.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/912679d57cc0bf36d16970a6d4d13d6e.jpg","text":"TemporaryFile(/tmp/multipartBody752557341439835449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742321943548,"filename":"image_18032025_18_44_17_5838.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345208140","file1":"1345208136","file0":"1345208133","file4":"1345208147","file5":"1345208152","file3":"1345208144"},"map_files_photo_id_array":[{"photo_id":"1345208152","filename":"file5"},{"photo_id":"1345208140","filename":"file2"},{"photo_id":"1345208147","filename":"file4"},{"photo_id":"1345208136","filename":"file1"},{"photo_id":"1345208133","filename":"file0"},{"photo_id":"1345208144","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345208144":["hashtag1","hashtag2"]},{"1345208147":["hashtag1","hashtag2"]},{"1345208152":["hashtag1","hashtag2"]},{"1345208140":["hashtag1","hashtag2"]},{"1345208133":["hashtag1","hashtag2"]},{"1345208136":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345208144, 1345208147, 1345208152, 1345208140, 1345208133, 1345208136)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.983582496643066 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:19:02.632708
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_11_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_05_5753.jpg', 2), ('/home/nano/Desktop/images/18032025/18/42/image_18032025_18_43_00_5754.jpg', 2), ('/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_17_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_12_6702.jpg', 2), ('/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_05_5663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_11_5827.jpg', '/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_05_5753.jpg', '/home/nano/Desktop/images/18032025/18/42/image_18032025_18_43_00_5754.jpg', '/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_17_5665.jpg', '/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_12_6702.jpg', '/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_05_5663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_11_5827.jpg
/home/nano/Desktop/images/18032025/18/43/image_18032025_18_43_05_5753.jpg
/home/nano/Desktop/images/18032025/18/42/image_18032025_18_43_00_5754.jpg
/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_17_5665.jpg
/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_12_6702.jpg
/home/nano/Desktop/images/18032025/18/42/image_18032025_18_42_05_5663.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345208195","1345208180","1345208177","1345208185","1345208173","1345208190"],"photo_ids_order":["1345208173","1345208177","1345208180","1345208185","1345208190","1345208195"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e334a375ad859d64a5dcb20525e740bd.jpg","text":"TemporaryFile(/tmp/multipartBody4349027358796882087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322002966,"filename":"image_18032025_18_42_05_5663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8086e13ef55191bb36c0b38a546a857.jpg","text":"TemporaryFile(/tmp/multipartBody6262984351444673748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322002966,"filename":"image_18032025_18_43_00_5754.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/40a657c28af9d4a759f524e50cd33a10.jpg","text":"TemporaryFile(/tmp/multipartBody5336915293043149596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322002966,"filename":"image_18032025_18_43_05_5753.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/abd9438e0e1b9b60de57167b02697f7b.jpg","text":"TemporaryFile(/tmp/multipartBody2409772242471753994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322002966,"filename":"image_18032025_18_42_17_5665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cc18594379faa6d7747c4d8d9cf92df2.jpg","text":"TemporaryFile(/tmp/multipartBody2231191187468024708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322002966,"filename":"image_18032025_18_43_11_5827.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/407174af3ce9f1910dd87c5c3a7cb69d.jpg","text":"TemporaryFile(/tmp/multipartBody5092014779265919575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322002966,"filename":"image_18032025_18_42_12_6702.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345208180","file1":"1345208177","file0":"1345208173","file4":"1345208190","file5":"1345208195","file3":"1345208185"},"map_files_photo_id_array":[{"photo_id":"1345208195","filename":"file5"},{"photo_id":"1345208180","filename":"file2"},{"photo_id":"1345208190","filename":"file4"},{"photo_id":"1345208177","filename":"file1"},{"photo_id":"1345208173","filename":"file0"},{"photo_id":"1345208185","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345208195":["hashtag1","hashtag2"]},{"1345208180":["hashtag1","hashtag2"]},{"1345208177":["hashtag1","hashtag2"]},{"1345208185":["hashtag1","hashtag2"]},{"1345208173":["hashtag1","hashtag2"]},{"1345208190":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345208195, 1345208180, 1345208177, 1345208185, 1345208173, 1345208190)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.360644578933716 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:20:02.508789
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_59_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_18_6666.jpg', 2), ('/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_11_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_05_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/18/40/image_18032025_18_41_00_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_17_5657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_59_5652.jpg', '/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_18_6666.jpg', '/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_11_5643.jpg', '/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_05_5630.jpg', '/home/nano/Desktop/images/18032025/18/40/image_18032025_18_41_00_6639.jpg', '/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_17_5657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_59_5652.jpg
/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_18_6666.jpg
/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_11_5643.jpg
/home/nano/Desktop/images/18032025/18/41/image_18032025_18_41_05_5630.jpg
/home/nano/Desktop/images/18032025/18/40/image_18032025_18_41_00_6639.jpg
/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_17_5657.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345208246","1345208242","1345208236","1345208302","1345208239","1345208382"],"photo_ids_order":["1345208236","1345208239","1345208242","1345208246","1345208302","1345208382"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a585d197bccb540534da57bec825eda.jpg","text":"TemporaryFile(/tmp/multipartBody7285700290617454056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322062810,"filename":"image_18032025_18_41_05_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/015a36ac8bcdad90f14f559b7a6fa5df.jpg","text":"TemporaryFile(/tmp/multipartBody1603966162288482876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322062810,"filename":"image_18032025_18_41_11_5643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/962f5dfb31fc308dba45f5444d6c21ea.jpg","text":"TemporaryFile(/tmp/multipartBody5196164316900007349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322062810,"filename":"image_18032025_18_41_59_5652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/98fa69fb1c9fa341b21f1d4323c5b399.jpg","text":"TemporaryFile(/tmp/multipartBody1002876901756803490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322062810,"filename":"image_18032025_18_41_00_6639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9ca526346388392eb8a539eb0867efa.jpg","text":"TemporaryFile(/tmp/multipartBody8302117425747517121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322062810,"filename":"image_18032025_18_41_18_6666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d402800013cbd0e4d69b9cffbcb5a5e1.jpg","text":"TemporaryFile(/tmp/multipartBody76812121383411832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322062810,"filename":"image_18032025_18_40_17_5657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345208242","file1":"1345208239","file0":"1345208236","file4":"1345208302","file5":"1345208382","file3":"1345208246"},"map_files_photo_id_array":[{"photo_id":"1345208382","filename":"file5"},{"photo_id":"1345208242","filename":"file2"},{"photo_id":"1345208302","filename":"file4"},{"photo_id":"1345208239","filename":"file1"},{"photo_id":"1345208236","filename":"file0"},{"photo_id":"1345208246","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345208246":["hashtag1","hashtag2"]},{"1345208242":["hashtag1","hashtag2"]},{"1345208236":["hashtag1","hashtag2"]},{"1345208302":["hashtag1","hashtag2"]},{"1345208239":["hashtag1","hashtag2"]},{"1345208382":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345208246, 1345208242, 1345208236, 1345208302, 1345208239, 1345208382)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.922489404678345 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:21:02.476686
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_12_6645.jpg', 2), ('/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_05_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_59_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_11_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_06_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/18/38/image_18032025_18_39_00_5959.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_12_6645.jpg', '/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_05_5627.jpg', '/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_59_6624.jpg', '/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_11_5786.jpg', '/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_06_5789.jpg', '/home/nano/Desktop/images/18032025/18/38/image_18032025_18_39_00_5959.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_12_6645.jpg
/home/nano/Desktop/images/18032025/18/40/image_18032025_18_40_05_5627.jpg
/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_59_6624.jpg
/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_11_5786.jpg
/home/nano/Desktop/images/18032025/18/39/image_18032025_18_39_06_5789.jpg
/home/nano/Desktop/images/18032025/18/38/image_18032025_18_39_00_5959.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345208846","1345208708","1345208711","1345208705","1345208812","1345208733"],"photo_ids_order":["1345208705","1345208708","1345208711","1345208733","1345208812","1345208846"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e7f347d4da3eddecaef49fa04848a2c6.jpg","text":"TemporaryFile(/tmp/multipartBody3183174624855783760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322122807,"filename":"image_18032025_18_39_00_5959.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/302d931d8ca61731d109027c1ce09f57.jpg","text":"TemporaryFile(/tmp/multipartBody5279831688199565085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322122807,"filename":"image_18032025_18_40_05_5627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/706729af0118da1e2a4169af4f388149.jpg","text":"TemporaryFile(/tmp/multipartBody834691644450234241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322122807,"filename":"image_18032025_18_39_59_6624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9dea5a32141d4df8dd5d25bfef0cb85.jpg","text":"TemporaryFile(/tmp/multipartBody5864047392125591727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322122807,"filename":"image_18032025_18_40_12_6645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7fa47c884dddc07c4106150c55954f53.jpg","text":"TemporaryFile(/tmp/multipartBody1926834057353174113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322122807,"filename":"image_18032025_18_39_06_5789.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ababecd21b697c5bb85b4d55bbc3f7c7.jpg","text":"TemporaryFile(/tmp/multipartBody8995546425978126887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322122807,"filename":"image_18032025_18_39_11_5786.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345208711","file1":"1345208708","file0":"1345208705","file4":"1345208812","file5":"1345208846","file3":"1345208733"},"map_files_photo_id_array":[{"photo_id":"1345208846","filename":"file5"},{"photo_id":"1345208711","filename":"file2"},{"photo_id":"1345208812","filename":"file4"},{"photo_id":"1345208708","filename":"file1"},{"photo_id":"1345208705","filename":"file0"},{"photo_id":"1345208733","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345208846":["hashtag1","hashtag2"]},{"1345208708":["hashtag1","hashtag2"]},{"1345208711":["hashtag1","hashtag2"]},{"1345208705":["hashtag1","hashtag2"]},{"1345208812":["hashtag1","hashtag2"]},{"1345208733":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345208846, 1345208708, 1345208711, 1345208705, 1345208812, 1345208733)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.16831016540527 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:22:02.636013
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_17_5865.jpg', 2), ('/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_11_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_05_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/18/37/image_18032025_18_38_00_6753.jpg', 2), ('/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_11_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_05_6027.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_17_5865.jpg', '/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_11_5798.jpg', '/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_05_5776.jpg', '/home/nano/Desktop/images/18032025/18/37/image_18032025_18_38_00_6753.jpg', '/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_11_6007.jpg', '/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_05_6027.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_17_5865.jpg
/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_11_5798.jpg
/home/nano/Desktop/images/18032025/18/38/image_18032025_18_38_05_5776.jpg
/home/nano/Desktop/images/18032025/18/37/image_18032025_18_38_00_6753.jpg
/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_11_6007.jpg
/home/nano/Desktop/images/18032025/18/37/image_18032025_18_37_05_6027.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345208996","1345209058","1345209016","1345209019","1345209039","1345209053"],"photo_ids_order":["1345208996","1345209016","1345209019","1345209039","1345209053","1345209058"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dcec3e68468e3541f2b3744a7526fd80.jpg","text":"TemporaryFile(/tmp/multipartBody4725855199524602424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322183006,"filename":"image_18032025_18_38_17_5865.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3515b969b5a4bfe44f339e51b4c23000.jpg","text":"TemporaryFile(/tmp/multipartBody7843020057559316364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322183006,"filename":"image_18032025_18_37_05_6027.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4432e976ef6f13c050c9d24a835a3a38.jpg","text":"TemporaryFile(/tmp/multipartBody1427647148348896921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322183006,"filename":"image_18032025_18_38_11_5798.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a3f95f8012fc3a7d40be9d71d20025b0.jpg","text":"TemporaryFile(/tmp/multipartBody380892742118567581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322183006,"filename":"image_18032025_18_38_05_5776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a27b9b351455fba8274bf9b976274a0.jpg","text":"TemporaryFile(/tmp/multipartBody5498027690051652180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322183006,"filename":"image_18032025_18_38_00_6753.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e8a5630138b63e73c97e944045a3d109.jpg","text":"TemporaryFile(/tmp/multipartBody2362543457013547000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322183006,"filename":"image_18032025_18_37_11_6007.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209019","file1":"1345209016","file0":"1345208996","file4":"1345209053","file5":"1345209058","file3":"1345209039"},"map_files_photo_id_array":[{"photo_id":"1345209058","filename":"file5"},{"photo_id":"1345209019","filename":"file2"},{"photo_id":"1345209053","filename":"file4"},{"photo_id":"1345209016","filename":"file1"},{"photo_id":"1345208996","filename":"file0"},{"photo_id":"1345209039","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345208996":["hashtag1","hashtag2"]},{"1345209058":["hashtag1","hashtag2"]},{"1345209016":["hashtag1","hashtag2"]},{"1345209019":["hashtag1","hashtag2"]},{"1345209039":["hashtag1","hashtag2"]},{"1345209053":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345208996, 1345209058, 1345209016, 1345209019, 1345209039, 1345209053)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.26873183250427 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:23:02.792739
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_05_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_54_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_47_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_41_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_36_6658.jpg', 2), ('/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_29_5597.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_05_5625.jpg', '/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_54_6647.jpg', '/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_47_5654.jpg', '/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_41_5639.jpg', '/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_36_6658.jpg', '/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_29_5597.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_05_5625.jpg
/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_54_6647.jpg
/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_47_5654.jpg
/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_41_5639.jpg
/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_36_6658.jpg
/home/nano/Desktop/images/18032025/19/22/image_18032025_19_22_29_5597.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345209151","1345209145","1345209154","1345209148","1345209157","1345209159"],"photo_ids_order":["1345209145","1345209148","1345209151","1345209154","1345209157","1345209159"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6e93e0094f7111c6042a6e23232531d1.jpg","text":"TemporaryFile(/tmp/multipartBody3497219258875465531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322243074,"filename":"image_18032025_19_22_47_5654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a37c962c6703353ac10420c14fde8ca3.jpg","text":"TemporaryFile(/tmp/multipartBody4041530604927082406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322243074,"filename":"image_18032025_19_23_05_5625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2cfc5ccbd2cff9c46e3aa3314b923715.jpg","text":"TemporaryFile(/tmp/multipartBody1394650465741870976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322243074,"filename":"image_18032025_19_22_41_5639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/17fad7b9a9f34adda3365cbc39a8c815.jpg","text":"TemporaryFile(/tmp/multipartBody2262626118923939741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322243074,"filename":"image_18032025_19_22_54_6647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/89fef6671513a9eaa86fb2789aa3956c.jpg","text":"TemporaryFile(/tmp/multipartBody9190666817701644442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322243074,"filename":"image_18032025_19_22_36_6658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd017aeea6410a193217e707af10f112.jpg","text":"TemporaryFile(/tmp/multipartBody1089745787196015065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322243074,"filename":"image_18032025_19_22_29_5597.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209151","file1":"1345209148","file0":"1345209145","file4":"1345209157","file5":"1345209159","file3":"1345209154"},"map_files_photo_id_array":[{"photo_id":"1345209159","filename":"file5"},{"photo_id":"1345209151","filename":"file2"},{"photo_id":"1345209157","filename":"file4"},{"photo_id":"1345209148","filename":"file1"},{"photo_id":"1345209145","filename":"file0"},{"photo_id":"1345209154","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345209151":["hashtag1","hashtag2"]},{"1345209145":["hashtag1","hashtag2"]},{"1345209154":["hashtag1","hashtag2"]},{"1345209148":["hashtag1","hashtag2"]},{"1345209157":["hashtag1","hashtag2"]},{"1345209159":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345209151, 1345209145, 1345209154, 1345209148, 1345209157, 1345209159)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.935534715652466 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:24:03.062302
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_53_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_48_6653.jpg', 2), ('/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_41_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_35_5635.jpg', 2), ('/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_30_6679.jpg', 2), ('/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_23_5990.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_53_5628.jpg', '/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_48_6653.jpg', '/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_41_5647.jpg', '/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_35_5635.jpg', '/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_30_6679.jpg', '/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_23_5990.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_53_5628.jpg
/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_48_6653.jpg
/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_41_5647.jpg
/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_35_5635.jpg
/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_30_6679.jpg
/home/nano/Desktop/images/18032025/19/23/image_18032025_19_23_23_5990.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345209181","1345209190","1345209184","1345209187","1345209192","1345209195"],"photo_ids_order":["1345209181","1345209184","1345209187","1345209190","1345209192","1345209195"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0f5f64876faf84a54307d8979e3a90f1.jpg","text":"TemporaryFile(/tmp/multipartBody7124539826895276101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322303427,"filename":"image_18032025_19_23_53_5628.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ede571003624d82bf2067ccda440e6af.jpg","text":"TemporaryFile(/tmp/multipartBody1041046696327892583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322303427,"filename":"image_18032025_19_23_35_5635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/16229713f9547e11758a0eecd2e22cdd.jpg","text":"TemporaryFile(/tmp/multipartBody5215620949362067041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322303427,"filename":"image_18032025_19_23_48_6653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eecc249f24a590463b6da54a200f1dfd.jpg","text":"TemporaryFile(/tmp/multipartBody5455809634957338251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322303427,"filename":"image_18032025_19_23_41_5647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2a9c845ab6fe760a7b9ade708cf1041a.jpg","text":"TemporaryFile(/tmp/multipartBody4391088163791183815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322303427,"filename":"image_18032025_19_23_30_6679.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52e41f428e82e7dd70cb34ece7a439f8.jpg","text":"TemporaryFile(/tmp/multipartBody9061995364623944869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322303427,"filename":"image_18032025_19_23_23_5990.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209187","file1":"1345209184","file0":"1345209181","file4":"1345209192","file5":"1345209195","file3":"1345209190"},"map_files_photo_id_array":[{"photo_id":"1345209195","filename":"file5"},{"photo_id":"1345209187","filename":"file2"},{"photo_id":"1345209192","filename":"file4"},{"photo_id":"1345209184","filename":"file1"},{"photo_id":"1345209181","filename":"file0"},{"photo_id":"1345209190","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345209181":["hashtag1","hashtag2"]},{"1345209190":["hashtag1","hashtag2"]},{"1345209184":["hashtag1","hashtag2"]},{"1345209187":["hashtag1","hashtag2"]},{"1345209192":["hashtag1","hashtag2"]},{"1345209195":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345209181, 1345209190, 1345209184, 1345209187, 1345209192, 1345209195)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.1038920879364 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:25:03.017165
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_53_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_47_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_42_6670.jpg', 2), ('/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_35_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_29_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_24_6661.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_53_5743.jpg', '/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_47_5656.jpg', '/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_42_6670.jpg', '/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_35_5632.jpg', '/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_29_5627.jpg', '/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_24_6661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_53_5743.jpg
/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_47_5656.jpg
/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_42_6670.jpg
/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_35_5632.jpg
/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_29_5627.jpg
/home/nano/Desktop/images/18032025/19/24/image_18032025_19_24_24_6661.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345209232","1345209226","1345209229","1345209237","1345209222","1345209219"],"photo_ids_order":["1345209219","1345209222","1345209226","1345209229","1345209232","1345209237"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f448629194a8b1dbf0b2567cea38c362.jpg","text":"TemporaryFile(/tmp/multipartBody170297261470389704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322363311,"filename":"image_18032025_19_24_29_5627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0d260daa5cf80885891e581e75227b4f.jpg","text":"TemporaryFile(/tmp/multipartBody7726116948796204394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322363311,"filename":"image_18032025_19_24_42_6670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e0dc8d2d8581045f0bea679904cc6129.jpg","text":"TemporaryFile(/tmp/multipartBody9096348209838885591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322363311,"filename":"image_18032025_19_24_35_5632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/700dc90d632b2b0e88b96da582c8761b.jpg","text":"TemporaryFile(/tmp/multipartBody2945781124596417776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322363311,"filename":"image_18032025_19_24_24_6661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b815f770d4b39e5b4dd76703c2e12fcd.jpg","text":"TemporaryFile(/tmp/multipartBody2582687265916974809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322363311,"filename":"image_18032025_19_24_47_5656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4db988438c51f47ef1fbf4a7156353a4.jpg","text":"TemporaryFile(/tmp/multipartBody7277310981296521307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322363311,"filename":"image_18032025_19_24_53_5743.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209226","file1":"1345209222","file0":"1345209219","file4":"1345209232","file5":"1345209237","file3":"1345209229"},"map_files_photo_id_array":[{"photo_id":"1345209237","filename":"file5"},{"photo_id":"1345209226","filename":"file2"},{"photo_id":"1345209232","filename":"file4"},{"photo_id":"1345209222","filename":"file1"},{"photo_id":"1345209219","filename":"file0"},{"photo_id":"1345209229","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345209232":["hashtag1","hashtag2"]},{"1345209226":["hashtag1","hashtag2"]},{"1345209229":["hashtag1","hashtag2"]},{"1345209237":["hashtag1","hashtag2"]},{"1345209222":["hashtag1","hashtag2"]},{"1345209219":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345209232, 1345209226, 1345209229, 1345209237, 1345209222, 1345209219)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.997870445251465 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:26:03.135850
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_53_5982.jpg', 2), ('/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_41_5775.jpg', 2), ('/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_36_5981.jpg', 2), ('/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_30_6722.jpg', 2), ('/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_23_5735.jpg', 2), ('/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_17_5744.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_53_5982.jpg', '/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_41_5775.jpg', '/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_36_5981.jpg', '/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_30_6722.jpg', '/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_23_5735.jpg', '/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_17_5744.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_53_5982.jpg
/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_41_5775.jpg
/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_36_5981.jpg
/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_30_6722.jpg
/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_23_5735.jpg
/home/nano/Desktop/images/18032025/19/25/image_18032025_19_25_17_5744.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345209391","1345209387","1345209383","1345209350","1345209368","1345209347"],"photo_ids_order":["1345209347","1345209350","1345209368","1345209383","1345209387","1345209391"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6e57b856b067552d5b919271964953f2.jpg","text":"TemporaryFile(/tmp/multipartBody1048412988968928807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322423505,"filename":"image_18032025_19_25_17_5744.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9d10cc05878b4070b45d7ec614c000c.jpg","text":"TemporaryFile(/tmp/multipartBody3093517439284627590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322423505,"filename":"image_18032025_19_25_23_5735.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dab09d08bca0a8d34047c6c926974f05.jpg","text":"TemporaryFile(/tmp/multipartBody4001645485669748037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322423505,"filename":"image_18032025_19_25_30_6722.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6c6bfe810e252139682fc50906126c3c.jpg","text":"TemporaryFile(/tmp/multipartBody9077858248634787665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322423505,"filename":"image_18032025_19_25_41_5775.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c157ffed7291161112e02d21f3cbd944.jpg","text":"TemporaryFile(/tmp/multipartBody3263229015116024444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322423505,"filename":"image_18032025_19_25_36_5981.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/737c973570b064ca1fe638814a491851.jpg","text":"TemporaryFile(/tmp/multipartBody4286096412704621661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322423505,"filename":"image_18032025_19_25_53_5982.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209368","file1":"1345209350","file0":"1345209347","file4":"1345209387","file5":"1345209391","file3":"1345209383"},"map_files_photo_id_array":[{"photo_id":"1345209391","filename":"file5"},{"photo_id":"1345209368","filename":"file2"},{"photo_id":"1345209387","filename":"file4"},{"photo_id":"1345209350","filename":"file1"},{"photo_id":"1345209347","filename":"file0"},{"photo_id":"1345209383","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345209391":["hashtag1","hashtag2"]},{"1345209387":["hashtag1","hashtag2"]},{"1345209383":["hashtag1","hashtag2"]},{"1345209350":["hashtag1","hashtag2"]},{"1345209368":["hashtag1","hashtag2"]},{"1345209347":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345209391, 1345209387, 1345209383, 1345209350, 1345209368, 1345209347)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.960643529891968 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:27:02.120639
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_53_5775.jpg', 2), ('/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_48_5771.jpg', 2), ('/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_42_5990.jpg', 2), ('/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_36_6825.jpg', 2), ('/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_29_5773.jpg', 2), ('/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_23_5738.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_53_5775.jpg', '/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_48_5771.jpg', '/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_42_5990.jpg', '/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_36_6825.jpg', '/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_29_5773.jpg', '/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_23_5738.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_53_5775.jpg
/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_48_5771.jpg
/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_42_5990.jpg
/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_36_6825.jpg
/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_29_5773.jpg
/home/nano/Desktop/images/18032025/19/26/image_18032025_19_26_23_5738.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345209422","1345209430","1345209418","1345209415","1345209426","1345209411"],"photo_ids_order":["1345209411","1345209415","1345209418","1345209422","1345209426","1345209430"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/831119095a6b57e01ccaddb5ad2f0db8.jpg","text":"TemporaryFile(/tmp/multipartBody1626834421591257636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322482497,"filename":"image_18032025_19_26_36_6825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4384b596ab3d408ed63f91d43f724a2f.jpg","text":"TemporaryFile(/tmp/multipartBody3307243542498337686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322482497,"filename":"image_18032025_19_26_23_5738.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/993ad2d8038e7cd4a5e094fbbe8822fb.jpg","text":"TemporaryFile(/tmp/multipartBody6170140353277564988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322482497,"filename":"image_18032025_19_26_42_5990.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/150cab36a2a270e6832a3b3033b1df9f.jpg","text":"TemporaryFile(/tmp/multipartBody7189506658929065626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322482497,"filename":"image_18032025_19_26_48_5771.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/702f66760e0d8747894b00f62c80fb37.jpg","text":"TemporaryFile(/tmp/multipartBody3969840853065474099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322482497,"filename":"image_18032025_19_26_29_5773.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7928f72e5a8243c56e696811df40f72f.jpg","text":"TemporaryFile(/tmp/multipartBody1264989859584820363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322482497,"filename":"image_18032025_19_26_53_5775.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209418","file1":"1345209415","file0":"1345209411","file4":"1345209426","file5":"1345209430","file3":"1345209422"},"map_files_photo_id_array":[{"photo_id":"1345209430","filename":"file5"},{"photo_id":"1345209418","filename":"file2"},{"photo_id":"1345209426","filename":"file4"},{"photo_id":"1345209415","filename":"file1"},{"photo_id":"1345209411","filename":"file0"},{"photo_id":"1345209422","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345209422":["hashtag1","hashtag2"]},{"1345209430":["hashtag1","hashtag2"]},{"1345209418":["hashtag1","hashtag2"]},{"1345209415":["hashtag1","hashtag2"]},{"1345209426":["hashtag1","hashtag2"]},{"1345209411":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345209422, 1345209430, 1345209418, 1345209415, 1345209426, 1345209411)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.741679430007935 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:28:02.429011
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_53_5959.jpg', 2), ('/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_48_5772.jpg', 2), ('/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_42_6799.jpg', 2), ('/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_35_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_29_5736.jpg', 2), ('/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_23_5965.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_53_5959.jpg', '/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_48_5772.jpg', '/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_42_6799.jpg', '/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_35_5779.jpg', '/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_29_5736.jpg', '/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_23_5965.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_53_5959.jpg
/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_48_5772.jpg
/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_42_6799.jpg
/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_35_5779.jpg
/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_29_5736.jpg
/home/nano/Desktop/images/18032025/19/27/image_18032025_19_27_23_5965.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345209451","1345209448","1345209453","1345209462","1345209458","1345209467"],"photo_ids_order":["1345209448","1345209451","1345209453","1345209458","1345209462","1345209467"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6537c40777f9396ea564a8d334a4632d.jpg","text":"TemporaryFile(/tmp/multipartBody4206602283532678691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322542787,"filename":"image_18032025_19_27_48_5772.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/687208561b5107c67f538eedec55f657.jpg","text":"TemporaryFile(/tmp/multipartBody3437243702928744516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322542787,"filename":"image_18032025_19_27_53_5959.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6d050fc32f74f63814190a77c092f488.jpg","text":"TemporaryFile(/tmp/multipartBody6753044330156232618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322542787,"filename":"image_18032025_19_27_42_6799.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/975a7c8f9825cf9d2dd8fda4c3620fdf.jpg","text":"TemporaryFile(/tmp/multipartBody5209067578139415939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322542787,"filename":"image_18032025_19_27_29_5736.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a4d30aaf9c84d5f08207ed1e6c6a209f.jpg","text":"TemporaryFile(/tmp/multipartBody8226629845839134609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322542787,"filename":"image_18032025_19_27_35_5779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5bbff22b014cb5dcd446833d17f79712.jpg","text":"TemporaryFile(/tmp/multipartBody8533928983722552884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322542787,"filename":"image_18032025_19_27_23_5965.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209453","file1":"1345209451","file0":"1345209448","file4":"1345209462","file5":"1345209467","file3":"1345209458"},"map_files_photo_id_array":[{"photo_id":"1345209467","filename":"file5"},{"photo_id":"1345209453","filename":"file2"},{"photo_id":"1345209462","filename":"file4"},{"photo_id":"1345209451","filename":"file1"},{"photo_id":"1345209448","filename":"file0"},{"photo_id":"1345209458","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345209451":["hashtag1","hashtag2"]},{"1345209448":["hashtag1","hashtag2"]},{"1345209453":["hashtag1","hashtag2"]},{"1345209462":["hashtag1","hashtag2"]},{"1345209458":["hashtag1","hashtag2"]},{"1345209467":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345209451, 1345209448, 1345209453, 1345209462, 1345209458, 1345209467)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.93773913383484 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:29:02.740786
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_53_5634.jpg', 2), ('/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_48_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_41_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_35_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_30_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_23_5657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_53_5634.jpg', '/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_48_6647.jpg', '/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_41_5649.jpg', '/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_35_5627.jpg', '/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_30_6627.jpg', '/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_23_5657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_53_5634.jpg
/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_48_6647.jpg
/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_41_5649.jpg
/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_35_5627.jpg
/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_30_6627.jpg
/home/nano/Desktop/images/18032025/19/28/image_18032025_19_28_23_5657.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345209493","1345209498","1345209502","1345209489","1345209507","1345209491"],"photo_ids_order":["1345209489","1345209491","1345209493","1345209498","1345209502","1345209507"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/97006661212c9d655fc01acb42e6a15a.jpg","text":"TemporaryFile(/tmp/multipartBody2102004549750522528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322603020,"filename":"image_18032025_19_28_41_5649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/292ea603b4d621636168e5c771b8bb9f.jpg","text":"TemporaryFile(/tmp/multipartBody241831139438381477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322603020,"filename":"image_18032025_19_28_35_5627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/98c8fb378b67a903265e908d2e7760d7.jpg","text":"TemporaryFile(/tmp/multipartBody2206530315843376701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322603020,"filename":"image_18032025_19_28_30_6627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/65e06017ff97168de9cc270056a3dee3.jpg","text":"TemporaryFile(/tmp/multipartBody7664023293998750594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322603020,"filename":"image_18032025_19_28_53_5634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/023484dd82de4fc3798da40da5246c16.jpg","text":"TemporaryFile(/tmp/multipartBody3188077980300676358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322603020,"filename":"image_18032025_19_28_23_5657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d77cb07e79d3c9084a0822e5c7edecdb.jpg","text":"TemporaryFile(/tmp/multipartBody5591567041399011609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322603020,"filename":"image_18032025_19_28_48_6647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209493","file1":"1345209491","file0":"1345209489","file4":"1345209502","file5":"1345209507","file3":"1345209498"},"map_files_photo_id_array":[{"photo_id":"1345209507","filename":"file5"},{"photo_id":"1345209493","filename":"file2"},{"photo_id":"1345209502","filename":"file4"},{"photo_id":"1345209491","filename":"file1"},{"photo_id":"1345209489","filename":"file0"},{"photo_id":"1345209498","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345209493":["hashtag1","hashtag2"]},{"1345209498":["hashtag1","hashtag2"]},{"1345209502":["hashtag1","hashtag2"]},{"1345209489":["hashtag1","hashtag2"]},{"1345209507":["hashtag1","hashtag2"]},{"1345209491":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345209493, 1345209498, 1345209502, 1345209489, 1345209507, 1345209491)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.287694454193115 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:30:02.616173
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_54_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_47_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_41_5656.jpg', 2), ('/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_36_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_29_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_23_6622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_54_6655.jpg', '/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_47_5612.jpg', '/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_41_5656.jpg', '/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_36_6634.jpg', '/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_29_5630.jpg', '/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_23_6622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_54_6655.jpg
/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_47_5612.jpg
/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_41_5656.jpg
/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_36_6634.jpg
/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_29_5630.jpg
/home/nano/Desktop/images/18032025/19/29/image_18032025_19_29_23_6622.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345209553","1345209556","1345209550","1345209547","1345209560","1345209545"],"photo_ids_order":["1345209545","1345209547","1345209550","1345209553","1345209556","1345209560"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f25bfd7b5366f707bbc86d6512484164.jpg","text":"TemporaryFile(/tmp/multipartBody3537702040566940448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322662916,"filename":"image_18032025_19_29_36_6634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c620c950184e29362de76a7454fa4624.jpg","text":"TemporaryFile(/tmp/multipartBody1024476222181261815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322662916,"filename":"image_18032025_19_29_29_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c7d0cf462c1422d7fb26e4dea6e0988.jpg","text":"TemporaryFile(/tmp/multipartBody3357479177080776488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322662916,"filename":"image_18032025_19_29_41_5656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/03b620c04596297c7c564ca8991aedc2.jpg","text":"TemporaryFile(/tmp/multipartBody5369783177347168439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322662916,"filename":"image_18032025_19_29_47_5612.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0159cbc3b09adb63b389b26bc0456d35.jpg","text":"TemporaryFile(/tmp/multipartBody8992166013193151867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322662916,"filename":"image_18032025_19_29_23_6622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1591fb8abdbd1512065c90e08b0879e7.jpg","text":"TemporaryFile(/tmp/multipartBody1637586071746908885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322662916,"filename":"image_18032025_19_29_54_6655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209550","file1":"1345209547","file0":"1345209545","file4":"1345209556","file5":"1345209560","file3":"1345209553"},"map_files_photo_id_array":[{"photo_id":"1345209560","filename":"file5"},{"photo_id":"1345209550","filename":"file2"},{"photo_id":"1345209556","filename":"file4"},{"photo_id":"1345209547","filename":"file1"},{"photo_id":"1345209545","filename":"file0"},{"photo_id":"1345209553","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345209553":["hashtag1","hashtag2"]},{"1345209556":["hashtag1","hashtag2"]},{"1345209550":["hashtag1","hashtag2"]},{"1345209547":["hashtag1","hashtag2"]},{"1345209560":["hashtag1","hashtag2"]},{"1345209545":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345209553, 1345209556, 1345209550, 1345209547, 1345209560, 1345209545)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.989506244659424 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:31:02.699572
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_53_5721.jpg', 2), ('/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_47_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_42_5820.jpg', 2), ('/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_36_6819.jpg', 2), ('/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_29_5724.jpg', 2), ('/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_23_5686.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_53_5721.jpg', '/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_47_5752.jpg', '/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_42_5820.jpg', '/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_36_6819.jpg', '/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_29_5724.jpg', '/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_23_5686.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_53_5721.jpg
/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_47_5752.jpg
/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_42_5820.jpg
/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_36_6819.jpg
/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_29_5724.jpg
/home/nano/Desktop/images/18032025/19/30/image_18032025_19_30_23_5686.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345209586","1345209595","1345209589","1345209591","1345209593","1345209587"],"photo_ids_order":["1345209586","1345209587","1345209589","1345209591","1345209593","1345209595"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d45d465db31e69bc1b12cdf08ebe3397.jpg","text":"TemporaryFile(/tmp/multipartBody1842581906333385055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322723057,"filename":"image_18032025_19_30_53_5721.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/246272040335f67b84e1ee75bda0e8d9.jpg","text":"TemporaryFile(/tmp/multipartBody5074346606538281856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322723057,"filename":"image_18032025_19_30_23_5686.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/523b853afce176b55efb83e3376b4bd8.jpg","text":"TemporaryFile(/tmp/multipartBody4322540154939654036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322723057,"filename":"image_18032025_19_30_42_5820.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9924194083e6b4e196c763b9e666fd39.jpg","text":"TemporaryFile(/tmp/multipartBody100441142319268014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322723057,"filename":"image_18032025_19_30_36_6819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe969b4c2ee252b568e9c410d9fa6aab.jpg","text":"TemporaryFile(/tmp/multipartBody3224803845434560721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322723057,"filename":"image_18032025_19_30_29_5724.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/59772f5c502a72dbbe9008eeecd24905.jpg","text":"TemporaryFile(/tmp/multipartBody156276702107903325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322723057,"filename":"image_18032025_19_30_47_5752.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209589","file1":"1345209587","file0":"1345209586","file4":"1345209593","file5":"1345209595","file3":"1345209591"},"map_files_photo_id_array":[{"photo_id":"1345209595","filename":"file5"},{"photo_id":"1345209589","filename":"file2"},{"photo_id":"1345209593","filename":"file4"},{"photo_id":"1345209587","filename":"file1"},{"photo_id":"1345209586","filename":"file0"},{"photo_id":"1345209591","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345209586":["hashtag1","hashtag2"]},{"1345209595":["hashtag1","hashtag2"]},{"1345209589":["hashtag1","hashtag2"]},{"1345209591":["hashtag1","hashtag2"]},{"1345209593":["hashtag1","hashtag2"]},{"1345209587":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345209586, 1345209595, 1345209589, 1345209591, 1345209593, 1345209587)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.90981149673462 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:32:02.711321
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_53_5756.jpg', 2), ('/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_47_5728.jpg', 2), ('/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_41_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_36_6860.jpg', 2), ('/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_29_5804.jpg', 2), ('/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_23_5818.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_53_5756.jpg', '/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_47_5728.jpg', '/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_41_5782.jpg', '/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_36_6860.jpg', '/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_29_5804.jpg', '/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_23_5818.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_53_5756.jpg
/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_47_5728.jpg
/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_41_5782.jpg
/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_36_6860.jpg
/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_29_5804.jpg
/home/nano/Desktop/images/18032025/19/31/image_18032025_19_31_23_5818.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345209790","1345209859","1345209814","1345209765","1345209840","1345209741"],"photo_ids_order":["1345209741","1345209765","1345209790","1345209814","1345209840","1345209859"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b7f5934e4890752c9c76e90aba272860.jpg","text":"TemporaryFile(/tmp/multipartBody3896008585180746545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322783066,"filename":"image_18032025_19_31_41_5782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90cb9994de45b41f55924a6e82e4c39a.jpg","text":"TemporaryFile(/tmp/multipartBody1766676128237582954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322783066,"filename":"image_18032025_19_31_23_5818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2b515cda6cb6eac3ee713b421459ff9.jpg","text":"TemporaryFile(/tmp/multipartBody4157985294505217475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322783066,"filename":"image_18032025_19_31_36_6860.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/51eaf5efc65785289b4f52d148ac506a.jpg","text":"TemporaryFile(/tmp/multipartBody5451682037977802451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322783066,"filename":"image_18032025_19_31_47_5728.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c2ab18751cdeb4a8adf77bf1de96c729.jpg","text":"TemporaryFile(/tmp/multipartBody5583355098734346256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322783066,"filename":"image_18032025_19_31_29_5804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/35ac4fedab4d180ceaa1915c6212c3ab.jpg","text":"TemporaryFile(/tmp/multipartBody6942908218449983691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322783066,"filename":"image_18032025_19_31_53_5756.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345209790","file1":"1345209765","file0":"1345209741","file4":"1345209840","file5":"1345209859","file3":"1345209814"},"map_files_photo_id_array":[{"photo_id":"1345209859","filename":"file5"},{"photo_id":"1345209790","filename":"file2"},{"photo_id":"1345209840","filename":"file4"},{"photo_id":"1345209765","filename":"file1"},{"photo_id":"1345209741","filename":"file0"},{"photo_id":"1345209814","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345209790":["hashtag1","hashtag2"]},{"1345209859":["hashtag1","hashtag2"]},{"1345209814":["hashtag1","hashtag2"]},{"1345209765":["hashtag1","hashtag2"]},{"1345209840":["hashtag1","hashtag2"]},{"1345209741":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345209790, 1345209859, 1345209814, 1345209765, 1345209840, 1345209741)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.13320517539978 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:33:02.945667
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_53_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_48_6660.jpg', 2), ('/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_41_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_35_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_30_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_23_5684.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_53_5627.jpg', '/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_48_6660.jpg', '/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_41_5638.jpg', '/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_35_5636.jpg', '/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_30_6647.jpg', '/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_23_5684.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_53_5627.jpg
/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_48_6660.jpg
/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_41_5638.jpg
/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_35_5636.jpg
/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_30_6647.jpg
/home/nano/Desktop/images/18032025/19/32/image_18032025_19_32_23_5684.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345210393","1345210447","1345210519","1345210312","1345210479","1345210289"],"photo_ids_order":["1345210289","1345210312","1345210393","1345210447","1345210479","1345210519"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a0d1039867b6008075361ce1ed183919.jpg","text":"TemporaryFile(/tmp/multipartBody6502597432454873395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322843238,"filename":"image_18032025_19_32_41_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ba2130215ad7d99dccbf6739e02e3afb.jpg","text":"TemporaryFile(/tmp/multipartBody4076961843027774343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322843238,"filename":"image_18032025_19_32_35_5636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d482edde20cdc9d2fb795cf044d22194.jpg","text":"TemporaryFile(/tmp/multipartBody8407779163178578873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322843238,"filename":"image_18032025_19_32_23_5684.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d68868e8a7fdfe33c0fd573a22a03876.jpg","text":"TemporaryFile(/tmp/multipartBody6566482841528563791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322843238,"filename":"image_18032025_19_32_48_6660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1954b2393b40f4c5ce3f3749f0279084.jpg","text":"TemporaryFile(/tmp/multipartBody176176621005390547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322843238,"filename":"image_18032025_19_32_30_6647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/04f20b9d0fd6f3648eb8b84a5f0138a2.jpg","text":"TemporaryFile(/tmp/multipartBody6385739569708980521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322843238,"filename":"image_18032025_19_32_53_5627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345210393","file1":"1345210312","file0":"1345210289","file4":"1345210479","file5":"1345210519","file3":"1345210447"},"map_files_photo_id_array":[{"photo_id":"1345210519","filename":"file5"},{"photo_id":"1345210393","filename":"file2"},{"photo_id":"1345210479","filename":"file4"},{"photo_id":"1345210312","filename":"file1"},{"photo_id":"1345210289","filename":"file0"},{"photo_id":"1345210447","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345210393":["hashtag1","hashtag2"]},{"1345210447":["hashtag1","hashtag2"]},{"1345210519":["hashtag1","hashtag2"]},{"1345210312":["hashtag1","hashtag2"]},{"1345210479":["hashtag1","hashtag2"]},{"1345210289":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345210393, 1345210447, 1345210519, 1345210312, 1345210479, 1345210289)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.913581609725952 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:34:03.126441
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_53_5948.jpg', 2), ('/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_47_6010.jpg', 2), ('/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_41_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_35_6180.jpg', 2), ('/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_29_5980.jpg', 2), ('/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_23_5941.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_53_5948.jpg', '/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_47_6010.jpg', '/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_41_6080.jpg', '/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_35_6180.jpg', '/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_29_5980.jpg', '/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_23_5941.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_53_5948.jpg
/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_47_6010.jpg
/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_41_6080.jpg
/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_35_6180.jpg
/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_29_5980.jpg
/home/nano/Desktop/images/18032025/19/33/image_18032025_19_33_23_5941.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345211027","1345210979","1345210955","1345211077","1345210907","1345210932"],"photo_ids_order":["1345210907","1345210932","1345210955","1345210979","1345211027","1345211077"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9fc4caeb53e6c6143f68a3aef153dfa3.jpg","text":"TemporaryFile(/tmp/multipartBody6291595290978207749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322903555,"filename":"image_18032025_19_33_29_5980.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/45e3b6e110dcffa0a2c5d01e7c413718.jpg","text":"TemporaryFile(/tmp/multipartBody6253901164925020104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322903555,"filename":"image_18032025_19_33_35_6180.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d10d7b316b00930f3630c3e4df3c632e.jpg","text":"TemporaryFile(/tmp/multipartBody5096824623317364853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322903555,"filename":"image_18032025_19_33_41_6080.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c12a7044ed254dae0bb28679dc9fabf7.jpg","text":"TemporaryFile(/tmp/multipartBody9189116935020859935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322903555,"filename":"image_18032025_19_33_23_5941.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27a77f11e6c3fa146ddb14cdad2ad658.jpg","text":"TemporaryFile(/tmp/multipartBody5407364638309317566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322903555,"filename":"image_18032025_19_33_53_5948.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3fb87c291e509c49d9954e9e27d2bb9.jpg","text":"TemporaryFile(/tmp/multipartBody7175555460016163378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322903555,"filename":"image_18032025_19_33_47_6010.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345210955","file1":"1345210932","file0":"1345210907","file4":"1345211027","file5":"1345211077","file3":"1345210979"},"map_files_photo_id_array":[{"photo_id":"1345211077","filename":"file5"},{"photo_id":"1345210955","filename":"file2"},{"photo_id":"1345211027","filename":"file4"},{"photo_id":"1345210932","filename":"file1"},{"photo_id":"1345210907","filename":"file0"},{"photo_id":"1345210979","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345211027":["hashtag1","hashtag2"]},{"1345210979":["hashtag1","hashtag2"]},{"1345210955":["hashtag1","hashtag2"]},{"1345211077":["hashtag1","hashtag2"]},{"1345210907":["hashtag1","hashtag2"]},{"1345210932":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345211027, 1345210979, 1345210955, 1345211077, 1345210907, 1345210932)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.107478618621826 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:35:02.093324
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_54_6726.jpg', 2), ('/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_47_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_41_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_35_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_30_6746.jpg', 2), ('/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_23_5734.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_54_6726.jpg', '/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_47_5810.jpg', '/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_41_5718.jpg', '/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_35_5743.jpg', '/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_30_6746.jpg', '/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_23_5734.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_54_6726.jpg
/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_47_5810.jpg
/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_41_5718.jpg
/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_35_5743.jpg
/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_30_6746.jpg
/home/nano/Desktop/images/18032025/19/34/image_18032025_19_34_23_5734.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345211458","1345211401","1345211460","1345211328","1345211369","1345211435"],"photo_ids_order":["1345211328","1345211369","1345211401","1345211435","1345211458","1345211460"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/09069b194b63c0148a54faafb1b0ef7a.jpg","text":"TemporaryFile(/tmp/multipartBody8091424209998297305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322962467,"filename":"image_18032025_19_34_30_6746.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d779be0cfe9308eef43996dc3d3d4aeb.jpg","text":"TemporaryFile(/tmp/multipartBody7830066852012475498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322962467,"filename":"image_18032025_19_34_41_5718.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/94bb60dda27003204b143fa6a0eb18c2.jpg","text":"TemporaryFile(/tmp/multipartBody153677284536005099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322962467,"filename":"image_18032025_19_34_23_5734.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5bf89ba462e20e5ba5720199ee4d482a.jpg","text":"TemporaryFile(/tmp/multipartBody7909275624003371206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322962467,"filename":"image_18032025_19_34_54_6726.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1c7e199670f3bb8df5da568d862fc352.jpg","text":"TemporaryFile(/tmp/multipartBody5892791400036565675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322962467,"filename":"image_18032025_19_34_47_5810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9b837161057c284222cac289a24b887f.jpg","text":"TemporaryFile(/tmp/multipartBody4741864981077397851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742322962467,"filename":"image_18032025_19_34_35_5743.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345211401","file1":"1345211369","file0":"1345211328","file4":"1345211458","file5":"1345211460","file3":"1345211435"},"map_files_photo_id_array":[{"photo_id":"1345211460","filename":"file5"},{"photo_id":"1345211401","filename":"file2"},{"photo_id":"1345211458","filename":"file4"},{"photo_id":"1345211369","filename":"file1"},{"photo_id":"1345211328","filename":"file0"},{"photo_id":"1345211435","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345211458":["hashtag1","hashtag2"]},{"1345211401":["hashtag1","hashtag2"]},{"1345211460":["hashtag1","hashtag2"]},{"1345211328":["hashtag1","hashtag2"]},{"1345211369":["hashtag1","hashtag2"]},{"1345211435":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345211458, 1345211401, 1345211460, 1345211328, 1345211369, 1345211435)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.29545974731445 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:36:02.341251
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_53_5787.jpg', 2), ('/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_48_6845.jpg', 2), ('/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_41_5036.jpg', 2), ('/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_36_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_30_6823.jpg', 2), ('/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_23_5782.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_53_5787.jpg', '/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_48_6845.jpg', '/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_41_5036.jpg', '/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_36_6043.jpg', '/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_30_6823.jpg', '/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_23_5782.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_53_5787.jpg
/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_48_6845.jpg
/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_41_5036.jpg
/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_36_6043.jpg
/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_30_6823.jpg
/home/nano/Desktop/images/18032025/19/35/image_18032025_19_35_23_5782.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345211642","1345211639","1345211641","1345211640","1345211634","1345211637"],"photo_ids_order":["1345211634","1345211637","1345211639","1345211640","1345211641","1345211642"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6e373456a99cbafc94e829d8e6530f27.jpg","text":"TemporaryFile(/tmp/multipartBody4568721194703736992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323022759,"filename":"image_18032025_19_35_23_5782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8fb3d8810ac45d68fbfe54315af7d27e.jpg","text":"TemporaryFile(/tmp/multipartBody2302778092250951395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323022759,"filename":"image_18032025_19_35_41_5036.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01c23d831fb624707398760147366cdd.jpg","text":"TemporaryFile(/tmp/multipartBody3517762539013992417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323022759,"filename":"image_18032025_19_35_30_6823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a2f13809c5f4dc4526a8662631e7fa91.jpg","text":"TemporaryFile(/tmp/multipartBody3797021456601153950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323022759,"filename":"image_18032025_19_35_36_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bbf78214cc84c15422d9dce75106fc7d.jpg","text":"TemporaryFile(/tmp/multipartBody5001591303338611145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323022759,"filename":"image_18032025_19_35_53_5787.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cbb149462708d9ad91a880dc5f164719.jpg","text":"TemporaryFile(/tmp/multipartBody5886634012500276725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323022759,"filename":"image_18032025_19_35_48_6845.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345211639","file1":"1345211637","file0":"1345211634","file4":"1345211641","file5":"1345211642","file3":"1345211640"},"map_files_photo_id_array":[{"photo_id":"1345211642","filename":"file5"},{"photo_id":"1345211639","filename":"file2"},{"photo_id":"1345211641","filename":"file4"},{"photo_id":"1345211637","filename":"file1"},{"photo_id":"1345211634","filename":"file0"},{"photo_id":"1345211640","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345211642":["hashtag1","hashtag2"]},{"1345211639":["hashtag1","hashtag2"]},{"1345211641":["hashtag1","hashtag2"]},{"1345211640":["hashtag1","hashtag2"]},{"1345211634":["hashtag1","hashtag2"]},{"1345211637":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345211642, 1345211639, 1345211641, 1345211640, 1345211634, 1345211637)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.294554471969604 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:37:02.288047
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_53_5965.jpg', 2), ('/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_47_6048.jpg', 2), ('/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_41_5883.jpg', 2), ('/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_35_5752.jpg', 2), ('/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_29_5743.jpg', 2), ('/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_24_6828.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_53_5965.jpg', '/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_47_6048.jpg', '/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_41_5883.jpg', '/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_35_5752.jpg', '/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_29_5743.jpg', '/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_24_6828.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_53_5965.jpg
/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_47_6048.jpg
/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_41_5883.jpg
/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_35_5752.jpg
/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_29_5743.jpg
/home/nano/Desktop/images/18032025/19/36/image_18032025_19_36_24_6828.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345211680","1345211678","1345211672","1345211666","1345211675","1345211669"],"photo_ids_order":["1345211666","1345211669","1345211672","1345211675","1345211678","1345211680"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a681ab88616d869e090668a88e901c64.jpg","text":"TemporaryFile(/tmp/multipartBody3401326274016268844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323082699,"filename":"image_18032025_19_36_24_6828.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/df49ac38f5986620e26acf62be814f39.jpg","text":"TemporaryFile(/tmp/multipartBody617729707328771361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323082699,"filename":"image_18032025_19_36_29_5743.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d92bb8623a25d120b2a7f3d8769cb51.jpg","text":"TemporaryFile(/tmp/multipartBody7084268662048672245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323082699,"filename":"image_18032025_19_36_41_5883.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/37c9543d36345450a376bbef117f9667.jpg","text":"TemporaryFile(/tmp/multipartBody8394244516667987739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323082699,"filename":"image_18032025_19_36_53_5965.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/36b9c210d94bac33c2cdce857579c28b.jpg","text":"TemporaryFile(/tmp/multipartBody7876982166729904263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323082699,"filename":"image_18032025_19_36_35_5752.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fa2f381d91c50fc7bb186ac7fba42334.jpg","text":"TemporaryFile(/tmp/multipartBody3659802454354498749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323082699,"filename":"image_18032025_19_36_47_6048.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345211672","file1":"1345211669","file0":"1345211666","file4":"1345211678","file5":"1345211680","file3":"1345211675"},"map_files_photo_id_array":[{"photo_id":"1345211680","filename":"file5"},{"photo_id":"1345211672","filename":"file2"},{"photo_id":"1345211678","filename":"file4"},{"photo_id":"1345211669","filename":"file1"},{"photo_id":"1345211666","filename":"file0"},{"photo_id":"1345211675","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345211680":["hashtag1","hashtag2"]},{"1345211678":["hashtag1","hashtag2"]},{"1345211672":["hashtag1","hashtag2"]},{"1345211666":["hashtag1","hashtag2"]},{"1345211675":["hashtag1","hashtag2"]},{"1345211669":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345211680, 1345211678, 1345211672, 1345211666, 1345211675, 1345211669)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.07638883590698 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:38:02.475997
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_53_5819.jpg', 2), ('/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_47_5771.jpg', 2), ('/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_41_5747.jpg', 2), ('/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_36_6817.jpg', 2), ('/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_29_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_23_5863.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_53_5819.jpg', '/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_47_5771.jpg', '/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_41_5747.jpg', '/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_36_6817.jpg', '/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_29_5834.jpg', '/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_23_5863.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_53_5819.jpg
/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_47_5771.jpg
/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_41_5747.jpg
/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_36_6817.jpg
/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_29_5834.jpg
/home/nano/Desktop/images/18032025/19/37/image_18032025_19_37_23_5863.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345212073","1345212106","1345212039","1345212153","1345212197","1345212260"],"photo_ids_order":["1345212039","1345212073","1345212106","1345212153","1345212197","1345212260"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/484f4af6578e033ae4f8bde423ee5b21.jpg","text":"TemporaryFile(/tmp/multipartBody571784273241170668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323142893,"filename":"image_18032025_19_37_47_5771.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dd91a0cb9c0b471a387efab21ce5fa03.jpg","text":"TemporaryFile(/tmp/multipartBody4240160959880267272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323142893,"filename":"image_18032025_19_37_41_5747.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/05839398320d8317a214aab03505bff2.jpg","text":"TemporaryFile(/tmp/multipartBody4502130349093672595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323142893,"filename":"image_18032025_19_37_53_5819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6dbe1cafc3fa2759c6159131186a0bf.jpg","text":"TemporaryFile(/tmp/multipartBody6729690719038889171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323142893,"filename":"image_18032025_19_37_36_6817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/352472fab00f3fa05145f3a89caefd31.jpg","text":"TemporaryFile(/tmp/multipartBody2765619202799170694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323142893,"filename":"image_18032025_19_37_29_5834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8ab1da7242bbf7416e7e2cf9534670a.jpg","text":"TemporaryFile(/tmp/multipartBody7819962460790389186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323142893,"filename":"image_18032025_19_37_23_5863.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345212106","file1":"1345212073","file0":"1345212039","file4":"1345212197","file5":"1345212260","file3":"1345212153"},"map_files_photo_id_array":[{"photo_id":"1345212260","filename":"file5"},{"photo_id":"1345212106","filename":"file2"},{"photo_id":"1345212197","filename":"file4"},{"photo_id":"1345212073","filename":"file1"},{"photo_id":"1345212039","filename":"file0"},{"photo_id":"1345212153","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345212073":["hashtag1","hashtag2"]},{"1345212106":["hashtag1","hashtag2"]},{"1345212039":["hashtag1","hashtag2"]},{"1345212153":["hashtag1","hashtag2"]},{"1345212197":["hashtag1","hashtag2"]},{"1345212260":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345212073, 1345212106, 1345212039, 1345212153, 1345212197, 1345212260)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.517422199249268 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:39:02.791595
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_54_5822.jpg', 2), ('/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_48_6824.jpg', 2), ('/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_41_5810.jpg', 2), ('/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_35_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_29_5950.jpg', 2), ('/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_23_5760.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_54_5822.jpg', '/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_48_6824.jpg', '/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_41_5810.jpg', '/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_35_5796.jpg', '/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_29_5950.jpg', '/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_23_5760.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_54_5822.jpg
/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_48_6824.jpg
/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_41_5810.jpg
/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_35_5796.jpg
/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_29_5950.jpg
/home/nano/Desktop/images/18032025/19/38/image_18032025_19_38_23_5760.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345213012","1345213108","1345212942","1345213209","1345213160","1345213051"],"photo_ids_order":["1345212942","1345213012","1345213051","1345213108","1345213160","1345213209"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8b9fa5040caf2a9b77db6ea323f3b69b.jpg","text":"TemporaryFile(/tmp/multipartBody4459952236521245601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323203220,"filename":"image_18032025_19_38_48_6824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/717cbecfdc0c430971529dffd177ff50.jpg","text":"TemporaryFile(/tmp/multipartBody5801045760958265125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323203220,"filename":"image_18032025_19_38_35_5796.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/414c2c8226bc589f9360753f8dd977b7.jpg","text":"TemporaryFile(/tmp/multipartBody3889554518068703546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323203220,"filename":"image_18032025_19_38_54_5822.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fb33fe46ec4587850f39acc5ff071ff2.jpg","text":"TemporaryFile(/tmp/multipartBody2977938063205198777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323203220,"filename":"image_18032025_19_38_23_5760.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f869778340b031c90d490a2c79a0e9b5.jpg","text":"TemporaryFile(/tmp/multipartBody8895644309972197684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323203220,"filename":"image_18032025_19_38_29_5950.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a74f80de6f52ef3696b7ae21cdf825e.jpg","text":"TemporaryFile(/tmp/multipartBody4740087126407225571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323203220,"filename":"image_18032025_19_38_41_5810.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345213051","file1":"1345213012","file0":"1345212942","file4":"1345213160","file5":"1345213209","file3":"1345213108"},"map_files_photo_id_array":[{"photo_id":"1345213209","filename":"file5"},{"photo_id":"1345213051","filename":"file2"},{"photo_id":"1345213160","filename":"file4"},{"photo_id":"1345213012","filename":"file1"},{"photo_id":"1345212942","filename":"file0"},{"photo_id":"1345213108","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345213012":["hashtag1","hashtag2"]},{"1345213108":["hashtag1","hashtag2"]},{"1345212942":["hashtag1","hashtag2"]},{"1345213209":["hashtag1","hashtag2"]},{"1345213160":["hashtag1","hashtag2"]},{"1345213051":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345213012, 1345213108, 1345212942, 1345213209, 1345213160, 1345213051)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.102060079574585 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:40:02.707469
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_54_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_48_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_42_6768.jpg', 2), ('/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_35_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_29_5923.jpg', 2), ('/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_23_6009.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_54_5767.jpg', '/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_48_6044.jpg', '/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_42_6768.jpg', '/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_35_5790.jpg', '/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_29_5923.jpg', '/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_23_6009.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_54_5767.jpg
/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_48_6044.jpg
/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_42_6768.jpg
/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_35_5790.jpg
/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_29_5923.jpg
/home/nano/Desktop/images/18032025/19/39/image_18032025_19_39_23_6009.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.35415172576904297 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:40:32.314823
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_53_5939.jpg', 2), ('/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_47_5827.jpg', 2), ('/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_41_6017.jpg', 2), ('/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_35_6145.jpg', 2), ('/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_29_5889.jpg', 2), ('/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_23_5917.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_53_5939.jpg', '/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_47_5827.jpg', '/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_41_6017.jpg', '/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_35_6145.jpg', '/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_29_5889.jpg', '/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_23_5917.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_53_5939.jpg
/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_47_5827.jpg
/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_41_6017.jpg
/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_35_6145.jpg
/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_29_5889.jpg
/home/nano/Desktop/images/18032025/19/40/image_18032025_19_40_23_5917.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345214156","1345214438","1345214405","1345214098","1345214287","1345214338"],"photo_ids_order":["1345214098","1345214156","1345214287","1345214338","1345214405","1345214438"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/686556af8fc4bcd4a3c9fd11d30565c2.jpg","text":"TemporaryFile(/tmp/multipartBody2637830631095609031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323292755,"filename":"image_18032025_19_40_47_5827.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9206c361bb869b410590fb88f1faa440.jpg","text":"TemporaryFile(/tmp/multipartBody113794171755177460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323292755,"filename":"image_18032025_19_40_23_5917.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/390947f29a50292ac7ada2e1010f6f89.jpg","text":"TemporaryFile(/tmp/multipartBody5908672456612564909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323292755,"filename":"image_18032025_19_40_29_5889.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/af514ecc7bb6f0834ca03fe9b8a02695.jpg","text":"TemporaryFile(/tmp/multipartBody9005634094573558891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323292755,"filename":"image_18032025_19_40_53_5939.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8ba23354e95e6abb9d932ea1ddf4324d.jpg","text":"TemporaryFile(/tmp/multipartBody995943130200261218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323292755,"filename":"image_18032025_19_40_41_6017.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8d2f771dceb4e904d35d40ec7d34b547.jpg","text":"TemporaryFile(/tmp/multipartBody493402518116555382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323292755,"filename":"image_18032025_19_40_35_6145.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345214287","file1":"1345214156","file0":"1345214098","file4":"1345214405","file5":"1345214438","file3":"1345214338"},"map_files_photo_id_array":[{"photo_id":"1345214438","filename":"file5"},{"photo_id":"1345214287","filename":"file2"},{"photo_id":"1345214405","filename":"file4"},{"photo_id":"1345214156","filename":"file1"},{"photo_id":"1345214098","filename":"file0"},{"photo_id":"1345214338","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345214156":["hashtag1","hashtag2"]},{"1345214438":["hashtag1","hashtag2"]},{"1345214405":["hashtag1","hashtag2"]},{"1345214098":["hashtag1","hashtag2"]},{"1345214287":["hashtag1","hashtag2"]},{"1345214338":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345214156, 1345214438, 1345214405, 1345214098, 1345214287, 1345214338)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.319106101989746 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:41:32.484258
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_53_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_47_5798.jpg', 2), ('/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_35_5677.jpg', 2), ('/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_29_5758.jpg', 2), ('/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_23_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_18_6073.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_53_5671.jpg', '/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_47_5798.jpg', '/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_35_5677.jpg', '/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_29_5758.jpg', '/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_23_5789.jpg', '/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_18_6073.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_53_5671.jpg
/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_47_5798.jpg
/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_35_5677.jpg
/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_29_5758.jpg
/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_23_5789.jpg
/home/nano/Desktop/images/18032025/19/41/image_18032025_19_41_18_6073.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345214721","1345214897","1345214779","1345214947","1345215004","1345214830"],"photo_ids_order":["1345214721","1345214779","1345214830","1345214897","1345214947","1345215004"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/baccf93446a98d34b0a5aa0cf43bf4ec.jpg","text":"TemporaryFile(/tmp/multipartBody7377829229753310340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323352834,"filename":"image_18032025_19_41_53_5671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aed9424fd6d01274f7719600eb4d8b32.jpg","text":"TemporaryFile(/tmp/multipartBody731013688376734992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323352834,"filename":"image_18032025_19_41_29_5758.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/47b729187326151ffeea49c441b776db.jpg","text":"TemporaryFile(/tmp/multipartBody5904530047546619213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323352834,"filename":"image_18032025_19_41_47_5798.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/58dee3a1340b5d750791c75d5239f4d8.jpg","text":"TemporaryFile(/tmp/multipartBody1489891016427061699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323352834,"filename":"image_18032025_19_41_23_5789.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f698a7ea6380d0e05a5a3e9d654f23e.jpg","text":"TemporaryFile(/tmp/multipartBody8189796059900514845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323352834,"filename":"image_18032025_19_41_18_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad2693e6d91c1776d3ed897f8d39c8d6.jpg","text":"TemporaryFile(/tmp/multipartBody2844030774660759160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323352834,"filename":"image_18032025_19_41_35_5677.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345214830","file1":"1345214779","file0":"1345214721","file4":"1345214947","file5":"1345215004","file3":"1345214897"},"map_files_photo_id_array":[{"photo_id":"1345215004","filename":"file5"},{"photo_id":"1345214830","filename":"file2"},{"photo_id":"1345214947","filename":"file4"},{"photo_id":"1345214779","filename":"file1"},{"photo_id":"1345214721","filename":"file0"},{"photo_id":"1345214897","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345214721":["hashtag1","hashtag2"]},{"1345214897":["hashtag1","hashtag2"]},{"1345214779":["hashtag1","hashtag2"]},{"1345214947":["hashtag1","hashtag2"]},{"1345215004":["hashtag1","hashtag2"]},{"1345214830":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345214721, 1345214897, 1345214779, 1345214947, 1345215004, 1345214830)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.933419466018677 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:42:32.577649
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_54_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_47_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_41_5697.jpg', 2), ('/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_36_6704.jpg', 2), ('/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_29_5649.jpg', 2), ('/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_23_5623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_54_6651.jpg', '/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_47_5630.jpg', '/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_41_5697.jpg', '/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_36_6704.jpg', '/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_29_5649.jpg', '/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_23_5623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_54_6651.jpg
/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_47_5630.jpg
/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_41_5697.jpg
/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_36_6704.jpg
/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_29_5649.jpg
/home/nano/Desktop/images/18032025/19/42/image_18032025_19_42_23_5623.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345215309","1345215284","1345215396","1345215421","1345215369","1345215348"],"photo_ids_order":["1345215284","1345215309","1345215348","1345215369","1345215396","1345215421"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e46c1e910d76c437fafda5ac1357ec8.jpg","text":"TemporaryFile(/tmp/multipartBody4684358908661665296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323412920,"filename":"image_18032025_19_42_47_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/96195d5f6a2fb38f97232efb4b9d8fac.jpg","text":"TemporaryFile(/tmp/multipartBody3086367824027601422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323412920,"filename":"image_18032025_19_42_54_6651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ab7d1a268e6013eced0575d7eda4a148.jpg","text":"TemporaryFile(/tmp/multipartBody2909418123157264259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323412920,"filename":"image_18032025_19_42_29_5649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c3e523faff5c2ed7352d379258044c3.jpg","text":"TemporaryFile(/tmp/multipartBody7587917967067444730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323412920,"filename":"image_18032025_19_42_23_5623.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf9f5ffb03144b76b73984cf4da985c5.jpg","text":"TemporaryFile(/tmp/multipartBody7315894035352382782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323412920,"filename":"image_18032025_19_42_36_6704.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/561b0cb4d4638bb2a2aa4f9794302d4c.jpg","text":"TemporaryFile(/tmp/multipartBody1401741836405236734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323412920,"filename":"image_18032025_19_42_41_5697.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345215348","file1":"1345215309","file0":"1345215284","file4":"1345215396","file5":"1345215421","file3":"1345215369"},"map_files_photo_id_array":[{"photo_id":"1345215421","filename":"file5"},{"photo_id":"1345215348","filename":"file2"},{"photo_id":"1345215396","filename":"file4"},{"photo_id":"1345215309","filename":"file1"},{"photo_id":"1345215284","filename":"file0"},{"photo_id":"1345215369","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345215309":["hashtag1","hashtag2"]},{"1345215284":["hashtag1","hashtag2"]},{"1345215396":["hashtag1","hashtag2"]},{"1345215421":["hashtag1","hashtag2"]},{"1345215369":["hashtag1","hashtag2"]},{"1345215348":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345215309, 1345215284, 1345215396, 1345215421, 1345215369, 1345215348)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.14658331871033 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:43:32.736001
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_53_5614.jpg', 2), ('/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_47_6651.jpg', 2), ('/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_41_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_35_5650.jpg', 2), ('/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_29_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_23_5674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_53_5614.jpg', '/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_47_6651.jpg', '/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_41_5676.jpg', '/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_35_5650.jpg', '/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_29_6642.jpg', '/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_23_5674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_53_5614.jpg
/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_47_6651.jpg
/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_41_5676.jpg
/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_35_5650.jpg
/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_29_6642.jpg
/home/nano/Desktop/images/18032025/19/43/image_18032025_19_43_23_5674.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345215522","1345215516","1345215519","1345215512","1345215506","1345215508"],"photo_ids_order":["1345215506","1345215508","1345215512","1345215516","1345215519","1345215522"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8cb190220dc1e538be836e87dedb14d8.jpg","text":"TemporaryFile(/tmp/multipartBody1261336233280419479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323473073,"filename":"image_18032025_19_43_23_5674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1dad61d981045d0102e231f372af4e15.jpg","text":"TemporaryFile(/tmp/multipartBody7083555248733889829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323473073,"filename":"image_18032025_19_43_35_5650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/680e5651a5e4a95f27b2fcf2cd9b9b21.jpg","text":"TemporaryFile(/tmp/multipartBody8513362283321478709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323473073,"filename":"image_18032025_19_43_29_6642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/039c22b618deba4fcee55ed981db1695.jpg","text":"TemporaryFile(/tmp/multipartBody4758166358811108252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323473073,"filename":"image_18032025_19_43_41_5676.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d6ef621daf4de43153dee1f606e20e9.jpg","text":"TemporaryFile(/tmp/multipartBody2260383593540152781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323473073,"filename":"image_18032025_19_43_53_5614.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69e3ef62a08792747b0cea7e10945a7d.jpg","text":"TemporaryFile(/tmp/multipartBody1127673725243713149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323473073,"filename":"image_18032025_19_43_47_6651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345215512","file1":"1345215508","file0":"1345215506","file4":"1345215519","file5":"1345215522","file3":"1345215516"},"map_files_photo_id_array":[{"photo_id":"1345215522","filename":"file5"},{"photo_id":"1345215512","filename":"file2"},{"photo_id":"1345215519","filename":"file4"},{"photo_id":"1345215508","filename":"file1"},{"photo_id":"1345215506","filename":"file0"},{"photo_id":"1345215516","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345215522":["hashtag1","hashtag2"]},{"1345215516":["hashtag1","hashtag2"]},{"1345215519":["hashtag1","hashtag2"]},{"1345215512":["hashtag1","hashtag2"]},{"1345215506":["hashtag1","hashtag2"]},{"1345215508":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345215522, 1345215516, 1345215519, 1345215512, 1345215506, 1345215508)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.64460611343384 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:44:31.853485
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_53_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_47_5789.jpg', 2), ('/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_42_6726.jpg', 2), ('/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_35_5729.jpg', 2), ('/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_29_5715.jpg', 2), ('/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_23_5760.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_53_5779.jpg', '/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_47_5789.jpg', '/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_42_6726.jpg', '/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_35_5729.jpg', '/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_29_5715.jpg', '/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_23_5760.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_53_5779.jpg
/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_47_5789.jpg
/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_42_6726.jpg
/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_35_5729.jpg
/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_29_5715.jpg
/home/nano/Desktop/images/18032025/19/44/image_18032025_19_44_23_5760.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345215563","1345215566","1345215553","1345215547","1345215541","1345215559"],"photo_ids_order":["1345215541","1345215547","1345215553","1345215559","1345215563","1345215566"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/61f02f8886f2deafb2f9022889b02063.jpg","text":"TemporaryFile(/tmp/multipartBody2768755063796913389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323532249,"filename":"image_18032025_19_44_29_5715.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/54493f45a7e208e173adc73ccfac859a.jpg","text":"TemporaryFile(/tmp/multipartBody4686367283970347963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323532249,"filename":"image_18032025_19_44_23_5760.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/88cdd7205cd45e5a1bfd037a28e1bd7d.jpg","text":"TemporaryFile(/tmp/multipartBody2673611440039424389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323532249,"filename":"image_18032025_19_44_42_6726.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4089672f7b24a89456d915b9b592fabb.jpg","text":"TemporaryFile(/tmp/multipartBody1073338053759129550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323532249,"filename":"image_18032025_19_44_47_5789.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f456b24476d828852ce12eb0b13c3a7d.jpg","text":"TemporaryFile(/tmp/multipartBody7303376032254091669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323532249,"filename":"image_18032025_19_44_53_5779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ae2315b0c8f0bb8f1e72962ce76312c1.jpg","text":"TemporaryFile(/tmp/multipartBody5233168740834481489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323532249,"filename":"image_18032025_19_44_35_5729.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345215553","file1":"1345215547","file0":"1345215541","file4":"1345215563","file5":"1345215566","file3":"1345215559"},"map_files_photo_id_array":[{"photo_id":"1345215566","filename":"file5"},{"photo_id":"1345215553","filename":"file2"},{"photo_id":"1345215563","filename":"file4"},{"photo_id":"1345215547","filename":"file1"},{"photo_id":"1345215541","filename":"file0"},{"photo_id":"1345215559","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345215563":["hashtag1","hashtag2"]},{"1345215566":["hashtag1","hashtag2"]},{"1345215553":["hashtag1","hashtag2"]},{"1345215547":["hashtag1","hashtag2"]},{"1345215541":["hashtag1","hashtag2"]},{"1345215559":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345215563, 1345215566, 1345215553, 1345215547, 1345215541, 1345215559)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.86558961868286 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:45:32.050353
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_53_5600.jpg', 2), ('/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_48_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_41_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_35_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_29_5924.jpg', 2), ('/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_23_5949.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_53_5600.jpg', '/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_48_6648.jpg', '/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_41_5751.jpg', '/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_35_5832.jpg', '/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_29_5924.jpg', '/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_23_5949.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_53_5600.jpg
/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_48_6648.jpg
/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_41_5751.jpg
/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_35_5832.jpg
/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_29_5924.jpg
/home/nano/Desktop/images/18032025/19/45/image_18032025_19_45_23_5949.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345215587","1345215598","1345215595","1345215582","1345215601","1345215591"],"photo_ids_order":["1345215582","1345215587","1345215591","1345215595","1345215598","1345215601"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7c26fc3cb5667829b3664d8d597e0d1a.jpg","text":"TemporaryFile(/tmp/multipartBody2762397511600913783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323592436,"filename":"image_18032025_19_45_48_6648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b28c4854726932d366c0bb591e6fa14f.jpg","text":"TemporaryFile(/tmp/multipartBody4108232582175011552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323592436,"filename":"image_18032025_19_45_29_5924.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/60c2130bc63f415c5db7b64e68076f7c.jpg","text":"TemporaryFile(/tmp/multipartBody4408539550748628751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323592436,"filename":"image_18032025_19_45_35_5832.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c639213e035fbe14dada7bf980a9593.jpg","text":"TemporaryFile(/tmp/multipartBody3108303373237739461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323592436,"filename":"image_18032025_19_45_53_5600.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8399e92a2184c1ad04e2723307033e3c.jpg","text":"TemporaryFile(/tmp/multipartBody594165651282804721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323592436,"filename":"image_18032025_19_45_23_5949.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b48ccc9d760d27693484680e1926a41b.jpg","text":"TemporaryFile(/tmp/multipartBody3055672997183940861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323592436,"filename":"image_18032025_19_45_41_5751.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345215591","file1":"1345215587","file0":"1345215582","file4":"1345215598","file5":"1345215601","file3":"1345215595"},"map_files_photo_id_array":[{"photo_id":"1345215601","filename":"file5"},{"photo_id":"1345215591","filename":"file2"},{"photo_id":"1345215598","filename":"file4"},{"photo_id":"1345215587","filename":"file1"},{"photo_id":"1345215582","filename":"file0"},{"photo_id":"1345215595","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345215587":["hashtag1","hashtag2"]},{"1345215598":["hashtag1","hashtag2"]},{"1345215595":["hashtag1","hashtag2"]},{"1345215582":["hashtag1","hashtag2"]},{"1345215601":["hashtag1","hashtag2"]},{"1345215591":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345215587, 1345215598, 1345215595, 1345215582, 1345215601, 1345215591)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.13238286972046 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:46:32.146403
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_54_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_47_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_41_5636.jpg', 2), ('/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_36_6656.jpg', 2), ('/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_29_5617.jpg', 2), ('/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_23_5622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_54_6624.jpg', '/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_47_5622.jpg', '/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_41_5636.jpg', '/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_36_6656.jpg', '/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_29_5617.jpg', '/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_23_5622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_54_6624.jpg
/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_47_5622.jpg
/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_41_5636.jpg
/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_36_6656.jpg
/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_29_5617.jpg
/home/nano/Desktop/images/18032025/19/46/image_18032025_19_46_23_5622.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345215791","1345215740","1345215626","1345215617","1345215622","1345215783"],"photo_ids_order":["1345215617","1345215622","1345215626","1345215740","1345215783","1345215791"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/667b73d16ceae3a9833ccb074850b039.jpg","text":"TemporaryFile(/tmp/multipartBody6827915828389177068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323652486,"filename":"image_18032025_19_46_23_5622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cc743884de57bb2730e4772c9cc5c2b5.jpg","text":"TemporaryFile(/tmp/multipartBody807514187111921020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323652486,"filename":"image_18032025_19_46_36_6656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d06811cafbdc80c0b6879b070e9739f4.jpg","text":"TemporaryFile(/tmp/multipartBody6424768005613296528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323652486,"filename":"image_18032025_19_46_41_5636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62719a70aff448fe66d0914f58bbfdb3.jpg","text":"TemporaryFile(/tmp/multipartBody1592249343705143551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323652486,"filename":"image_18032025_19_46_54_6624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/33a20cb51ecb55e5399d7a81d1505ada.jpg","text":"TemporaryFile(/tmp/multipartBody1154786583227160844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323652486,"filename":"image_18032025_19_46_47_5622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bb04c8d4fd455085431c4a6f01c87254.jpg","text":"TemporaryFile(/tmp/multipartBody8929581448466554204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323652486,"filename":"image_18032025_19_46_29_5617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345215626","file1":"1345215622","file0":"1345215617","file4":"1345215783","file5":"1345215791","file3":"1345215740"},"map_files_photo_id_array":[{"photo_id":"1345215791","filename":"file5"},{"photo_id":"1345215626","filename":"file2"},{"photo_id":"1345215783","filename":"file4"},{"photo_id":"1345215622","filename":"file1"},{"photo_id":"1345215617","filename":"file0"},{"photo_id":"1345215740","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345215791":["hashtag1","hashtag2"]},{"1345215740":["hashtag1","hashtag2"]},{"1345215626":["hashtag1","hashtag2"]},{"1345215617":["hashtag1","hashtag2"]},{"1345215622":["hashtag1","hashtag2"]},{"1345215783":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345215791, 1345215740, 1345215626, 1345215617, 1345215622, 1345215783)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.737096071243286 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:47:32.303155
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_54_5912.jpg', 2), ('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_48_5840.jpg', 2), ('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_42_6812.jpg', 2), ('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_35_5704.jpg', 2), ('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_29_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_24_6667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_54_5912.jpg', '/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_48_5840.jpg', '/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_42_6812.jpg', '/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_35_5704.jpg', '/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_29_5613.jpg', '/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_24_6667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_54_5912.jpg
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_48_5840.jpg
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_42_6812.jpg
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_35_5704.jpg
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_29_5613.jpg
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_24_6667.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3009347915649414 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:48:02.839238
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_54_5912.jpg', 2), ('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_48_5840.jpg', 2), ('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_42_6812.jpg', 2), ('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_35_5704.jpg', 2), ('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_29_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_24_6667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_54_5912.jpg', '/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_48_5840.jpg', '/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_42_6812.jpg', '/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_35_5704.jpg', '/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_29_5613.jpg', '/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_24_6667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_54_5912.jpg
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_48_5840.jpg
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_42_6812.jpg
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_35_5704.jpg
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_29_5613.jpg
/home/nano/Desktop/images/18032025/19/47/image_18032025_19_47_24_6667.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345215851","1345215854","1345215857","1345215862","1345215847","1345215849"],"photo_ids_order":["1345215847","1345215849","1345215851","1345215854","1345215857","1345215862"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d576f0f8750cb07af071b5a8e07f2e52.jpg","text":"TemporaryFile(/tmp/multipartBody80013716167737819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323743232,"filename":"image_18032025_19_47_42_6812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7fe22be521d4a237f90aecac571c4fc6.jpg","text":"TemporaryFile(/tmp/multipartBody2388795043727836537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323743232,"filename":"image_18032025_19_47_35_5704.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/64394bd6b2d79ab1fc9236a9a410a504.jpg","text":"TemporaryFile(/tmp/multipartBody167990626724598909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323743232,"filename":"image_18032025_19_47_29_5613.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c94ccb536de73c0bc190bafc3efcf57.jpg","text":"TemporaryFile(/tmp/multipartBody6193601199947298805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323743232,"filename":"image_18032025_19_47_24_6667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8c6bae0a6a67e7da720c725f6806ea9f.jpg","text":"TemporaryFile(/tmp/multipartBody8245841875577709442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323743232,"filename":"image_18032025_19_47_54_5912.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca3d4d2d8d93ecbf2302fdb8ac4e8121.jpg","text":"TemporaryFile(/tmp/multipartBody3763828565210512189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323743232,"filename":"image_18032025_19_47_48_5840.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345215851","file1":"1345215849","file0":"1345215847","file4":"1345215857","file5":"1345215862","file3":"1345215854"},"map_files_photo_id_array":[{"photo_id":"1345215862","filename":"file5"},{"photo_id":"1345215851","filename":"file2"},{"photo_id":"1345215857","filename":"file4"},{"photo_id":"1345215849","filename":"file1"},{"photo_id":"1345215847","filename":"file0"},{"photo_id":"1345215854","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345215851":["hashtag1","hashtag2"]},{"1345215854":["hashtag1","hashtag2"]},{"1345215857":["hashtag1","hashtag2"]},{"1345215862":["hashtag1","hashtag2"]},{"1345215847":["hashtag1","hashtag2"]},{"1345215849":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345215851, 1345215854, 1345215857, 1345215862, 1345215847, 1345215849)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.15584635734558 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:49:03.190110
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_54_5878.jpg', 2), ('/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_48_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_42_6058.jpg', 2), ('/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_36_6028.jpg', 2), ('/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_30_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_24_6851.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_54_5878.jpg', '/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_48_5872.jpg', '/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_42_6058.jpg', '/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_36_6028.jpg', '/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_30_5908.jpg', '/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_24_6851.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_54_5878.jpg
/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_48_5872.jpg
/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_42_6058.jpg
/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_36_6028.jpg
/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_30_5908.jpg
/home/nano/Desktop/images/18032025/19/48/image_18032025_19_48_24_6851.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345215890","1345215887","1345215889","1345215892","1345215888","1345215897"],"photo_ids_order":["1345215887","1345215888","1345215889","1345215890","1345215892","1345215897"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bfea95b3a45ff236a03c0cc9e6c5ba94.jpg","text":"TemporaryFile(/tmp/multipartBody5778990454865348117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323803859,"filename":"image_18032025_19_48_36_6028.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/daa813e9cbba591c2e6e9393a0ee0213.jpg","text":"TemporaryFile(/tmp/multipartBody2009517954227700029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323803859,"filename":"image_18032025_19_48_54_5878.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf4d6a6baa3cc5d71eca5a25ce6159ee.jpg","text":"TemporaryFile(/tmp/multipartBody1373858986687251866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323803859,"filename":"image_18032025_19_48_42_6058.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5baf264dfbe3ca29029b610ad805826a.jpg","text":"TemporaryFile(/tmp/multipartBody5863457276349116002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323803859,"filename":"image_18032025_19_48_30_5908.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/65062a057cd7b314dd73f0d7ec7845cb.jpg","text":"TemporaryFile(/tmp/multipartBody8958450449107959017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323803859,"filename":"image_18032025_19_48_48_5872.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e21d1f2a500d83a49558567b8199e1c7.jpg","text":"TemporaryFile(/tmp/multipartBody4188212498282087773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323803859,"filename":"image_18032025_19_48_24_6851.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345215889","file1":"1345215888","file0":"1345215887","file4":"1345215892","file5":"1345215897","file3":"1345215890"},"map_files_photo_id_array":[{"photo_id":"1345215897","filename":"file5"},{"photo_id":"1345215889","filename":"file2"},{"photo_id":"1345215892","filename":"file4"},{"photo_id":"1345215888","filename":"file1"},{"photo_id":"1345215887","filename":"file0"},{"photo_id":"1345215890","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345215890":["hashtag1","hashtag2"]},{"1345215887":["hashtag1","hashtag2"]},{"1345215889":["hashtag1","hashtag2"]},{"1345215892":["hashtag1","hashtag2"]},{"1345215888":["hashtag1","hashtag2"]},{"1345215897":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345215890, 1345215887, 1345215889, 1345215892, 1345215888, 1345215897)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.64280891418457 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:50:03.002178
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_53_5846.jpg', 2), ('/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_47_5834.jpg', 2), ('/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_41_5782.jpg', 2), ('/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_35_5824.jpg', 2), ('/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_30_5968.jpg', 2), ('/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_24_5847.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_53_5846.jpg', '/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_47_5834.jpg', '/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_41_5782.jpg', '/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_35_5824.jpg', '/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_30_5968.jpg', '/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_24_5847.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_53_5846.jpg
/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_47_5834.jpg
/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_41_5782.jpg
/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_35_5824.jpg
/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_30_5968.jpg
/home/nano/Desktop/images/18032025/19/49/image_18032025_19_49_24_5847.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345215953","1345216004","1345215962","1345215956","1345215958","1345215981"],"photo_ids_order":["1345215953","1345215956","1345215958","1345215962","1345215981","1345216004"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/777c7f04f3f03285f9f14cd5d1ca2bcf.jpg","text":"TemporaryFile(/tmp/multipartBody9043690044845774894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323863458,"filename":"image_18032025_19_49_53_5846.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3df83725d89cd9b876b70708af483461.jpg","text":"TemporaryFile(/tmp/multipartBody5184696245155510596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323863458,"filename":"image_18032025_19_49_24_5847.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/092459a7a770e59c418c34e18a1e8dd6.jpg","text":"TemporaryFile(/tmp/multipartBody8163807787461935864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323863458,"filename":"image_18032025_19_49_35_5824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6be29ba32dc4dde9b5c40bc9d9bb5bee.jpg","text":"TemporaryFile(/tmp/multipartBody7741040546396277722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323863458,"filename":"image_18032025_19_49_47_5834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dcd99ddd9fd23502edf5850b67fdfdc2.jpg","text":"TemporaryFile(/tmp/multipartBody7102942884408802968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323863458,"filename":"image_18032025_19_49_41_5782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/522f57db914f8933a657def568fbbf77.jpg","text":"TemporaryFile(/tmp/multipartBody4800978369026668402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323863458,"filename":"image_18032025_19_49_30_5968.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345215958","file1":"1345215956","file0":"1345215953","file4":"1345215981","file5":"1345216004","file3":"1345215962"},"map_files_photo_id_array":[{"photo_id":"1345216004","filename":"file5"},{"photo_id":"1345215958","filename":"file2"},{"photo_id":"1345215981","filename":"file4"},{"photo_id":"1345215956","filename":"file1"},{"photo_id":"1345215953","filename":"file0"},{"photo_id":"1345215962","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345215953":["hashtag1","hashtag2"]},{"1345216004":["hashtag1","hashtag2"]},{"1345215962":["hashtag1","hashtag2"]},{"1345215956":["hashtag1","hashtag2"]},{"1345215958":["hashtag1","hashtag2"]},{"1345215981":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345215953, 1345216004, 1345215962, 1345215956, 1345215958, 1345215981)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.42614006996155 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:51:02.170608
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_54_5990.jpg', 2), ('/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_48_6863.jpg', 2), ('/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_41_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_35_5815.jpg', 2), ('/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_29_5836.jpg', 2), ('/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_23_5828.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_54_5990.jpg', '/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_48_6863.jpg', '/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_41_5847.jpg', '/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_35_5815.jpg', '/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_29_5836.jpg', '/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_23_5828.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_54_5990.jpg
/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_48_6863.jpg
/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_41_5847.jpg
/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_35_5815.jpg
/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_29_5836.jpg
/home/nano/Desktop/images/18032025/19/50/image_18032025_19_50_23_5828.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345216079","1345216052","1345216043","1345216069","1345216057","1345216076"],"photo_ids_order":["1345216043","1345216052","1345216057","1345216069","1345216076","1345216079"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/19a3ef453f3051c2499294e8455fe496.jpg","text":"TemporaryFile(/tmp/multipartBody4276989099397511997asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323922608,"filename":"image_18032025_19_50_23_5828.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/06e8f7f6ab12680bc5fe18f136559eb6.jpg","text":"TemporaryFile(/tmp/multipartBody6567760101883281807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323922608,"filename":"image_18032025_19_50_48_6863.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/07a1e771870b4906eefe5be89a77bf53.jpg","text":"TemporaryFile(/tmp/multipartBody8386865201584604425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323922608,"filename":"image_18032025_19_50_54_5990.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/72da3e042ccad8ed3bce4deb857879e1.jpg","text":"TemporaryFile(/tmp/multipartBody698822681205063293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323922608,"filename":"image_18032025_19_50_35_5815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8935cb4a169a89a5c9103f402fcdfddc.jpg","text":"TemporaryFile(/tmp/multipartBody4221287353783335624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323922608,"filename":"image_18032025_19_50_41_5847.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a2535a82fb76300e601d416e045cf7e.jpg","text":"TemporaryFile(/tmp/multipartBody4274631230193328627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323922608,"filename":"image_18032025_19_50_29_5836.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345216057","file1":"1345216052","file0":"1345216043","file4":"1345216076","file5":"1345216079","file3":"1345216069"},"map_files_photo_id_array":[{"photo_id":"1345216079","filename":"file5"},{"photo_id":"1345216057","filename":"file2"},{"photo_id":"1345216076","filename":"file4"},{"photo_id":"1345216052","filename":"file1"},{"photo_id":"1345216043","filename":"file0"},{"photo_id":"1345216069","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345216079":["hashtag1","hashtag2"]},{"1345216052":["hashtag1","hashtag2"]},{"1345216043":["hashtag1","hashtag2"]},{"1345216069":["hashtag1","hashtag2"]},{"1345216057":["hashtag1","hashtag2"]},{"1345216076":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345216079, 1345216052, 1345216043, 1345216069, 1345216057, 1345216076)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.20769429206848 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:52:02.232335
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_54_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_47_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_41_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_36_6768.jpg', 2), ('/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_29_6125.jpg', 2), ('/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_23_5669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_54_6616.jpg', '/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_47_5630.jpg', '/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_41_5644.jpg', '/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_36_6768.jpg', '/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_29_6125.jpg', '/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_23_5669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_54_6616.jpg
/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_47_5630.jpg
/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_41_5644.jpg
/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_36_6768.jpg
/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_29_6125.jpg
/home/nano/Desktop/images/18032025/19/51/image_18032025_19_51_23_5669.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345216171","1345216159","1345216164","1345216167","1345216176","1345216158"],"photo_ids_order":["1345216158","1345216159","1345216164","1345216167","1345216171","1345216176"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ae0348be47a2b76bce72fc823fb1e67.jpg","text":"TemporaryFile(/tmp/multipartBody5130405789684076184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323982614,"filename":"image_18032025_19_51_29_6125.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/56ca426dbf791d301cb310329ae9a915.jpg","text":"TemporaryFile(/tmp/multipartBody8586740612392548448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323982614,"filename":"image_18032025_19_51_47_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e953bc066913d0e3f9f850e109519121.jpg","text":"TemporaryFile(/tmp/multipartBody402254977338374845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323982614,"filename":"image_18032025_19_51_41_5644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c65b7a7dee48b7b997b73b94e486ec1f.jpg","text":"TemporaryFile(/tmp/multipartBody4077091506819629535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323982614,"filename":"image_18032025_19_51_36_6768.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db376d589f3a71c0b5f87de7e828aef8.jpg","text":"TemporaryFile(/tmp/multipartBody3385527704847575897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323982614,"filename":"image_18032025_19_51_23_5669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3c42e7922b7bd806139017c38c425a9a.jpg","text":"TemporaryFile(/tmp/multipartBody5412238671713091888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742323982614,"filename":"image_18032025_19_51_54_6616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345216164","file1":"1345216159","file0":"1345216158","file4":"1345216171","file5":"1345216176","file3":"1345216167"},"map_files_photo_id_array":[{"photo_id":"1345216176","filename":"file5"},{"photo_id":"1345216164","filename":"file2"},{"photo_id":"1345216171","filename":"file4"},{"photo_id":"1345216159","filename":"file1"},{"photo_id":"1345216158","filename":"file0"},{"photo_id":"1345216167","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345216171":["hashtag1","hashtag2"]},{"1345216159":["hashtag1","hashtag2"]},{"1345216164":["hashtag1","hashtag2"]},{"1345216167":["hashtag1","hashtag2"]},{"1345216176":["hashtag1","hashtag2"]},{"1345216158":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345216171, 1345216159, 1345216164, 1345216167, 1345216176, 1345216158)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.823089361190796 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:53:02.419446
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_53_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_48_6665.jpg', 2), ('/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_41_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_35_5632.jpg', 2), ('/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_30_6674.jpg', 2), ('/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_23_5648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_53_5662.jpg', '/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_48_6665.jpg', '/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_41_5651.jpg', '/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_35_5632.jpg', '/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_30_6674.jpg', '/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_23_5648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_53_5662.jpg
/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_48_6665.jpg
/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_41_5651.jpg
/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_35_5632.jpg
/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_30_6674.jpg
/home/nano/Desktop/images/18032025/19/52/image_18032025_19_52_23_5648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345216445","1345216315","1345216402","1345216461","1345216359","1345216428"],"photo_ids_order":["1345216315","1345216359","1345216402","1345216428","1345216445","1345216461"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8a4f45b967a85e2806fe62f2c464f15a.jpg","text":"TemporaryFile(/tmp/multipartBody8922164250917202130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324042806,"filename":"image_18032025_19_52_30_6674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/50ffc8d86520e8243929e25407dc1dca.jpg","text":"TemporaryFile(/tmp/multipartBody5171770254593537547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324042806,"filename":"image_18032025_19_52_53_5662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ea5d1a32d46608ed4c32dbb4af1eaa2.jpg","text":"TemporaryFile(/tmp/multipartBody9177235153857988476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324042806,"filename":"image_18032025_19_52_41_5651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/76e6866149367e7b0a2ab63143c6c745.jpg","text":"TemporaryFile(/tmp/multipartBody7257553183569402326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324042806,"filename":"image_18032025_19_52_23_5648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9644020be0d0998d0fc3a4c16c18ac60.jpg","text":"TemporaryFile(/tmp/multipartBody1952224861504087412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324042806,"filename":"image_18032025_19_52_48_6665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ab7e46d29cf7c2de990c5c20a7068e73.jpg","text":"TemporaryFile(/tmp/multipartBody2523101602444757685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324042806,"filename":"image_18032025_19_52_35_5632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345216402","file1":"1345216359","file0":"1345216315","file4":"1345216445","file5":"1345216461","file3":"1345216428"},"map_files_photo_id_array":[{"photo_id":"1345216461","filename":"file5"},{"photo_id":"1345216402","filename":"file2"},{"photo_id":"1345216445","filename":"file4"},{"photo_id":"1345216359","filename":"file1"},{"photo_id":"1345216315","filename":"file0"},{"photo_id":"1345216428","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345216445":["hashtag1","hashtag2"]},{"1345216315":["hashtag1","hashtag2"]},{"1345216402":["hashtag1","hashtag2"]},{"1345216461":["hashtag1","hashtag2"]},{"1345216359":["hashtag1","hashtag2"]},{"1345216428":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345216445, 1345216315, 1345216402, 1345216461, 1345216359, 1345216428)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.82684636116028 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:54:02.895371
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_54_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_47_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_42_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_35_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_29_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_24_6643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_54_6643.jpg', '/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_47_5642.jpg', '/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_42_6643.jpg', '/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_35_5653.jpg', '/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_29_5643.jpg', '/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_24_6643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_54_6643.jpg
/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_47_5642.jpg
/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_42_6643.jpg
/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_35_5653.jpg
/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_29_5643.jpg
/home/nano/Desktop/images/18032025/19/53/image_18032025_19_53_24_6643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345216595","1345216594","1345216599","1345216596","1345216605","1345216602"],"photo_ids_order":["1345216594","1345216595","1345216596","1345216599","1345216602","1345216605"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f9857b0b55d626c9b6f4dd4afdb6698.jpg","text":"TemporaryFile(/tmp/multipartBody5272974174715804834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324103236,"filename":"image_18032025_19_53_47_5642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c8f3713884f0049136017565620812c0.jpg","text":"TemporaryFile(/tmp/multipartBody2863034391060428204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324103236,"filename":"image_18032025_19_53_54_6643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2f5b6a302bb040217a557942adba698a.jpg","text":"TemporaryFile(/tmp/multipartBody1817501675542637065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324103236,"filename":"image_18032025_19_53_35_5653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/281cb2373ad5e5212486eeda8dcdec7f.jpg","text":"TemporaryFile(/tmp/multipartBody3335670704006906669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324103236,"filename":"image_18032025_19_53_42_6643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0052fb858f99f99da1caa8217af08ba4.jpg","text":"TemporaryFile(/tmp/multipartBody5921847566505280055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324103236,"filename":"image_18032025_19_53_24_6643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6f180bbddccacb30b9b011319db48257.jpg","text":"TemporaryFile(/tmp/multipartBody4240685296669419995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324103236,"filename":"image_18032025_19_53_29_5643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345216596","file1":"1345216595","file0":"1345216594","file4":"1345216602","file5":"1345216605","file3":"1345216599"},"map_files_photo_id_array":[{"photo_id":"1345216605","filename":"file5"},{"photo_id":"1345216596","filename":"file2"},{"photo_id":"1345216602","filename":"file4"},{"photo_id":"1345216595","filename":"file1"},{"photo_id":"1345216594","filename":"file0"},{"photo_id":"1345216599","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345216595":["hashtag1","hashtag2"]},{"1345216594":["hashtag1","hashtag2"]},{"1345216599":["hashtag1","hashtag2"]},{"1345216596":["hashtag1","hashtag2"]},{"1345216605":["hashtag1","hashtag2"]},{"1345216602":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345216595, 1345216594, 1345216599, 1345216596, 1345216605, 1345216602)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.224787712097168 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:55:02.584514
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_53_5771.jpg', 2), ('/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_47_5709.jpg', 2), ('/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_42_6812.jpg', 2), ('/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_35_5674.jpg', 2), ('/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_29_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_23_5835.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_53_5771.jpg', '/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_47_5709.jpg', '/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_42_6812.jpg', '/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_35_5674.jpg', '/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_29_5832.jpg', '/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_23_5835.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_53_5771.jpg
/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_47_5709.jpg
/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_42_6812.jpg
/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_35_5674.jpg
/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_29_5832.jpg
/home/nano/Desktop/images/18032025/19/54/image_18032025_19_54_23_5835.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345216652","1345216651","1345216723","1345216680","1345216682","1345216679"],"photo_ids_order":["1345216651","1345216652","1345216679","1345216680","1345216682","1345216723"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d7ee3348c88d2156996beee272d656eb.jpg","text":"TemporaryFile(/tmp/multipartBody4749757622252905025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324163002,"filename":"image_18032025_19_54_47_5709.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9b6bb5cf53a7b5686e4bf9698668988c.jpg","text":"TemporaryFile(/tmp/multipartBody5248129530932977821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324163002,"filename":"image_18032025_19_54_53_5771.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/95fde2425ecf7ab3667b42e91198d41e.jpg","text":"TemporaryFile(/tmp/multipartBody3865028682770112737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324163002,"filename":"image_18032025_19_54_23_5835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/978f4ed7c833621f2f04034966c1235e.jpg","text":"TemporaryFile(/tmp/multipartBody5064857857065127572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324163002,"filename":"image_18032025_19_54_35_5674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c7da75760ab8958def5b7f8908e6967c.jpg","text":"TemporaryFile(/tmp/multipartBody2162091546422109183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324163002,"filename":"image_18032025_19_54_29_5832.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bcdf0cdda0dc95b2454af42ec975ac45.jpg","text":"TemporaryFile(/tmp/multipartBody457744674559151006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324163002,"filename":"image_18032025_19_54_42_6812.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345216679","file1":"1345216652","file0":"1345216651","file4":"1345216682","file5":"1345216723","file3":"1345216680"},"map_files_photo_id_array":[{"photo_id":"1345216723","filename":"file5"},{"photo_id":"1345216679","filename":"file2"},{"photo_id":"1345216682","filename":"file4"},{"photo_id":"1345216652","filename":"file1"},{"photo_id":"1345216651","filename":"file0"},{"photo_id":"1345216680","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345216652":["hashtag1","hashtag2"]},{"1345216651":["hashtag1","hashtag2"]},{"1345216723":["hashtag1","hashtag2"]},{"1345216680":["hashtag1","hashtag2"]},{"1345216682":["hashtag1","hashtag2"]},{"1345216679":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345216652, 1345216651, 1345216723, 1345216680, 1345216682, 1345216679)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.32768225669861 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:56:02.805220
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_53_5837.jpg', 2), ('/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_47_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_41_5717.jpg', 2), ('/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_36_6742.jpg', 2), ('/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_29_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_23_5768.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_53_5837.jpg', '/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_47_5749.jpg', '/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_41_5717.jpg', '/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_36_6742.jpg', '/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_29_5838.jpg', '/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_23_5768.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_53_5837.jpg
/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_47_5749.jpg
/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_41_5717.jpg
/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_36_6742.jpg
/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_29_5838.jpg
/home/nano/Desktop/images/18032025/19/55/image_18032025_19_55_23_5768.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345216787","1345216783","1345216785","1345216788","1345216790","1345216784"],"photo_ids_order":["1345216783","1345216784","1345216785","1345216787","1345216788","1345216790"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ebbf2a65c38d5da3de1444dfae9b70b.jpg","text":"TemporaryFile(/tmp/multipartBody8957838326022622783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324223236,"filename":"image_18032025_19_55_36_6742.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f10b753fe45b472a1c79e1f5b18733f3.jpg","text":"TemporaryFile(/tmp/multipartBody1218289223815823631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324223236,"filename":"image_18032025_19_55_53_5837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/baaec305c4ed029feb1d3e21db015dfd.jpg","text":"TemporaryFile(/tmp/multipartBody7977462996567597065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324223236,"filename":"image_18032025_19_55_41_5717.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d1c656cde0f6ce0960633e5d33c66355.jpg","text":"TemporaryFile(/tmp/multipartBody3286161522368360410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324223236,"filename":"image_18032025_19_55_29_5838.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/686986156ed6cd577eb7927507958387.jpg","text":"TemporaryFile(/tmp/multipartBody7002275872640275079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324223236,"filename":"image_18032025_19_55_23_5768.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/75b4e30b1fd9aabb3cbfc4011729b68d.jpg","text":"TemporaryFile(/tmp/multipartBody396730179553332478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324223236,"filename":"image_18032025_19_55_47_5749.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345216785","file1":"1345216784","file0":"1345216783","file4":"1345216788","file5":"1345216790","file3":"1345216787"},"map_files_photo_id_array":[{"photo_id":"1345216790","filename":"file5"},{"photo_id":"1345216785","filename":"file2"},{"photo_id":"1345216788","filename":"file4"},{"photo_id":"1345216784","filename":"file1"},{"photo_id":"1345216783","filename":"file0"},{"photo_id":"1345216787","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345216787":["hashtag1","hashtag2"]},{"1345216783":["hashtag1","hashtag2"]},{"1345216785":["hashtag1","hashtag2"]},{"1345216788":["hashtag1","hashtag2"]},{"1345216790":["hashtag1","hashtag2"]},{"1345216784":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345216787, 1345216783, 1345216785, 1345216788, 1345216790, 1345216784)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.936737060546875 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:57:02.890448
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_54_6616.jpg', 2), ('/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_47_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_41_5665.jpg', 2), ('/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_36_5957.jpg', 2), ('/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_30_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_23_5725.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_54_6616.jpg', '/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_47_5651.jpg', '/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_41_5665.jpg', '/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_36_5957.jpg', '/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_30_6637.jpg', '/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_23_5725.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_54_6616.jpg
/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_47_5651.jpg
/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_41_5665.jpg
/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_36_5957.jpg
/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_30_6637.jpg
/home/nano/Desktop/images/18032025/19/56/image_18032025_19_56_23_5725.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345216892","1345216967","1345217011","1345216939","1345216989","1345216917"],"photo_ids_order":["1345216892","1345216917","1345216939","1345216967","1345216989","1345217011"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9a612583d9c30242eaaa310ae88aa2eb.jpg","text":"TemporaryFile(/tmp/multipartBody5165058183895365898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324283276,"filename":"image_18032025_19_56_54_6616.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0d14c47c197b3b9f364e3528b64bbfe1.jpg","text":"TemporaryFile(/tmp/multipartBody2860398918224818169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324283276,"filename":"image_18032025_19_56_36_5957.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e0f08716e08208dd85ae666dc38afb65.jpg","text":"TemporaryFile(/tmp/multipartBody5113900062989668574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324283276,"filename":"image_18032025_19_56_23_5725.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cb3b66329b4b709405520fe122047e4b.jpg","text":"TemporaryFile(/tmp/multipartBody2043071876164074044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324283276,"filename":"image_18032025_19_56_41_5665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3b15b01829eadda6189ae0e9f59f914.jpg","text":"TemporaryFile(/tmp/multipartBody6926465751675433089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324283276,"filename":"image_18032025_19_56_30_6637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/78a19626f245dc8f38590135c4b85ddd.jpg","text":"TemporaryFile(/tmp/multipartBody1393206056461855002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324283276,"filename":"image_18032025_19_56_47_5651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345216939","file1":"1345216917","file0":"1345216892","file4":"1345216989","file5":"1345217011","file3":"1345216967"},"map_files_photo_id_array":[{"photo_id":"1345217011","filename":"file5"},{"photo_id":"1345216939","filename":"file2"},{"photo_id":"1345216989","filename":"file4"},{"photo_id":"1345216917","filename":"file1"},{"photo_id":"1345216892","filename":"file0"},{"photo_id":"1345216967","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345216892":["hashtag1","hashtag2"]},{"1345216967":["hashtag1","hashtag2"]},{"1345217011":["hashtag1","hashtag2"]},{"1345216939":["hashtag1","hashtag2"]},{"1345216989":["hashtag1","hashtag2"]},{"1345216917":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345216892, 1345216967, 1345217011, 1345216939, 1345216989, 1345216917)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.296910762786865 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:58:02.961635
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_53_5629.jpg', 2), ('/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_47_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_42_6644.jpg', 2), ('/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_35_5618.jpg', 2), ('/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_29_5669.jpg', 2), ('/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_24_6651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_53_5629.jpg', '/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_47_5654.jpg', '/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_42_6644.jpg', '/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_35_5618.jpg', '/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_29_5669.jpg', '/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_24_6651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_53_5629.jpg
/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_47_5654.jpg
/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_42_6644.jpg
/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_35_5618.jpg
/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_29_5669.jpg
/home/nano/Desktop/images/18032025/19/57/image_18032025_19_57_24_6651.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345217431","1345217374","1345217233","1345217206","1345217265","1345217321"],"photo_ids_order":["1345217206","1345217233","1345217265","1345217321","1345217374","1345217431"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5b9e49d372bc4bbf1ff1b3bf3f1f32af.jpg","text":"TemporaryFile(/tmp/multipartBody2705586895302188105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324343378,"filename":"image_18032025_19_57_24_6651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/abba0fdff8499bae56d26e064fade866.jpg","text":"TemporaryFile(/tmp/multipartBody331010031285761347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324343378,"filename":"image_18032025_19_57_29_5669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3e4562d55a35937d57164a3748a80024.jpg","text":"TemporaryFile(/tmp/multipartBody732042768662062651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324343378,"filename":"image_18032025_19_57_47_5654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d89eba590bb20fa2df518309490848c3.jpg","text":"TemporaryFile(/tmp/multipartBody6157219408593155065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324343378,"filename":"image_18032025_19_57_53_5629.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d0cf4e5e613c5821a38cc6d74e69ea44.jpg","text":"TemporaryFile(/tmp/multipartBody1476547015181151734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324343378,"filename":"image_18032025_19_57_42_6644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4c2959ce700818b0b8c04f9bbe38b4c.jpg","text":"TemporaryFile(/tmp/multipartBody3555138930677417019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324343378,"filename":"image_18032025_19_57_35_5618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345217265","file1":"1345217233","file0":"1345217206","file4":"1345217374","file5":"1345217431","file3":"1345217321"},"map_files_photo_id_array":[{"photo_id":"1345217431","filename":"file5"},{"photo_id":"1345217265","filename":"file2"},{"photo_id":"1345217374","filename":"file4"},{"photo_id":"1345217233","filename":"file1"},{"photo_id":"1345217206","filename":"file0"},{"photo_id":"1345217321","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345217431":["hashtag1","hashtag2"]},{"1345217374":["hashtag1","hashtag2"]},{"1345217233":["hashtag1","hashtag2"]},{"1345217206":["hashtag1","hashtag2"]},{"1345217265":["hashtag1","hashtag2"]},{"1345217321":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345217431, 1345217374, 1345217233, 1345217206, 1345217265, 1345217321)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.79649543762207 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 19:59:02.979211
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_53_5848.jpg', 2), ('/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_47_5900.jpg', 2), ('/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_41_5922.jpg', 2), ('/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_35_5906.jpg', 2), ('/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_29_5910.jpg', 2), ('/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_24_5722.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_53_5848.jpg', '/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_47_5900.jpg', '/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_41_5922.jpg', '/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_35_5906.jpg', '/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_29_5910.jpg', '/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_24_5722.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_53_5848.jpg
/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_47_5900.jpg
/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_41_5922.jpg
/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_35_5906.jpg
/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_29_5910.jpg
/home/nano/Desktop/images/18032025/19/58/image_18032025_19_58_24_5722.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345217956","1345217898","1345217832","1345218005","1345217864","1345218082"],"photo_ids_order":["1345217832","1345217864","1345217898","1345217956","1345218005","1345218082"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/33f188efb4bdb6aba9ab18ff5b61eeb5.jpg","text":"TemporaryFile(/tmp/multipartBody6904662920932623555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324403503,"filename":"image_18032025_19_58_35_5906.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3aec4a11c7db6f0d84d2ed5f6898ba29.jpg","text":"TemporaryFile(/tmp/multipartBody5733904999876699737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324403503,"filename":"image_18032025_19_58_41_5922.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/96064af274df4abee432966100f9684c.jpg","text":"TemporaryFile(/tmp/multipartBody7106010636177457988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324403503,"filename":"image_18032025_19_58_53_5848.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d58781212ae7b19d7c608a5bc4d55cf6.jpg","text":"TemporaryFile(/tmp/multipartBody2758140536616717679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324403503,"filename":"image_18032025_19_58_29_5910.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ab0dfed345887a6d46e483505b0c5b3.jpg","text":"TemporaryFile(/tmp/multipartBody7110357813003815321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324403503,"filename":"image_18032025_19_58_47_5900.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9f06841e43777cde6e878e77a717435.jpg","text":"TemporaryFile(/tmp/multipartBody8350564265619998738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324403503,"filename":"image_18032025_19_58_24_5722.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345217898","file1":"1345217864","file0":"1345217832","file4":"1345218005","file5":"1345218082","file3":"1345217956"},"map_files_photo_id_array":[{"photo_id":"1345218082","filename":"file5"},{"photo_id":"1345217898","filename":"file2"},{"photo_id":"1345218005","filename":"file4"},{"photo_id":"1345217864","filename":"file1"},{"photo_id":"1345217832","filename":"file0"},{"photo_id":"1345217956","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345217956":["hashtag1","hashtag2"]},{"1345217898":["hashtag1","hashtag2"]},{"1345217832":["hashtag1","hashtag2"]},{"1345218005":["hashtag1","hashtag2"]},{"1345217864":["hashtag1","hashtag2"]},{"1345218082":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345217956, 1345217898, 1345217832, 1345218005, 1345217864, 1345218082)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.28449463844299 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:00:02.890192
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_47_5801.jpg', 2), ('/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_41_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_36_6667.jpg', 2), ('/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_29_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_23_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_17_5610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_47_5801.jpg', '/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_41_5625.jpg', '/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_36_6667.jpg', '/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_29_5620.jpg', '/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_23_6632.jpg', '/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_17_5610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_47_5801.jpg
/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_41_5625.jpg
/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_36_6667.jpg
/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_29_5620.jpg
/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_23_6632.jpg
/home/nano/Desktop/images/18032025/19/59/image_18032025_19_59_17_5610.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345218436","1345218379","1345218403","1345218444","1345218449","1345218440"],"photo_ids_order":["1345218379","1345218403","1345218436","1345218440","1345218444","1345218449"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e21afe10d22ceedc820cc3641c078ad.jpg","text":"TemporaryFile(/tmp/multipartBody2950836783491163108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324463285,"filename":"image_18032025_19_59_36_6667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cd89abfda67b55528fe0a4459dddcdd0.jpg","text":"TemporaryFile(/tmp/multipartBody8324922889234016294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324463285,"filename":"image_18032025_19_59_47_5801.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f44c4467be4266320be9fcb50e3dc94f.jpg","text":"TemporaryFile(/tmp/multipartBody6162238613739183021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324463285,"filename":"image_18032025_19_59_41_5625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f25de5ff232362a49a1038e1a89dbb5a.jpg","text":"TemporaryFile(/tmp/multipartBody2265477498348131772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324463285,"filename":"image_18032025_19_59_23_6632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6447d40b1aa4ab24f818130d91a8d7ad.jpg","text":"TemporaryFile(/tmp/multipartBody513396639257962732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324463285,"filename":"image_18032025_19_59_17_5610.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/56c09e82ec356ff1d2d699124de0b444.jpg","text":"TemporaryFile(/tmp/multipartBody2307163967259027399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324463285,"filename":"image_18032025_19_59_29_5620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345218436","file1":"1345218403","file0":"1345218379","file4":"1345218444","file5":"1345218449","file3":"1345218440"},"map_files_photo_id_array":[{"photo_id":"1345218449","filename":"file5"},{"photo_id":"1345218436","filename":"file2"},{"photo_id":"1345218444","filename":"file4"},{"photo_id":"1345218403","filename":"file1"},{"photo_id":"1345218379","filename":"file0"},{"photo_id":"1345218440","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345218436":["hashtag1","hashtag2"]},{"1345218379":["hashtag1","hashtag2"]},{"1345218403":["hashtag1","hashtag2"]},{"1345218444":["hashtag1","hashtag2"]},{"1345218449":["hashtag1","hashtag2"]},{"1345218440":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345218436, 1345218379, 1345218403, 1345218444, 1345218449, 1345218440)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.056840896606445 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:01:03.159896
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_53_5628.jpg', 2), ('/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_47_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_42_6686.jpg', 2), ('/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_35_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_29_5866.jpg', 2), ('/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_23_5863.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_53_5628.jpg', '/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_47_5639.jpg', '/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_42_6686.jpg', '/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_35_5662.jpg', '/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_29_5866.jpg', '/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_23_5863.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_53_5628.jpg
/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_47_5639.jpg
/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_42_6686.jpg
/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_35_5662.jpg
/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_29_5866.jpg
/home/nano/Desktop/images/18032025/20/00/image_18032025_20_00_23_5863.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345218787","1345218684","1345218747","1345218863","1345218857","1345218812"],"photo_ids_order":["1345218684","1345218747","1345218787","1345218812","1345218857","1345218863"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eacec0e1cf908abaa23488f099f4829f.jpg","text":"TemporaryFile(/tmp/multipartBody6367612889676295929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324523523,"filename":"image_18032025_20_00_42_6686.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/63076be1a7cff73ea6dce5af90c5e78f.jpg","text":"TemporaryFile(/tmp/multipartBody7815040123362753363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324523523,"filename":"image_18032025_20_00_53_5628.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10d3f224e78590f65d64df02507ebb6a.jpg","text":"TemporaryFile(/tmp/multipartBody1621997185026781239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324523523,"filename":"image_18032025_20_00_47_5639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a7d6adfe98fdd4e8fab4fb202ad6abc2.jpg","text":"TemporaryFile(/tmp/multipartBody2291067925456688231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324523523,"filename":"image_18032025_20_00_23_5863.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3ef79eb0b07cbb070dd88dc6ea2409d.jpg","text":"TemporaryFile(/tmp/multipartBody1264757866394907022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324523523,"filename":"image_18032025_20_00_29_5866.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/904b18d4d37d595fb78f44a18cbd6069.jpg","text":"TemporaryFile(/tmp/multipartBody1710733140889781095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324523523,"filename":"image_18032025_20_00_35_5662.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345218787","file1":"1345218747","file0":"1345218684","file4":"1345218857","file5":"1345218863","file3":"1345218812"},"map_files_photo_id_array":[{"photo_id":"1345218863","filename":"file5"},{"photo_id":"1345218787","filename":"file2"},{"photo_id":"1345218857","filename":"file4"},{"photo_id":"1345218747","filename":"file1"},{"photo_id":"1345218684","filename":"file0"},{"photo_id":"1345218812","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345218787":["hashtag1","hashtag2"]},{"1345218684":["hashtag1","hashtag2"]},{"1345218747":["hashtag1","hashtag2"]},{"1345218863":["hashtag1","hashtag2"]},{"1345218857":["hashtag1","hashtag2"]},{"1345218812":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345218787, 1345218684, 1345218747, 1345218863, 1345218857, 1345218812)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.388237237930298 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:02:02.155437
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_53_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_48_6655.jpg', 2), ('/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_41_5647.jpg', 2), ('/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_35_5619.jpg', 2), ('/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_30_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_23_5613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_53_5625.jpg', '/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_48_6655.jpg', '/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_41_5647.jpg', '/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_35_5619.jpg', '/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_30_6632.jpg', '/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_23_5613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_53_5625.jpg
/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_48_6655.jpg
/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_41_5647.jpg
/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_35_5619.jpg
/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_30_6632.jpg
/home/nano/Desktop/images/18032025/20/01/image_18032025_20_01_23_5613.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345219290","1345219191","1345219236","1345219079","1345219271","1345219123"],"photo_ids_order":["1345219079","1345219123","1345219191","1345219236","1345219271","1345219290"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ebc9c08cf8a902084fdafa1736189075.jpg","text":"TemporaryFile(/tmp/multipartBody8637170946656084606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324582519,"filename":"image_18032025_20_01_23_5613.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5fba01b683f845785347ebeac47cf124.jpg","text":"TemporaryFile(/tmp/multipartBody452483748166229119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324582519,"filename":"image_18032025_20_01_41_5647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ae8afb615b5716aeb117b9ddbd3bb5f6.jpg","text":"TemporaryFile(/tmp/multipartBody5297638991974412130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324582519,"filename":"image_18032025_20_01_35_5619.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d48c82e78c4957523874b6db706ad6db.jpg","text":"TemporaryFile(/tmp/multipartBody4088586347704570143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324582519,"filename":"image_18032025_20_01_53_5625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/03a7fd38e11bd4dff91c66eddcaa0386.jpg","text":"TemporaryFile(/tmp/multipartBody2284970769258369328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324582519,"filename":"image_18032025_20_01_30_6632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/468099d9617e6bf2c5fdecc5993b2d2e.jpg","text":"TemporaryFile(/tmp/multipartBody7823301570027172492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324582519,"filename":"image_18032025_20_01_48_6655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345219191","file1":"1345219123","file0":"1345219079","file4":"1345219271","file5":"1345219290","file3":"1345219236"},"map_files_photo_id_array":[{"photo_id":"1345219290","filename":"file5"},{"photo_id":"1345219191","filename":"file2"},{"photo_id":"1345219271","filename":"file4"},{"photo_id":"1345219123","filename":"file1"},{"photo_id":"1345219079","filename":"file0"},{"photo_id":"1345219236","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345219290":["hashtag1","hashtag2"]},{"1345219191":["hashtag1","hashtag2"]},{"1345219236":["hashtag1","hashtag2"]},{"1345219079":["hashtag1","hashtag2"]},{"1345219271":["hashtag1","hashtag2"]},{"1345219123":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345219290, 1345219191, 1345219236, 1345219079, 1345219271, 1345219123)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.597849369049072 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:03:02.129449
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_54_6849.jpg', 2), ('/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_47_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_41_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_35_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_29_5748.jpg', 2), ('/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_23_6642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_54_6849.jpg', '/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_47_5870.jpg', '/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_41_5868.jpg', '/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_35_5898.jpg', '/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_29_5748.jpg', '/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_23_6642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_54_6849.jpg
/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_47_5870.jpg
/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_41_5868.jpg
/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_35_5898.jpg
/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_29_5748.jpg
/home/nano/Desktop/images/18032025/20/02/image_18032025_20_02_23_6642.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345219488","1345219482","1345219485","1345219530","1345219503","1345219493"],"photo_ids_order":["1345219482","1345219485","1345219488","1345219493","1345219503","1345219530"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/733b8f0ffa3704bcb605425cf0b72126.jpg","text":"TemporaryFile(/tmp/multipartBody6770793150590848548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324642596,"filename":"image_18032025_20_02_41_5868.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bfa1c032cf7f313e89ad632c6d87a185.jpg","text":"TemporaryFile(/tmp/multipartBody8893084481635796818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324642596,"filename":"image_18032025_20_02_54_6849.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/92a88591da5dff543540499bdc0f2200.jpg","text":"TemporaryFile(/tmp/multipartBody8429024110038403584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324642596,"filename":"image_18032025_20_02_47_5870.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ce7a61e1d41e8a91e3398e431c04d96a.jpg","text":"TemporaryFile(/tmp/multipartBody1668277374841974778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324642596,"filename":"image_18032025_20_02_23_6642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f5fe04719ccf27deec1137a6ea097736.jpg","text":"TemporaryFile(/tmp/multipartBody3729152811409813906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324642596,"filename":"image_18032025_20_02_29_5748.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e0c1663eae5cf06fee10099959826973.jpg","text":"TemporaryFile(/tmp/multipartBody161091769951367902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324642596,"filename":"image_18032025_20_02_35_5898.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345219488","file1":"1345219485","file0":"1345219482","file4":"1345219503","file5":"1345219530","file3":"1345219493"},"map_files_photo_id_array":[{"photo_id":"1345219530","filename":"file5"},{"photo_id":"1345219488","filename":"file2"},{"photo_id":"1345219503","filename":"file4"},{"photo_id":"1345219485","filename":"file1"},{"photo_id":"1345219482","filename":"file0"},{"photo_id":"1345219493","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345219488":["hashtag1","hashtag2"]},{"1345219482":["hashtag1","hashtag2"]},{"1345219485":["hashtag1","hashtag2"]},{"1345219530":["hashtag1","hashtag2"]},{"1345219503":["hashtag1","hashtag2"]},{"1345219493":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345219488, 1345219482, 1345219485, 1345219530, 1345219503, 1345219493)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.99049615859985 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:04:02.691769
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_54_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_48_6894.jpg', 2), ('/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_41_5774.jpg', 2), ('/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_35_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_29_5891.jpg', 2), ('/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_23_6099.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_54_5790.jpg', '/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_48_6894.jpg', '/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_41_5774.jpg', '/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_35_5788.jpg', '/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_29_5891.jpg', '/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_23_6099.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_54_5790.jpg
/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_48_6894.jpg
/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_41_5774.jpg
/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_35_5788.jpg
/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_29_5891.jpg
/home/nano/Desktop/images/18032025/20/03/image_18032025_20_03_23_6099.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345219752","1345219716","1345219685","1345219655","1345219619","1345219630"],"photo_ids_order":["1345219619","1345219630","1345219655","1345219685","1345219716","1345219752"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d922329aefd135451db9cf114fa2957c.jpg","text":"TemporaryFile(/tmp/multipartBody7674989518834583757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324703141,"filename":"image_18032025_20_03_23_6099.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4eacc07c9ed0acab388ea4dea7916cbd.jpg","text":"TemporaryFile(/tmp/multipartBody8869122964138491454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324703141,"filename":"image_18032025_20_03_29_5891.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe1416cf9942773a10a650fe1ca1a77c.jpg","text":"TemporaryFile(/tmp/multipartBody6258111383196350336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324703141,"filename":"image_18032025_20_03_35_5788.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cc4a74da29ed392c348df99825635a28.jpg","text":"TemporaryFile(/tmp/multipartBody5494602672366683119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324703141,"filename":"image_18032025_20_03_41_5774.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d67e72e358eb7cb4dd20f1be90cfda22.jpg","text":"TemporaryFile(/tmp/multipartBody2473025699511332018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324703141,"filename":"image_18032025_20_03_54_5790.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a30a455545ec03c2a5c466f4071e2b1e.jpg","text":"TemporaryFile(/tmp/multipartBody151858116910258610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324703141,"filename":"image_18032025_20_03_48_6894.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345219655","file1":"1345219630","file0":"1345219619","file4":"1345219716","file5":"1345219752","file3":"1345219685"},"map_files_photo_id_array":[{"photo_id":"1345219752","filename":"file5"},{"photo_id":"1345219655","filename":"file2"},{"photo_id":"1345219716","filename":"file4"},{"photo_id":"1345219630","filename":"file1"},{"photo_id":"1345219619","filename":"file0"},{"photo_id":"1345219685","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345219752":["hashtag1","hashtag2"]},{"1345219716":["hashtag1","hashtag2"]},{"1345219685":["hashtag1","hashtag2"]},{"1345219655":["hashtag1","hashtag2"]},{"1345219619":["hashtag1","hashtag2"]},{"1345219630":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345219752, 1345219716, 1345219685, 1345219655, 1345219619, 1345219630)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.547646045684814 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:05:02.622363
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_53_5747.jpg', 2), ('/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_47_5908.jpg', 2), ('/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_41_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_35_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_29_5884.jpg', 2), ('/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_23_5831.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_53_5747.jpg', '/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_47_5908.jpg', '/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_41_6127.jpg', '/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_35_5860.jpg', '/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_29_5884.jpg', '/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_23_5831.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_53_5747.jpg
/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_47_5908.jpg
/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_41_6127.jpg
/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_35_5860.jpg
/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_29_5884.jpg
/home/nano/Desktop/images/18032025/20/04/image_18032025_20_04_23_5831.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345219875","1345219860","1345219856","1345219871","1345219865","1345219868"],"photo_ids_order":["1345219856","1345219860","1345219865","1345219868","1345219871","1345219875"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d44cc030e3a1c204d0b391d729372a2c.jpg","text":"TemporaryFile(/tmp/multipartBody7992194139922937312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324763072,"filename":"image_18032025_20_04_23_5831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8a9c5908cd99d2156964b66464d0c75.jpg","text":"TemporaryFile(/tmp/multipartBody60712879306622592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324763072,"filename":"image_18032025_20_04_47_5908.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b0ae5ece6fef271dc55237ed2e37e5d1.jpg","text":"TemporaryFile(/tmp/multipartBody1518562933467803041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324763072,"filename":"image_18032025_20_04_53_5747.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe6a94a32410a481afb0e915c09df8ca.jpg","text":"TemporaryFile(/tmp/multipartBody6479294687232726865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324763072,"filename":"image_18032025_20_04_29_5884.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3389f2498f7629bab47bec2f5017c6a6.jpg","text":"TemporaryFile(/tmp/multipartBody2632307404026504708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324763072,"filename":"image_18032025_20_04_41_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad57ee16d3fe232a4f614ebfdc2ee4c1.jpg","text":"TemporaryFile(/tmp/multipartBody2250534735637353940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324763072,"filename":"image_18032025_20_04_35_5860.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345219865","file1":"1345219860","file0":"1345219856","file4":"1345219871","file5":"1345219875","file3":"1345219868"},"map_files_photo_id_array":[{"photo_id":"1345219875","filename":"file5"},{"photo_id":"1345219865","filename":"file2"},{"photo_id":"1345219871","filename":"file4"},{"photo_id":"1345219860","filename":"file1"},{"photo_id":"1345219856","filename":"file0"},{"photo_id":"1345219868","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345219875":["hashtag1","hashtag2"]},{"1345219860":["hashtag1","hashtag2"]},{"1345219856":["hashtag1","hashtag2"]},{"1345219871":["hashtag1","hashtag2"]},{"1345219865":["hashtag1","hashtag2"]},{"1345219868":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345219875, 1345219860, 1345219856, 1345219871, 1345219865, 1345219868)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.58311057090759 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:06:02.678531
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_54_6132.jpg', 2), ('/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_47_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_42_6803.jpg', 2), ('/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_35_5788.jpg', 2), ('/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_29_5824.jpg', 2), ('/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_23_5974.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_54_6132.jpg', '/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_47_5838.jpg', '/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_42_6803.jpg', '/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_35_5788.jpg', '/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_29_5824.jpg', '/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_23_5974.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_54_6132.jpg
/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_47_5838.jpg
/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_42_6803.jpg
/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_35_5788.jpg
/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_29_5824.jpg
/home/nano/Desktop/images/18032025/20/05/image_18032025_20_05_23_5974.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345219906","1345219902","1345219895","1345219898","1345219919","1345219891"],"photo_ids_order":["1345219891","1345219895","1345219898","1345219902","1345219906","1345219919"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/55278f33a91a43758debf69a30d6c7b8.jpg","text":"TemporaryFile(/tmp/multipartBody6045184923699118871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324823145,"filename":"image_18032025_20_05_29_5824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7da27dc75df6318c0bd1fa823b9ffb79.jpg","text":"TemporaryFile(/tmp/multipartBody7244254787450885672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324823145,"filename":"image_18032025_20_05_35_5788.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2ff19d570b1268aaf8ade197de8ee2d4.jpg","text":"TemporaryFile(/tmp/multipartBody5489275112075968300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324823145,"filename":"image_18032025_20_05_47_5838.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6a8911559ec4c53b1701d6d9e8fecd45.jpg","text":"TemporaryFile(/tmp/multipartBody2862485239198235738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324823145,"filename":"image_18032025_20_05_42_6803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d9826ded59834aa1f61c8c4d202c21a4.jpg","text":"TemporaryFile(/tmp/multipartBody8429572342036200776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324823145,"filename":"image_18032025_20_05_23_5974.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2dbd0b968cbe6d793e497a5e96e15472.jpg","text":"TemporaryFile(/tmp/multipartBody6393189189994374103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324823145,"filename":"image_18032025_20_05_54_6132.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345219898","file1":"1345219895","file0":"1345219891","file4":"1345219906","file5":"1345219919","file3":"1345219902"},"map_files_photo_id_array":[{"photo_id":"1345219919","filename":"file5"},{"photo_id":"1345219898","filename":"file2"},{"photo_id":"1345219906","filename":"file4"},{"photo_id":"1345219895","filename":"file1"},{"photo_id":"1345219891","filename":"file0"},{"photo_id":"1345219902","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345219906":["hashtag1","hashtag2"]},{"1345219902":["hashtag1","hashtag2"]},{"1345219895":["hashtag1","hashtag2"]},{"1345219898":["hashtag1","hashtag2"]},{"1345219919":["hashtag1","hashtag2"]},{"1345219891":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345219906, 1345219902, 1345219895, 1345219898, 1345219919, 1345219891)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.176019430160522 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:07:02.657492
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_53_5596.jpg', 2), ('/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_48_6630.jpg', 2), ('/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_41_5666.jpg', 2), ('/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_35_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_30_6019.jpg', 2), ('/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_24_6645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_53_5596.jpg', '/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_48_6630.jpg', '/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_41_5666.jpg', '/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_35_5681.jpg', '/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_30_6019.jpg', '/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_24_6645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_53_5596.jpg
/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_48_6630.jpg
/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_41_5666.jpg
/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_35_5681.jpg
/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_30_6019.jpg
/home/nano/Desktop/images/18032025/20/06/image_18032025_20_06_24_6645.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345220089","1345220151","1345220067","1345220121","1345220195","1345220096"],"photo_ids_order":["1345220067","1345220089","1345220096","1345220121","1345220151","1345220195"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b8c4961d0ec075504d66df185884a899.jpg","text":"TemporaryFile(/tmp/multipartBody7082702627506193681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324883032,"filename":"image_18032025_20_06_48_6630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2cbe8638263677f9a85797b247269040.jpg","text":"TemporaryFile(/tmp/multipartBody1039663294750695319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324883032,"filename":"image_18032025_20_06_30_6019.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7063c298bf2f53620af9b4f0d8d0af24.jpg","text":"TemporaryFile(/tmp/multipartBody1183816474079985493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324883032,"filename":"image_18032025_20_06_53_5596.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4f4bd3df04a7aff04de83d9c8667d542.jpg","text":"TemporaryFile(/tmp/multipartBody126775972283973466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324883032,"filename":"image_18032025_20_06_35_5681.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e5b7042cd1d49c23bb1cd28e3017bc0.jpg","text":"TemporaryFile(/tmp/multipartBody4105031932392707294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324883032,"filename":"image_18032025_20_06_24_6645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f5289ae3f25321ec8eadbe77eb23031.jpg","text":"TemporaryFile(/tmp/multipartBody7746517032603764714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324883032,"filename":"image_18032025_20_06_41_5666.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345220096","file1":"1345220089","file0":"1345220067","file4":"1345220151","file5":"1345220195","file3":"1345220121"},"map_files_photo_id_array":[{"photo_id":"1345220195","filename":"file5"},{"photo_id":"1345220096","filename":"file2"},{"photo_id":"1345220151","filename":"file4"},{"photo_id":"1345220089","filename":"file1"},{"photo_id":"1345220067","filename":"file0"},{"photo_id":"1345220121","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345220089":["hashtag1","hashtag2"]},{"1345220151":["hashtag1","hashtag2"]},{"1345220067":["hashtag1","hashtag2"]},{"1345220121":["hashtag1","hashtag2"]},{"1345220195":["hashtag1","hashtag2"]},{"1345220096":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345220089, 1345220151, 1345220067, 1345220121, 1345220195, 1345220096)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.44119071960449 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:08:02.948764
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_54_6634.jpg', 2), ('/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_47_5611.jpg', 2), ('/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_41_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_36_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_29_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_23_5657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_54_6634.jpg', '/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_47_5611.jpg', '/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_41_5633.jpg', '/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_36_6657.jpg', '/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_29_5663.jpg', '/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_23_5657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_54_6634.jpg
/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_47_5611.jpg
/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_41_5633.jpg
/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_36_6657.jpg
/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_29_5663.jpg
/home/nano/Desktop/images/18032025/20/07/image_18032025_20_07_23_5657.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345220443","1345220467","1345220512","1345220487","1345220390","1345220417"],"photo_ids_order":["1345220390","1345220417","1345220443","1345220467","1345220487","1345220512"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/328ff46948e1871d02465f4c188225b2.jpg","text":"TemporaryFile(/tmp/multipartBody7762512716372626829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324943390,"filename":"image_18032025_20_07_41_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c1ef2d78cce45e222e73f85025ef7d05.jpg","text":"TemporaryFile(/tmp/multipartBody1972976879473738620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324943390,"filename":"image_18032025_20_07_36_6657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5dec88bb8d893f4e15168e259dcb8500.jpg","text":"TemporaryFile(/tmp/multipartBody4566051756053820025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324943390,"filename":"image_18032025_20_07_23_5657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0bcb0f6b6ac0aceaf68c26f9fca2b53b.jpg","text":"TemporaryFile(/tmp/multipartBody1775025369011773784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324943390,"filename":"image_18032025_20_07_29_5663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/808cb50b072d3839ad5c6bf67e0ebd97.jpg","text":"TemporaryFile(/tmp/multipartBody968847663949327342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324943390,"filename":"image_18032025_20_07_54_6634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/37cf880eeac6fd98499ca89c39eec649.jpg","text":"TemporaryFile(/tmp/multipartBody6734338433569763191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742324943390,"filename":"image_18032025_20_07_47_5611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345220443","file1":"1345220417","file0":"1345220390","file4":"1345220487","file5":"1345220512","file3":"1345220467"},"map_files_photo_id_array":[{"photo_id":"1345220512","filename":"file5"},{"photo_id":"1345220443","filename":"file2"},{"photo_id":"1345220487","filename":"file4"},{"photo_id":"1345220417","filename":"file1"},{"photo_id":"1345220390","filename":"file0"},{"photo_id":"1345220467","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345220443":["hashtag1","hashtag2"]},{"1345220467":["hashtag1","hashtag2"]},{"1345220512":["hashtag1","hashtag2"]},{"1345220487":["hashtag1","hashtag2"]},{"1345220390":["hashtag1","hashtag2"]},{"1345220417":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345220443, 1345220467, 1345220512, 1345220487, 1345220390, 1345220417)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.44785141944885 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:09:03.081351
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_53_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_48_6649.jpg', 2), ('/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_41_5675.jpg', 2), ('/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_35_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_30_6759.jpg', 2), ('/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_23_5704.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_53_5646.jpg', '/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_48_6649.jpg', '/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_41_5675.jpg', '/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_35_5676.jpg', '/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_30_6759.jpg', '/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_23_5704.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_53_5646.jpg
/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_48_6649.jpg
/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_41_5675.jpg
/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_35_5676.jpg
/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_30_6759.jpg
/home/nano/Desktop/images/18032025/20/08/image_18032025_20_08_23_5704.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345220662","1345220685","1345220727","1345220634","1345220759","1345220708"],"photo_ids_order":["1345220634","1345220662","1345220685","1345220708","1345220727","1345220759"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/462349efb0c17ffd25f884fb8e9e5aab.jpg","text":"TemporaryFile(/tmp/multipartBody5966924401449311861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325003458,"filename":"image_18032025_20_08_48_6649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/28a9327bf50690034f8530295e57bea1.jpg","text":"TemporaryFile(/tmp/multipartBody1129307760460405044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325003458,"filename":"image_18032025_20_08_41_5675.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6253b3b67e3b532887aeb66da8e09a82.jpg","text":"TemporaryFile(/tmp/multipartBody6124253122810766432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325003458,"filename":"image_18032025_20_08_30_6759.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c49192a9b05d053b2cd6178da30703b.jpg","text":"TemporaryFile(/tmp/multipartBody142396441712458784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325003458,"filename":"image_18032025_20_08_53_5646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b78bdec9cb5103b5f8471b45dba86c26.jpg","text":"TemporaryFile(/tmp/multipartBody4878618544121916831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325003458,"filename":"image_18032025_20_08_23_5704.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c2d0a90a3dc2699ed99cb987de65e557.jpg","text":"TemporaryFile(/tmp/multipartBody6720372891729356322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325003458,"filename":"image_18032025_20_08_35_5676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345220685","file1":"1345220662","file0":"1345220634","file4":"1345220727","file5":"1345220759","file3":"1345220708"},"map_files_photo_id_array":[{"photo_id":"1345220759","filename":"file5"},{"photo_id":"1345220685","filename":"file2"},{"photo_id":"1345220727","filename":"file4"},{"photo_id":"1345220662","filename":"file1"},{"photo_id":"1345220634","filename":"file0"},{"photo_id":"1345220708","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345220662":["hashtag1","hashtag2"]},{"1345220685":["hashtag1","hashtag2"]},{"1345220727":["hashtag1","hashtag2"]},{"1345220634":["hashtag1","hashtag2"]},{"1345220759":["hashtag1","hashtag2"]},{"1345220708":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345220662, 1345220685, 1345220727, 1345220634, 1345220759, 1345220708)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.33479571342468 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:10:03.063313
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_53_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_47_5899.jpg', 2), ('/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_41_5847.jpg', 2), ('/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_35_5783.jpg', 2), ('/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_30_6712.jpg', 2), ('/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_23_5757.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_53_5776.jpg', '/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_47_5899.jpg', '/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_41_5847.jpg', '/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_35_5783.jpg', '/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_30_6712.jpg', '/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_23_5757.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_53_5776.jpg
/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_47_5899.jpg
/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_41_5847.jpg
/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_35_5783.jpg
/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_30_6712.jpg
/home/nano/Desktop/images/18032025/20/09/image_18032025_20_09_23_5757.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345221315","1345221165","1345221111","1345221371","1345221212","1345221250"],"photo_ids_order":["1345221111","1345221165","1345221212","1345221250","1345221315","1345221371"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/33fc0d5b7c0be2a5acfa055a60ce16fc.jpg","text":"TemporaryFile(/tmp/multipartBody1101280366442033618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325063489,"filename":"image_18032025_20_09_30_6712.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6d5be1ca166a2355166991becfc3ae49.jpg","text":"TemporaryFile(/tmp/multipartBody5974589793412618260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325063489,"filename":"image_18032025_20_09_47_5899.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/095fbe8af12b91983583f09db9caba2c.jpg","text":"TemporaryFile(/tmp/multipartBody8931654989856351713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325063489,"filename":"image_18032025_20_09_53_5776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0cc071ba42b00167f00709525cddc83c.jpg","text":"TemporaryFile(/tmp/multipartBody1345466779253743702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325063489,"filename":"image_18032025_20_09_23_5757.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ea19468507537a08952e05d68da5e05a.jpg","text":"TemporaryFile(/tmp/multipartBody1130473771432095140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325063489,"filename":"image_18032025_20_09_41_5847.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/258bc263b1fff2daf86012025aeb0d67.jpg","text":"TemporaryFile(/tmp/multipartBody1518106406934317409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325063489,"filename":"image_18032025_20_09_35_5783.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345221212","file1":"1345221165","file0":"1345221111","file4":"1345221315","file5":"1345221371","file3":"1345221250"},"map_files_photo_id_array":[{"photo_id":"1345221371","filename":"file5"},{"photo_id":"1345221212","filename":"file2"},{"photo_id":"1345221315","filename":"file4"},{"photo_id":"1345221165","filename":"file1"},{"photo_id":"1345221111","filename":"file0"},{"photo_id":"1345221250","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345221315":["hashtag1","hashtag2"]},{"1345221165":["hashtag1","hashtag2"]},{"1345221111":["hashtag1","hashtag2"]},{"1345221371":["hashtag1","hashtag2"]},{"1345221212":["hashtag1","hashtag2"]},{"1345221250":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345221315, 1345221165, 1345221111, 1345221371, 1345221212, 1345221250)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.29920220375061 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:11:02.170051
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_53_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_48_6643.jpg', 2), ('/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_41_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_35_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_30_6662.jpg', 2), ('/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_23_5642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_53_5622.jpg', '/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_48_6643.jpg', '/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_41_5657.jpg', '/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_35_5646.jpg', '/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_30_6662.jpg', '/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_23_5642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_53_5622.jpg
/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_48_6643.jpg
/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_41_5657.jpg
/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_35_5646.jpg
/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_30_6662.jpg
/home/nano/Desktop/images/18032025/20/10/image_18032025_20_10_23_5642.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345222047","1345221990","1345221966","1345221942","1345222099","1345221926"],"photo_ids_order":["1345221926","1345221942","1345221966","1345221990","1345222047","1345222099"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e6972abab8bcf3dca1e941b664143f8b.jpg","text":"TemporaryFile(/tmp/multipartBody6645494215760416760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325122528,"filename":"image_18032025_20_10_30_6662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5a786437ad827db4777af3a540986635.jpg","text":"TemporaryFile(/tmp/multipartBody9175462518242090414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325122528,"filename":"image_18032025_20_10_35_5646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/105772650a74af890ab70c6cc5f64263.jpg","text":"TemporaryFile(/tmp/multipartBody9098248259533610639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325122528,"filename":"image_18032025_20_10_41_5657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ec68805a6d77f10a4c894e8fd536764.jpg","text":"TemporaryFile(/tmp/multipartBody5272653065680072387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325122528,"filename":"image_18032025_20_10_48_6643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ff00baa56f25c64d69d6a00be2f119ab.jpg","text":"TemporaryFile(/tmp/multipartBody3429838535978525713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325122528,"filename":"image_18032025_20_10_23_5642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/88c07da24096f203e5c61f94fbca2e6f.jpg","text":"TemporaryFile(/tmp/multipartBody4803728574765182382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325122528,"filename":"image_18032025_20_10_53_5622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345221966","file1":"1345221942","file0":"1345221926","file4":"1345222047","file5":"1345222099","file3":"1345221990"},"map_files_photo_id_array":[{"photo_id":"1345222099","filename":"file5"},{"photo_id":"1345221966","filename":"file2"},{"photo_id":"1345222047","filename":"file4"},{"photo_id":"1345221942","filename":"file1"},{"photo_id":"1345221926","filename":"file0"},{"photo_id":"1345221990","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345222047":["hashtag1","hashtag2"]},{"1345221990":["hashtag1","hashtag2"]},{"1345221966":["hashtag1","hashtag2"]},{"1345221942":["hashtag1","hashtag2"]},{"1345222099":["hashtag1","hashtag2"]},{"1345221926":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345222047, 1345221990, 1345221966, 1345221942, 1345222099, 1345221926)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.10482120513916 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:12:02.395465
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_53_5765.jpg', 2), ('/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_47_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_42_6663.jpg', 2), ('/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_35_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_29_5642.jpg', 2), ('/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_24_6648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_53_5765.jpg', '/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_47_5623.jpg', '/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_42_6663.jpg', '/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_35_5676.jpg', '/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_29_5642.jpg', '/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_24_6648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_53_5765.jpg
/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_47_5623.jpg
/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_42_6663.jpg
/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_35_5676.jpg
/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_29_5642.jpg
/home/nano/Desktop/images/18032025/20/11/image_18032025_20_11_24_6648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345222479","1345222443","1345222503","1345222418","1345222321","1345222389"],"photo_ids_order":["1345222321","1345222389","1345222418","1345222443","1345222479","1345222503"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7f5e3e6133ae21e30dd93e9c023c4afb.jpg","text":"TemporaryFile(/tmp/multipartBody5249395575159300717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325182760,"filename":"image_18032025_20_11_29_5642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2da45c16d805822da5023348f9e99796.jpg","text":"TemporaryFile(/tmp/multipartBody2334549844281648972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325182760,"filename":"image_18032025_20_11_35_5676.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c63327c1f60dfb6bffe37cd6564634fd.jpg","text":"TemporaryFile(/tmp/multipartBody5702913456957189033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325182760,"filename":"image_18032025_20_11_24_6648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d9ad7de93f583278b6b089c6c4db446.jpg","text":"TemporaryFile(/tmp/multipartBody2129942508617675437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325182760,"filename":"image_18032025_20_11_42_6663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4ddc7b415f6616cbc221cb6143b34435.jpg","text":"TemporaryFile(/tmp/multipartBody134409414084572833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325182760,"filename":"image_18032025_20_11_53_5765.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62d83fcf043d45dc20bddb1713fbef6b.jpg","text":"TemporaryFile(/tmp/multipartBody250776377628683844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325182760,"filename":"image_18032025_20_11_47_5623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345222418","file1":"1345222389","file0":"1345222321","file4":"1345222479","file5":"1345222503","file3":"1345222443"},"map_files_photo_id_array":[{"photo_id":"1345222503","filename":"file5"},{"photo_id":"1345222418","filename":"file2"},{"photo_id":"1345222479","filename":"file4"},{"photo_id":"1345222389","filename":"file1"},{"photo_id":"1345222321","filename":"file0"},{"photo_id":"1345222443","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345222479":["hashtag1","hashtag2"]},{"1345222443":["hashtag1","hashtag2"]},{"1345222503":["hashtag1","hashtag2"]},{"1345222418":["hashtag1","hashtag2"]},{"1345222321":["hashtag1","hashtag2"]},{"1345222389":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345222479, 1345222443, 1345222503, 1345222418, 1345222321, 1345222389)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.528537273406982 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:13:02.571816
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_53_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_48_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_41_5613.jpg', 2), ('/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_35_6622.jpg', 2), ('/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_29_5625.jpg', 2), ('/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_23_5624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_53_5667.jpg', '/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_48_6657.jpg', '/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_41_5613.jpg', '/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_35_6622.jpg', '/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_29_5625.jpg', '/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_23_5624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_53_5667.jpg
/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_48_6657.jpg
/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_41_5613.jpg
/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_35_6622.jpg
/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_29_5625.jpg
/home/nano/Desktop/images/18032025/20/12/image_18032025_20_12_23_5624.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345222911","1345222850","1345222792","1345222798","1345222825","1345222801"],"photo_ids_order":["1345222792","1345222798","1345222801","1345222825","1345222850","1345222911"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0243405e6850ee3aedf4984f19a8052a.jpg","text":"TemporaryFile(/tmp/multipartBody6491411717648750121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325242906,"filename":"image_18032025_20_12_23_5624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3935726417613bc4caa88ea7fb65fe65.jpg","text":"TemporaryFile(/tmp/multipartBody7470930306443347309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325242906,"filename":"image_18032025_20_12_29_5625.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/71ef5b7e59605be5930f6df2940b4b48.jpg","text":"TemporaryFile(/tmp/multipartBody6577538017701253935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325242906,"filename":"image_18032025_20_12_53_5667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fa886303ac94e364249476db5cffb96c.jpg","text":"TemporaryFile(/tmp/multipartBody8919564238452670656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325242906,"filename":"image_18032025_20_12_48_6657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fdc8756d2345564292274279c55b766e.jpg","text":"TemporaryFile(/tmp/multipartBody330086209965450729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325242906,"filename":"image_18032025_20_12_35_6622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/600e90dcbd154c8943a5edfe3fd39d5f.jpg","text":"TemporaryFile(/tmp/multipartBody2954209221334525526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325242906,"filename":"image_18032025_20_12_41_5613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345222801","file1":"1345222798","file0":"1345222792","file4":"1345222850","file5":"1345222911","file3":"1345222825"},"map_files_photo_id_array":[{"photo_id":"1345222911","filename":"file5"},{"photo_id":"1345222801","filename":"file2"},{"photo_id":"1345222850","filename":"file4"},{"photo_id":"1345222798","filename":"file1"},{"photo_id":"1345222792","filename":"file0"},{"photo_id":"1345222825","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345222911":["hashtag1","hashtag2"]},{"1345222850":["hashtag1","hashtag2"]},{"1345222792":["hashtag1","hashtag2"]},{"1345222798":["hashtag1","hashtag2"]},{"1345222825":["hashtag1","hashtag2"]},{"1345222801":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345222911, 1345222850, 1345222792, 1345222798, 1345222825, 1345222801)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.77456259727478 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:14:02.916337
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_53_5734.jpg', 2), ('/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_47_6658.jpg', 2), ('/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_41_5683.jpg', 2), ('/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_35_5713.jpg', 2), ('/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_29_5672.jpg', 2), ('/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_24_6704.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_53_5734.jpg', '/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_47_6658.jpg', '/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_41_5683.jpg', '/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_35_5713.jpg', '/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_29_5672.jpg', '/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_24_6704.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_53_5734.jpg
/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_47_6658.jpg
/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_41_5683.jpg
/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_35_5713.jpg
/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_29_5672.jpg
/home/nano/Desktop/images/18032025/20/13/image_18032025_20_13_24_6704.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.27231645584106445 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:14:32.250628
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_53_5727.jpg', 2), ('/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_47_5627.jpg', 2), ('/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_42_6689.jpg', 2), ('/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_35_5707.jpg', 2), ('/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_29_5653.jpg', 2), ('/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_23_6616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_53_5727.jpg', '/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_47_5627.jpg', '/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_42_6689.jpg', '/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_35_5707.jpg', '/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_29_5653.jpg', '/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_23_6616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_53_5727.jpg
/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_47_5627.jpg
/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_42_6689.jpg
/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_35_5707.jpg
/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_29_5653.jpg
/home/nano/Desktop/images/18032025/20/14/image_18032025_20_14_23_6616.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345223192","1345223180","1345223240","1345223243","1345223237","1345223224"],"photo_ids_order":["1345223180","1345223192","1345223224","1345223237","1345223240","1345223243"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/51e42a17cfbfca1348572d912b0cb08f.jpg","text":"TemporaryFile(/tmp/multipartBody2735210626479769975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325332621,"filename":"image_18032025_20_14_47_5627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/20e10e44540cb780db18683c33f2ac55.jpg","text":"TemporaryFile(/tmp/multipartBody8606040583892719960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325332621,"filename":"image_18032025_20_14_53_5727.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f2b94855458728710ede0bf59ca5eebc.jpg","text":"TemporaryFile(/tmp/multipartBody7798081872786107442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325332621,"filename":"image_18032025_20_14_29_5653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf5d31dadd53d3f6c956715e2623d31a.jpg","text":"TemporaryFile(/tmp/multipartBody8797431992449922853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325332621,"filename":"image_18032025_20_14_23_6616.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6ec2cdd054c418bef223cb8e76734df3.jpg","text":"TemporaryFile(/tmp/multipartBody4831777074594140691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325332621,"filename":"image_18032025_20_14_35_5707.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e1fed5f5da895cbac5145b4b3f63dac9.jpg","text":"TemporaryFile(/tmp/multipartBody7431218649274795784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325332621,"filename":"image_18032025_20_14_42_6689.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345223224","file1":"1345223192","file0":"1345223180","file4":"1345223240","file5":"1345223243","file3":"1345223237"},"map_files_photo_id_array":[{"photo_id":"1345223243","filename":"file5"},{"photo_id":"1345223224","filename":"file2"},{"photo_id":"1345223240","filename":"file4"},{"photo_id":"1345223192","filename":"file1"},{"photo_id":"1345223180","filename":"file0"},{"photo_id":"1345223237","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345223192":["hashtag1","hashtag2"]},{"1345223180":["hashtag1","hashtag2"]},{"1345223240":["hashtag1","hashtag2"]},{"1345223243":["hashtag1","hashtag2"]},{"1345223237":["hashtag1","hashtag2"]},{"1345223224":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345223192, 1345223180, 1345223240, 1345223243, 1345223237, 1345223224)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.870075702667236 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:15:32.372635
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_54_6670.jpg', 2), ('/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_47_5676.jpg', 2), ('/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_41_5639.jpg', 2), ('/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_36_6704.jpg', 2), ('/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_29_5652.jpg', 2), ('/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_23_5637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_54_6670.jpg', '/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_47_5676.jpg', '/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_41_5639.jpg', '/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_36_6704.jpg', '/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_29_5652.jpg', '/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_23_5637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_54_6670.jpg
/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_47_5676.jpg
/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_41_5639.jpg
/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_36_6704.jpg
/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_29_5652.jpg
/home/nano/Desktop/images/18032025/20/15/image_18032025_20_15_23_5637.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345223465","1345223447","1345223473","1345223422","1345223469","1345223451"],"photo_ids_order":["1345223422","1345223447","1345223451","1345223465","1345223469","1345223473"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49f7c35e4fbdddb4b4d535b8bcbf5c17.jpg","text":"TemporaryFile(/tmp/multipartBody289890691240955094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325392746,"filename":"image_18032025_20_15_36_6704.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b1c8ca30d5ca6a4a328f8412615c1f1b.jpg","text":"TemporaryFile(/tmp/multipartBody3889187540421419833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325392746,"filename":"image_18032025_20_15_47_5676.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/156a886d7fb10c51ee8e0f3ad5506926.jpg","text":"TemporaryFile(/tmp/multipartBody578954055557776172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325392746,"filename":"image_18032025_20_15_23_5637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b9132d644befc25e7f73b9004fa68e75.jpg","text":"TemporaryFile(/tmp/multipartBody5864250270348463856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325392746,"filename":"image_18032025_20_15_54_6670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2bb80e5b1ab694db5d78dfe936c6ff64.jpg","text":"TemporaryFile(/tmp/multipartBody3615231223215766349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325392746,"filename":"image_18032025_20_15_29_5652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/31f19dda56c47dff81c9508a550bdc80.jpg","text":"TemporaryFile(/tmp/multipartBody2348856315368468756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325392746,"filename":"image_18032025_20_15_41_5639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345223451","file1":"1345223447","file0":"1345223422","file4":"1345223469","file5":"1345223473","file3":"1345223465"},"map_files_photo_id_array":[{"photo_id":"1345223473","filename":"file5"},{"photo_id":"1345223451","filename":"file2"},{"photo_id":"1345223469","filename":"file4"},{"photo_id":"1345223447","filename":"file1"},{"photo_id":"1345223422","filename":"file0"},{"photo_id":"1345223465","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345223465":["hashtag1","hashtag2"]},{"1345223447":["hashtag1","hashtag2"]},{"1345223473":["hashtag1","hashtag2"]},{"1345223422":["hashtag1","hashtag2"]},{"1345223469":["hashtag1","hashtag2"]},{"1345223451":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345223465, 1345223447, 1345223473, 1345223422, 1345223469, 1345223451)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.0817768573761 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:16:32.548642
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_53_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_48_6664.jpg', 2), ('/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_41_5648.jpg', 2), ('/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_35_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_30_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_23_5643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_53_5638.jpg', '/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_48_6664.jpg', '/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_41_5648.jpg', '/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_35_5622.jpg', '/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_30_6657.jpg', '/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_23_5643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_53_5638.jpg
/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_48_6664.jpg
/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_41_5648.jpg
/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_35_5622.jpg
/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_30_6657.jpg
/home/nano/Desktop/images/18032025/20/16/image_18032025_20_16_23_5643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345223675","1345223639","1345223630","1345223648","1345223635","1345223700"],"photo_ids_order":["1345223630","1345223635","1345223639","1345223648","1345223675","1345223700"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a70294ca1281e938506682095f4205d5.jpg","text":"TemporaryFile(/tmp/multipartBody7663190625250602913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325452890,"filename":"image_18032025_20_16_30_6657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/21ae1b7857a8365bcc2c7d282a44e7fe.jpg","text":"TemporaryFile(/tmp/multipartBody6170264825256586059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325452890,"filename":"image_18032025_20_16_41_5648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7865b7f93b99df8890277d44ca151670.jpg","text":"TemporaryFile(/tmp/multipartBody3680159217213474654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325452890,"filename":"image_18032025_20_16_53_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eecd6b97cd5c4efe52badf992e02f731.jpg","text":"TemporaryFile(/tmp/multipartBody2775095216874712220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325452890,"filename":"image_18032025_20_16_35_5622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7c3b5be0e0202f74631db5641d17f535.jpg","text":"TemporaryFile(/tmp/multipartBody3433283216735804066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325452890,"filename":"image_18032025_20_16_48_6664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a3ebb7cfc57a6300f9a0a96a4e284e01.jpg","text":"TemporaryFile(/tmp/multipartBody6990501997708811820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325452890,"filename":"image_18032025_20_16_23_5643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345223639","file1":"1345223635","file0":"1345223630","file4":"1345223675","file5":"1345223700","file3":"1345223648"},"map_files_photo_id_array":[{"photo_id":"1345223700","filename":"file5"},{"photo_id":"1345223639","filename":"file2"},{"photo_id":"1345223675","filename":"file4"},{"photo_id":"1345223635","filename":"file1"},{"photo_id":"1345223630","filename":"file0"},{"photo_id":"1345223648","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345223675":["hashtag1","hashtag2"]},{"1345223639":["hashtag1","hashtag2"]},{"1345223630":["hashtag1","hashtag2"]},{"1345223648":["hashtag1","hashtag2"]},{"1345223635":["hashtag1","hashtag2"]},{"1345223700":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345223675, 1345223639, 1345223630, 1345223648, 1345223635, 1345223700)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.06295967102051 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:17:32.671237
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_53_5750.jpg', 2), ('/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_47_6062.jpg', 2), ('/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_41_5633.jpg', 2), ('/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_36_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_29_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_23_5648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_53_5750.jpg', '/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_47_6062.jpg', '/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_41_5633.jpg', '/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_36_6640.jpg', '/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_29_5667.jpg', '/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_23_5648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_53_5750.jpg
/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_47_6062.jpg
/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_41_5633.jpg
/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_36_6640.jpg
/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_29_5667.jpg
/home/nano/Desktop/images/18032025/20/17/image_18032025_20_17_23_5648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345223753","1345223746","1345223749","1345223728","1345223737","1345223733"],"photo_ids_order":["1345223728","1345223733","1345223737","1345223746","1345223749","1345223753"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/72e073bd2220654508564f74be6714c0.jpg","text":"TemporaryFile(/tmp/multipartBody3103019600049432158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325513024,"filename":"image_18032025_20_17_23_5648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2309a890bf3034200fab797f3b8f2487.jpg","text":"TemporaryFile(/tmp/multipartBody656325537017287926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325513024,"filename":"image_18032025_20_17_36_6640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/94e5e290bd259097bc0187e68a34ecc1.jpg","text":"TemporaryFile(/tmp/multipartBody4873371301395476872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325513024,"filename":"image_18032025_20_17_29_5667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1d9e03ec9f6bb91fabcbedef842d502d.jpg","text":"TemporaryFile(/tmp/multipartBody2158892384913040986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325513024,"filename":"image_18032025_20_17_53_5750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e1c436574b08cfc01a6d0109e39532c.jpg","text":"TemporaryFile(/tmp/multipartBody7731238866926266006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325513024,"filename":"image_18032025_20_17_41_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/da749993ccf89f22e1cfb5b1661def94.jpg","text":"TemporaryFile(/tmp/multipartBody1508209857773221360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325513024,"filename":"image_18032025_20_17_47_6062.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345223737","file1":"1345223733","file0":"1345223728","file4":"1345223749","file5":"1345223753","file3":"1345223746"},"map_files_photo_id_array":[{"photo_id":"1345223753","filename":"file5"},{"photo_id":"1345223737","filename":"file2"},{"photo_id":"1345223749","filename":"file4"},{"photo_id":"1345223733","filename":"file1"},{"photo_id":"1345223728","filename":"file0"},{"photo_id":"1345223746","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345223753":["hashtag1","hashtag2"]},{"1345223746":["hashtag1","hashtag2"]},{"1345223749":["hashtag1","hashtag2"]},{"1345223728":["hashtag1","hashtag2"]},{"1345223737":["hashtag1","hashtag2"]},{"1345223733":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345223753, 1345223746, 1345223749, 1345223728, 1345223737, 1345223733)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.10805058479309 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:18:31.767548
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_53_5768.jpg', 2), ('/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_48_5749.jpg', 2), ('/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_42_6732.jpg', 2), ('/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_35_5739.jpg', 2), ('/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_29_5766.jpg', 2), ('/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_24_5777.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_53_5768.jpg', '/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_48_5749.jpg', '/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_42_6732.jpg', '/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_35_5739.jpg', '/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_29_5766.jpg', '/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_24_5777.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_53_5768.jpg
/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_48_5749.jpg
/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_42_6732.jpg
/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_35_5739.jpg
/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_29_5766.jpg
/home/nano/Desktop/images/18032025/20/18/image_18032025_20_18_24_5777.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345223802","1345223858","1345223810","1345223884","1345223908","1345223796"],"photo_ids_order":["1345223796","1345223802","1345223810","1345223858","1345223884","1345223908"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a06aedfcd41c4bd98ee413b2f1a11de2.jpg","text":"TemporaryFile(/tmp/multipartBody5464865668294126160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325572169,"filename":"image_18032025_20_18_48_5749.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/551450d2e114e2d7bba05b4e2269ea46.jpg","text":"TemporaryFile(/tmp/multipartBody2655601583195941170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325572169,"filename":"image_18032025_20_18_35_5739.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/26253ab8866c40c3b7ff18d0fb8f2df2.jpg","text":"TemporaryFile(/tmp/multipartBody4503926646338085467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325572169,"filename":"image_18032025_20_18_42_6732.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/234d570e6ee3cc30d83c9caa9b7324bc.jpg","text":"TemporaryFile(/tmp/multipartBody7691616085640933365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325572169,"filename":"image_18032025_20_18_29_5766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0fc0b7faca4f7dcfef0a38d8be4eeb19.jpg","text":"TemporaryFile(/tmp/multipartBody7375816182304055097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325572169,"filename":"image_18032025_20_18_24_5777.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/36562627640e48ad909ca7eacdbdda3b.jpg","text":"TemporaryFile(/tmp/multipartBody3816575947001253961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325572169,"filename":"image_18032025_20_18_53_5768.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345223810","file1":"1345223802","file0":"1345223796","file4":"1345223884","file5":"1345223908","file3":"1345223858"},"map_files_photo_id_array":[{"photo_id":"1345223908","filename":"file5"},{"photo_id":"1345223810","filename":"file2"},{"photo_id":"1345223884","filename":"file4"},{"photo_id":"1345223802","filename":"file1"},{"photo_id":"1345223796","filename":"file0"},{"photo_id":"1345223858","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345223802":["hashtag1","hashtag2"]},{"1345223858":["hashtag1","hashtag2"]},{"1345223810":["hashtag1","hashtag2"]},{"1345223884":["hashtag1","hashtag2"]},{"1345223908":["hashtag1","hashtag2"]},{"1345223796":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345223802, 1345223858, 1345223810, 1345223884, 1345223908, 1345223796)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.93669009208679 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:19:31.906356
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_54_5831.jpg', 2), ('/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_48_6001.jpg', 2), ('/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_42_6769.jpg', 2), ('/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_35_5779.jpg', 2), ('/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_29_5733.jpg', 2), ('/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_24_5808.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_54_5831.jpg', '/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_48_6001.jpg', '/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_42_6769.jpg', '/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_35_5779.jpg', '/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_29_5733.jpg', '/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_24_5808.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_54_5831.jpg
/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_48_6001.jpg
/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_42_6769.jpg
/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_35_5779.jpg
/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_29_5733.jpg
/home/nano/Desktop/images/18032025/20/19/image_18032025_20_19_24_5808.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345224131","1345224113","1345224122","1345224206","1345224126","1345224275"],"photo_ids_order":["1345224113","1345224122","1345224126","1345224131","1345224206","1345224275"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/49b3bbca8f1935c2993aac1d6562d026.jpg","text":"TemporaryFile(/tmp/multipartBody3141001100082874368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325632316,"filename":"image_18032025_20_19_35_5779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8441057e2a66a867470156d7187e30b5.jpg","text":"TemporaryFile(/tmp/multipartBody4289399320385134674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325632316,"filename":"image_18032025_20_19_54_5831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b4706e2e726d421f2a94fa64d4d47788.jpg","text":"TemporaryFile(/tmp/multipartBody3705637581226412858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325632316,"filename":"image_18032025_20_19_48_6001.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e858145c26f729d1e9c382060770f2bd.jpg","text":"TemporaryFile(/tmp/multipartBody1405430285167580693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325632316,"filename":"image_18032025_20_19_29_5733.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f61a24bbf643533712eee601ad6d8408.jpg","text":"TemporaryFile(/tmp/multipartBody2658308425508499681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325632316,"filename":"image_18032025_20_19_42_6769.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/095da39ad3fdfe32491de06d4115e236.jpg","text":"TemporaryFile(/tmp/multipartBody4495542654782686593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325632316,"filename":"image_18032025_20_19_24_5808.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345224126","file1":"1345224122","file0":"1345224113","file4":"1345224206","file5":"1345224275","file3":"1345224131"},"map_files_photo_id_array":[{"photo_id":"1345224275","filename":"file5"},{"photo_id":"1345224126","filename":"file2"},{"photo_id":"1345224206","filename":"file4"},{"photo_id":"1345224122","filename":"file1"},{"photo_id":"1345224113","filename":"file0"},{"photo_id":"1345224131","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345224131":["hashtag1","hashtag2"]},{"1345224113":["hashtag1","hashtag2"]},{"1345224122":["hashtag1","hashtag2"]},{"1345224206":["hashtag1","hashtag2"]},{"1345224126":["hashtag1","hashtag2"]},{"1345224275":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345224131, 1345224113, 1345224122, 1345224206, 1345224126, 1345224275)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.73244833946228 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:20:32.013011
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_54_5733.jpg', 2), ('/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_48_6783.jpg', 2), ('/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_41_5718.jpg', 2), ('/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_35_5774.jpg', 2), ('/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_24_5722.jpg', 2), ('/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_18_6769.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_54_5733.jpg', '/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_48_6783.jpg', '/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_41_5718.jpg', '/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_35_5774.jpg', '/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_24_5722.jpg', '/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_18_6769.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_54_5733.jpg
/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_48_6783.jpg
/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_41_5718.jpg
/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_35_5774.jpg
/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_24_5722.jpg
/home/nano/Desktop/images/18032025/20/20/image_18032025_20_20_18_6769.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345224338","1345224313","1345224333","1345224309","1345224324","1345224290"],"photo_ids_order":["1345224290","1345224309","1345224313","1345224324","1345224333","1345224338"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0b0f9a7feb2e08fa850dcb57bc501671.jpg","text":"TemporaryFile(/tmp/multipartBody4422033096160252535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325692410,"filename":"image_18032025_20_20_18_6769.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3ab4acf789a1b3509357329addb85f61.jpg","text":"TemporaryFile(/tmp/multipartBody9058390581369763972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325692410,"filename":"image_18032025_20_20_41_5718.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/257ba135063a29396ae88884e0309621.jpg","text":"TemporaryFile(/tmp/multipartBody757849355688735702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325692410,"filename":"image_18032025_20_20_24_5722.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b5cb91459e430c072f49981557345131.jpg","text":"TemporaryFile(/tmp/multipartBody6287009664625643498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325692410,"filename":"image_18032025_20_20_48_6783.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/02168d5563323275c1d77ca33f9621e9.jpg","text":"TemporaryFile(/tmp/multipartBody65028807662339764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325692410,"filename":"image_18032025_20_20_35_5774.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5dfb9f188c9981b95586e9b0fcc75058.jpg","text":"TemporaryFile(/tmp/multipartBody5101821999459901771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325692410,"filename":"image_18032025_20_20_54_5733.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345224313","file1":"1345224309","file0":"1345224290","file4":"1345224333","file5":"1345224338","file3":"1345224324"},"map_files_photo_id_array":[{"photo_id":"1345224338","filename":"file5"},{"photo_id":"1345224313","filename":"file2"},{"photo_id":"1345224333","filename":"file4"},{"photo_id":"1345224309","filename":"file1"},{"photo_id":"1345224290","filename":"file0"},{"photo_id":"1345224324","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345224338":["hashtag1","hashtag2"]},{"1345224313":["hashtag1","hashtag2"]},{"1345224333":["hashtag1","hashtag2"]},{"1345224309":["hashtag1","hashtag2"]},{"1345224324":["hashtag1","hashtag2"]},{"1345224290":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345224338, 1345224313, 1345224333, 1345224309, 1345224324, 1345224290)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.52884268760681 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:21:32.129576
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_53_6619.jpg', 2), ('/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_47_5646.jpg', 2), ('/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_41_5645.jpg', 2), ('/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_36_6631.jpg', 2), ('/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_29_5663.jpg', 2), ('/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_23_5623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_53_6619.jpg', '/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_47_5646.jpg', '/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_41_5645.jpg', '/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_36_6631.jpg', '/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_29_5663.jpg', '/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_23_5623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_53_6619.jpg
/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_47_5646.jpg
/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_41_5645.jpg
/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_36_6631.jpg
/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_29_5663.jpg
/home/nano/Desktop/images/18032025/20/21/image_18032025_20_21_23_5623.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345224437","1345224446","1345224412","1345224450","1345224369","1345224392"],"photo_ids_order":["1345224369","1345224392","1345224412","1345224437","1345224446","1345224450"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1bbac7a07e7d4bb72b4249e3b7348966.jpg","text":"TemporaryFile(/tmp/multipartBody8888852471199950694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325752469,"filename":"image_18032025_20_21_36_6631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a200dd27116c787af209dd97405522b7.jpg","text":"TemporaryFile(/tmp/multipartBody682187877359403476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325752469,"filename":"image_18032025_20_21_29_5663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/65ab66a1fb7211fffbf2b3e067863287.jpg","text":"TemporaryFile(/tmp/multipartBody8959901024972405283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325752469,"filename":"image_18032025_20_21_41_5645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/456afa2dee17e45b48596331e9ba21d9.jpg","text":"TemporaryFile(/tmp/multipartBody3701754725083397405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325752469,"filename":"image_18032025_20_21_23_5623.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b6a8259b85bee2964bc0462cb1387832.jpg","text":"TemporaryFile(/tmp/multipartBody8552778423323554130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325752469,"filename":"image_18032025_20_21_53_6619.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/00d3169b8677c73f6e74eaedbc119456.jpg","text":"TemporaryFile(/tmp/multipartBody7762947785337389701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325752469,"filename":"image_18032025_20_21_47_5646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345224412","file1":"1345224392","file0":"1345224369","file4":"1345224446","file5":"1345224450","file3":"1345224437"},"map_files_photo_id_array":[{"photo_id":"1345224450","filename":"file5"},{"photo_id":"1345224412","filename":"file2"},{"photo_id":"1345224446","filename":"file4"},{"photo_id":"1345224392","filename":"file1"},{"photo_id":"1345224369","filename":"file0"},{"photo_id":"1345224437","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345224437":["hashtag1","hashtag2"]},{"1345224446":["hashtag1","hashtag2"]},{"1345224412":["hashtag1","hashtag2"]},{"1345224450":["hashtag1","hashtag2"]},{"1345224369":["hashtag1","hashtag2"]},{"1345224392":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345224437, 1345224446, 1345224412, 1345224450, 1345224369, 1345224392)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.6454496383667 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:22:32.229027
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_53_5704.jpg', 2), ('/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_47_5681.jpg', 2), ('/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_42_6640.jpg', 2), ('/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_35_5679.jpg', 2), ('/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_29_5631.jpg', 2), ('/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_24_6637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_53_5704.jpg', '/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_47_5681.jpg', '/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_42_6640.jpg', '/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_35_5679.jpg', '/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_29_5631.jpg', '/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_24_6637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_53_5704.jpg
/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_47_5681.jpg
/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_42_6640.jpg
/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_35_5679.jpg
/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_29_5631.jpg
/home/nano/Desktop/images/18032025/20/22/image_18032025_20_22_24_6637.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345224617","1345224622","1345224651","1345224639","1345224633","1345224609"],"photo_ids_order":["1345224609","1345224617","1345224622","1345224633","1345224639","1345224651"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f7103b9cda2baab2d40eb9604645fb06.jpg","text":"TemporaryFile(/tmp/multipartBody7144895529035978854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325812598,"filename":"image_18032025_20_22_47_5681.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aea857a6595e8701aa4aa8432eb484cf.jpg","text":"TemporaryFile(/tmp/multipartBody3663116807329393083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325812598,"filename":"image_18032025_20_22_42_6640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a66363b68f909be815c3302def375b16.jpg","text":"TemporaryFile(/tmp/multipartBody3521413872850932302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325812598,"filename":"image_18032025_20_22_24_6637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/805ddb254346396934ba973d883fe865.jpg","text":"TemporaryFile(/tmp/multipartBody1841427138691959801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325812598,"filename":"image_18032025_20_22_29_5631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/54214d97ade53e6c286ecbf57dfbd14d.jpg","text":"TemporaryFile(/tmp/multipartBody3928213447335650113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325812598,"filename":"image_18032025_20_22_35_5679.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a4449876a5a907bf830cc0ea9ab142c3.jpg","text":"TemporaryFile(/tmp/multipartBody2954314296805008844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325812598,"filename":"image_18032025_20_22_53_5704.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345224622","file1":"1345224617","file0":"1345224609","file4":"1345224639","file5":"1345224651","file3":"1345224633"},"map_files_photo_id_array":[{"photo_id":"1345224651","filename":"file5"},{"photo_id":"1345224622","filename":"file2"},{"photo_id":"1345224639","filename":"file4"},{"photo_id":"1345224617","filename":"file1"},{"photo_id":"1345224609","filename":"file0"},{"photo_id":"1345224633","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345224617":["hashtag1","hashtag2"]},{"1345224622":["hashtag1","hashtag2"]},{"1345224651":["hashtag1","hashtag2"]},{"1345224639":["hashtag1","hashtag2"]},{"1345224633":["hashtag1","hashtag2"]},{"1345224609":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345224617, 1345224622, 1345224651, 1345224639, 1345224633, 1345224609)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.82710146903992 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:23:32.335181
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_53_5668.jpg', 2), ('/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_48_6639.jpg', 2), ('/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_41_5623.jpg', 2), ('/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_35_6627.jpg', 2), ('/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_29_5644.jpg', 2), ('/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_23_5623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_53_5668.jpg', '/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_48_6639.jpg', '/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_41_5623.jpg', '/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_35_6627.jpg', '/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_29_5644.jpg', '/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_23_5623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_53_5668.jpg
/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_48_6639.jpg
/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_41_5623.jpg
/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_35_6627.jpg
/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_29_5644.jpg
/home/nano/Desktop/images/18032025/20/23/image_18032025_20_23_23_5623.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345224827","1345224911","1345224781","1345224883","1345224858","1345224729"],"photo_ids_order":["1345224729","1345224781","1345224827","1345224858","1345224883","1345224911"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b338613b52d53b93879392c74bac261e.jpg","text":"TemporaryFile(/tmp/multipartBody8077339644541999783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325872664,"filename":"image_18032025_20_23_41_5623.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb5e8ad73f4d62af60375efcb25121aa.jpg","text":"TemporaryFile(/tmp/multipartBody8854543380729423057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325872664,"filename":"image_18032025_20_23_23_5623.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/210f5ab074bd8d3c40d1820c1badefbe.jpg","text":"TemporaryFile(/tmp/multipartBody1187870387693999222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325872664,"filename":"image_18032025_20_23_48_6639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d1afcb975476e6ac87b0a943bea08b29.jpg","text":"TemporaryFile(/tmp/multipartBody7671259281938153531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325872664,"filename":"image_18032025_20_23_29_5644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f5dbc1e59504936ca6cd324f8953cd95.jpg","text":"TemporaryFile(/tmp/multipartBody8381135042542475527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325872664,"filename":"image_18032025_20_23_35_6627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84f8fe11461147b2bec1ee06bc3bb09f.jpg","text":"TemporaryFile(/tmp/multipartBody911568796713582291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325872664,"filename":"image_18032025_20_23_53_5668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345224827","file1":"1345224781","file0":"1345224729","file4":"1345224883","file5":"1345224911","file3":"1345224858"},"map_files_photo_id_array":[{"photo_id":"1345224911","filename":"file5"},{"photo_id":"1345224827","filename":"file2"},{"photo_id":"1345224883","filename":"file4"},{"photo_id":"1345224781","filename":"file1"},{"photo_id":"1345224729","filename":"file0"},{"photo_id":"1345224858","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345224827":["hashtag1","hashtag2"]},{"1345224911":["hashtag1","hashtag2"]},{"1345224781":["hashtag1","hashtag2"]},{"1345224883":["hashtag1","hashtag2"]},{"1345224858":["hashtag1","hashtag2"]},{"1345224729":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345224827, 1345224911, 1345224781, 1345224883, 1345224858, 1345224729)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.83866763114929 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:24:32.460958
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_53_5770.jpg', 2), ('/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_47_5877.jpg', 2), ('/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_41_5781.jpg', 2), ('/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_36_6743.jpg', 2), ('/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_29_5848.jpg', 2), ('/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_23_5712.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_53_5770.jpg', '/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_47_5877.jpg', '/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_41_5781.jpg', '/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_36_6743.jpg', '/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_29_5848.jpg', '/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_23_5712.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_53_5770.jpg
/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_47_5877.jpg
/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_41_5781.jpg
/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_36_6743.jpg
/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_29_5848.jpg
/home/nano/Desktop/images/18032025/20/24/image_18032025_20_24_23_5712.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345225054","1345225033","1345225038","1345225043","1345225049","1345225028"],"photo_ids_order":["1345225028","1345225033","1345225038","1345225043","1345225049","1345225054"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/09a1e3cfd5660bbda3ea982434a84aa6.jpg","text":"TemporaryFile(/tmp/multipartBody3269218277504129581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325932870,"filename":"image_18032025_20_24_23_5712.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/86e54e4c9caa400da5eb78790f24e6d9.jpg","text":"TemporaryFile(/tmp/multipartBody2005162456642209631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325932870,"filename":"image_18032025_20_24_47_5877.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f5d0e94185f6b27805a36c83d76a3af8.jpg","text":"TemporaryFile(/tmp/multipartBody802684863494455576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325932870,"filename":"image_18032025_20_24_41_5781.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/687e953cfd3a8a9f0a3f11d5551d2174.jpg","text":"TemporaryFile(/tmp/multipartBody5002761691098497842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325932870,"filename":"image_18032025_20_24_36_6743.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/deaea08b603b62b19083e682c2ad67f5.jpg","text":"TemporaryFile(/tmp/multipartBody3446984928031454985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325932870,"filename":"image_18032025_20_24_29_5848.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c175108a0e1f411ed515920b7d5321b8.jpg","text":"TemporaryFile(/tmp/multipartBody1384071906062570837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325932870,"filename":"image_18032025_20_24_53_5770.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345225038","file1":"1345225033","file0":"1345225028","file4":"1345225049","file5":"1345225054","file3":"1345225043"},"map_files_photo_id_array":[{"photo_id":"1345225054","filename":"file5"},{"photo_id":"1345225038","filename":"file2"},{"photo_id":"1345225049","filename":"file4"},{"photo_id":"1345225033","filename":"file1"},{"photo_id":"1345225028","filename":"file0"},{"photo_id":"1345225043","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345225054":["hashtag1","hashtag2"]},{"1345225033":["hashtag1","hashtag2"]},{"1345225038":["hashtag1","hashtag2"]},{"1345225043":["hashtag1","hashtag2"]},{"1345225049":["hashtag1","hashtag2"]},{"1345225028":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345225054, 1345225033, 1345225038, 1345225043, 1345225049, 1345225028)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.510030508041382 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:25:32.556935
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_53_5836.jpg', 2), ('/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_47_5848.jpg', 2), ('/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_41_5797.jpg', 2), ('/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_35_5811.jpg', 2), ('/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_30_6733.jpg', 2), ('/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_23_5743.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_53_5836.jpg', '/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_47_5848.jpg', '/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_41_5797.jpg', '/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_35_5811.jpg', '/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_30_6733.jpg', '/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_23_5743.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_53_5836.jpg
/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_47_5848.jpg
/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_41_5797.jpg
/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_35_5811.jpg
/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_30_6733.jpg
/home/nano/Desktop/images/18032025/20/25/image_18032025_20_25_23_5743.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345225480","1345225465","1345225441","1345225476","1345225470","1345225373"],"photo_ids_order":["1345225373","1345225441","1345225465","1345225470","1345225476","1345225480"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2aa6d181dbf09e9252ecefde94ccf502.jpg","text":"TemporaryFile(/tmp/multipartBody1161297288656924558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325993112,"filename":"image_18032025_20_25_23_5743.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/350351bf108f10257401eac70a6953f5.jpg","text":"TemporaryFile(/tmp/multipartBody646855379215855565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325993112,"filename":"image_18032025_20_25_41_5797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/12815d202369dc56e051ff6997cee042.jpg","text":"TemporaryFile(/tmp/multipartBody8829358794832497775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325993112,"filename":"image_18032025_20_25_47_5848.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a39f326d3037365b64c87cb6c5e9a9cd.jpg","text":"TemporaryFile(/tmp/multipartBody6395607030242597251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325993112,"filename":"image_18032025_20_25_30_6733.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84e561f340e5ce9fcca171153783757e.jpg","text":"TemporaryFile(/tmp/multipartBody2203960761846583587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325993112,"filename":"image_18032025_20_25_35_5811.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4a47d0dc9b3097eccb5116a4f91fea0f.jpg","text":"TemporaryFile(/tmp/multipartBody2169546292059718482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742325993112,"filename":"image_18032025_20_25_53_5836.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345225465","file1":"1345225441","file0":"1345225373","file4":"1345225476","file5":"1345225480","file3":"1345225470"},"map_files_photo_id_array":[{"photo_id":"1345225480","filename":"file5"},{"photo_id":"1345225465","filename":"file2"},{"photo_id":"1345225476","filename":"file4"},{"photo_id":"1345225441","filename":"file1"},{"photo_id":"1345225373","filename":"file0"},{"photo_id":"1345225470","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345225480":["hashtag1","hashtag2"]},{"1345225465":["hashtag1","hashtag2"]},{"1345225441":["hashtag1","hashtag2"]},{"1345225476":["hashtag1","hashtag2"]},{"1345225470":["hashtag1","hashtag2"]},{"1345225373":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345225480, 1345225465, 1345225441, 1345225476, 1345225470, 1345225373)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.76116681098938 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:26:32.681066
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_53_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_48_6650.jpg', 2), ('/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_41_5688.jpg', 2), ('/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_35_5671.jpg', 2), ('/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_30_6624.jpg', 2), ('/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_23_5666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_53_5661.jpg', '/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_48_6650.jpg', '/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_41_5688.jpg', '/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_35_5671.jpg', '/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_30_6624.jpg', '/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_23_5666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_53_5661.jpg
/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_48_6650.jpg
/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_41_5688.jpg
/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_35_5671.jpg
/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_30_6624.jpg
/home/nano/Desktop/images/18032025/20/26/image_18032025_20_26_23_5666.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345225594","1345225567","1345225603","1345225571","1345225559","1345225562"],"photo_ids_order":["1345225559","1345225562","1345225567","1345225571","1345225594","1345225603"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/86e82277393f1be88d7c7d75742af888.jpg","text":"TemporaryFile(/tmp/multipartBody1200263736127185192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326053077,"filename":"image_18032025_20_26_30_6624.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5263f7e416dec07233178603c85df3ef.jpg","text":"TemporaryFile(/tmp/multipartBody1372037822667480880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326053077,"filename":"image_18032025_20_26_41_5688.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bc93c7eead791c85a84d449972212d0a.jpg","text":"TemporaryFile(/tmp/multipartBody3058896369012375874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326053077,"filename":"image_18032025_20_26_23_5666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/01697d27005b6b7306b24e6f763bb1b0.jpg","text":"TemporaryFile(/tmp/multipartBody4153936818896144597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326053077,"filename":"image_18032025_20_26_35_5671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d4ee93a5ada6b54baa456fadf1d7852.jpg","text":"TemporaryFile(/tmp/multipartBody9001815659599415894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326053077,"filename":"image_18032025_20_26_53_5661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/dbda44438c6dbe0398f0f7c5319057ec.jpg","text":"TemporaryFile(/tmp/multipartBody4043053201302814827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326053077,"filename":"image_18032025_20_26_48_6650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345225567","file1":"1345225562","file0":"1345225559","file4":"1345225594","file5":"1345225603","file3":"1345225571"},"map_files_photo_id_array":[{"photo_id":"1345225603","filename":"file5"},{"photo_id":"1345225567","filename":"file2"},{"photo_id":"1345225594","filename":"file4"},{"photo_id":"1345225562","filename":"file1"},{"photo_id":"1345225559","filename":"file0"},{"photo_id":"1345225571","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345225594":["hashtag1","hashtag2"]},{"1345225567":["hashtag1","hashtag2"]},{"1345225603":["hashtag1","hashtag2"]},{"1345225571":["hashtag1","hashtag2"]},{"1345225559":["hashtag1","hashtag2"]},{"1345225562":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345225594, 1345225567, 1345225603, 1345225571, 1345225559, 1345225562)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.585362672805786 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:27:31.777116
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_53_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_48_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_41_5715.jpg', 2), ('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_35_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_30_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_24_6655.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_53_5630.jpg', '/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_48_6646.jpg', '/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_41_5715.jpg', '/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_35_5868.jpg', '/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_30_5786.jpg', '/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_24_6655.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_53_5630.jpg
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_48_6646.jpg
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_41_5715.jpg
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_35_5868.jpg
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_30_5786.jpg
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_24_6655.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.2884058952331543 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:28:02.171309
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_53_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_48_6646.jpg', 2), ('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_41_5715.jpg', 2), ('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_35_5868.jpg', 2), ('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_30_5786.jpg', 2), ('/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_24_6655.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_53_5630.jpg', '/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_48_6646.jpg', '/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_41_5715.jpg', '/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_35_5868.jpg', '/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_30_5786.jpg', '/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_24_6655.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_53_5630.jpg
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_48_6646.jpg
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_41_5715.jpg
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_35_5868.jpg
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_30_5786.jpg
/home/nano/Desktop/images/18032025/20/27/image_18032025_20_27_24_6655.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345225666","1345225671","1345225680","1345225674","1345225668","1345225677"],"photo_ids_order":["1345225666","1345225668","1345225671","1345225674","1345225677","1345225680"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/da48f5d266344cf8abc87728090c2ce6.jpg","text":"TemporaryFile(/tmp/multipartBody6468069657858184521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326142574,"filename":"image_18032025_20_27_53_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f484c871286a0d0a76a0f58cb90c49fc.jpg","text":"TemporaryFile(/tmp/multipartBody3972320487867245321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326142574,"filename":"image_18032025_20_27_41_5715.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/61de8392731d0285ba9fc7bdc273f9c1.jpg","text":"TemporaryFile(/tmp/multipartBody1870601725756278203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326142574,"filename":"image_18032025_20_27_24_6655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ae98d6921a1a849854fa6f9df1cfae96.jpg","text":"TemporaryFile(/tmp/multipartBody5298482128695498891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326142574,"filename":"image_18032025_20_27_35_5868.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3dce92980571721b2242067fd1f42a74.jpg","text":"TemporaryFile(/tmp/multipartBody7978745139095800161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326142574,"filename":"image_18032025_20_27_48_6646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b94b766204ce288463793d90646aaf6d.jpg","text":"TemporaryFile(/tmp/multipartBody6501395750667174013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326142574,"filename":"image_18032025_20_27_30_5786.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345225671","file1":"1345225668","file0":"1345225666","file4":"1345225677","file5":"1345225680","file3":"1345225674"},"map_files_photo_id_array":[{"photo_id":"1345225680","filename":"file5"},{"photo_id":"1345225671","filename":"file2"},{"photo_id":"1345225677","filename":"file4"},{"photo_id":"1345225668","filename":"file1"},{"photo_id":"1345225666","filename":"file0"},{"photo_id":"1345225674","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345225666":["hashtag1","hashtag2"]},{"1345225671":["hashtag1","hashtag2"]},{"1345225680":["hashtag1","hashtag2"]},{"1345225674":["hashtag1","hashtag2"]},{"1345225668":["hashtag1","hashtag2"]},{"1345225677":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345225666, 1345225671, 1345225680, 1345225674, 1345225668, 1345225677)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.042816400527954 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:29:02.750108
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_54_5898.jpg', 2), ('/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_48_6855.jpg', 2), ('/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_41_5796.jpg', 2), ('/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_35_5832.jpg', 2), ('/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_29_5837.jpg', 2), ('/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_23_5825.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_54_5898.jpg', '/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_48_6855.jpg', '/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_41_5796.jpg', '/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_35_5832.jpg', '/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_29_5837.jpg', '/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_23_5825.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_54_5898.jpg
/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_48_6855.jpg
/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_41_5796.jpg
/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_35_5832.jpg
/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_29_5837.jpg
/home/nano/Desktop/images/18032025/20/28/image_18032025_20_28_23_5825.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345225714","1345225728","1345225737","1345225722","1345225731","1345225704"],"photo_ids_order":["1345225704","1345225714","1345225722","1345225728","1345225731","1345225737"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/318dd3895f1a5aded572e9e64b3a256b.jpg","text":"TemporaryFile(/tmp/multipartBody7679843586219599816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326203181,"filename":"image_18032025_20_28_48_6855.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fee34210a774a430b2c4f2e1eff314b8.jpg","text":"TemporaryFile(/tmp/multipartBody6591109990440614768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326203181,"filename":"image_18032025_20_28_35_5832.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b72912e9c3185cd303c88ea8be86fac1.jpg","text":"TemporaryFile(/tmp/multipartBody1513083217317421488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326203181,"filename":"image_18032025_20_28_23_5825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5e754ae12b4699ae915afbf7e9175b36.jpg","text":"TemporaryFile(/tmp/multipartBody8637550483539642220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326203181,"filename":"image_18032025_20_28_41_5796.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/db00a776a10bced0602d1c9068ea2644.jpg","text":"TemporaryFile(/tmp/multipartBody6512143538045589583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326203181,"filename":"image_18032025_20_28_29_5837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a1f6511c51e4e34ce0b2e02cf4e24c94.jpg","text":"TemporaryFile(/tmp/multipartBody956060666950087451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326203181,"filename":"image_18032025_20_28_54_5898.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345225722","file1":"1345225714","file0":"1345225704","file4":"1345225731","file5":"1345225737","file3":"1345225728"},"map_files_photo_id_array":[{"photo_id":"1345225737","filename":"file5"},{"photo_id":"1345225722","filename":"file2"},{"photo_id":"1345225731","filename":"file4"},{"photo_id":"1345225714","filename":"file1"},{"photo_id":"1345225704","filename":"file0"},{"photo_id":"1345225728","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345225714":["hashtag1","hashtag2"]},{"1345225728":["hashtag1","hashtag2"]},{"1345225737":["hashtag1","hashtag2"]},{"1345225722":["hashtag1","hashtag2"]},{"1345225731":["hashtag1","hashtag2"]},{"1345225704":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345225714, 1345225728, 1345225737, 1345225722, 1345225731, 1345225704)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.26518416404724 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:30:02.538820
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_53_6050.jpg', 2), ('/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_47_5838.jpg', 2), ('/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_41_5881.jpg', 2), ('/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_35_5918.jpg', 2), ('/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_29_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_23_5913.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_53_6050.jpg', '/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_47_5838.jpg', '/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_41_5881.jpg', '/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_35_5918.jpg', '/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_29_5829.jpg', '/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_23_5913.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_53_6050.jpg
/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_47_5838.jpg
/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_41_5881.jpg
/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_35_5918.jpg
/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_29_5829.jpg
/home/nano/Desktop/images/18032025/20/29/image_18032025_20_29_23_5913.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345225777","1345225864","1345225918","1345225886","1345225830","1345225805"],"photo_ids_order":["1345225777","1345225805","1345225830","1345225864","1345225886","1345225918"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/23b75d32371fab323ca44cdecfe03620.jpg","text":"TemporaryFile(/tmp/multipartBody6071182720669777072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326262990,"filename":"image_18032025_20_29_53_6050.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1b978b7ff1261651b3582eb7f58940c6.jpg","text":"TemporaryFile(/tmp/multipartBody4447276750075952072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326262990,"filename":"image_18032025_20_29_35_5918.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e85e1637df10b90d54fc1b6f9f8206ce.jpg","text":"TemporaryFile(/tmp/multipartBody8801766454060413986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326262990,"filename":"image_18032025_20_29_23_5913.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4dc3975a6458d89e2128daeb6f7031b9.jpg","text":"TemporaryFile(/tmp/multipartBody7514205996586668285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326262990,"filename":"image_18032025_20_29_29_5829.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7b6126f228e1bf74dd1ac91e1a303f78.jpg","text":"TemporaryFile(/tmp/multipartBody5179299004935967665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326262990,"filename":"image_18032025_20_29_41_5881.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/284a10ab3fadcdfababa0c8fc7eda2de.jpg","text":"TemporaryFile(/tmp/multipartBody1779853792391072261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326262990,"filename":"image_18032025_20_29_47_5838.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345225830","file1":"1345225805","file0":"1345225777","file4":"1345225886","file5":"1345225918","file3":"1345225864"},"map_files_photo_id_array":[{"photo_id":"1345225918","filename":"file5"},{"photo_id":"1345225830","filename":"file2"},{"photo_id":"1345225886","filename":"file4"},{"photo_id":"1345225805","filename":"file1"},{"photo_id":"1345225777","filename":"file0"},{"photo_id":"1345225864","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345225777":["hashtag1","hashtag2"]},{"1345225864":["hashtag1","hashtag2"]},{"1345225918":["hashtag1","hashtag2"]},{"1345225886":["hashtag1","hashtag2"]},{"1345225830":["hashtag1","hashtag2"]},{"1345225805":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345225777, 1345225864, 1345225918, 1345225886, 1345225830, 1345225805)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.66576099395752 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:31:02.658509
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_53_5817.jpg', 2), ('/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_47_5884.jpg', 2), ('/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_41_6133.jpg', 2), ('/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_35_5882.jpg', 2), ('/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_29_5816.jpg', 2), ('/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_23_5776.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_53_5817.jpg', '/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_47_5884.jpg', '/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_41_6133.jpg', '/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_35_5882.jpg', '/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_29_5816.jpg', '/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_23_5776.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_53_5817.jpg
/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_47_5884.jpg
/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_41_6133.jpg
/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_35_5882.jpg
/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_29_5816.jpg
/home/nano/Desktop/images/18032025/20/30/image_18032025_20_30_23_5776.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345226308","1345226316","1345226319","1345226304","1345226324","1345226312"],"photo_ids_order":["1345226304","1345226308","1345226312","1345226316","1345226319","1345226324"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4096cc974513456fe122f7fc38e2c6c3.jpg","text":"TemporaryFile(/tmp/multipartBody4895608644920261601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326323116,"filename":"image_18032025_20_30_47_5884.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d5743e3203a08714fcbde17bc61b1c9c.jpg","text":"TemporaryFile(/tmp/multipartBody7729448359957705335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326323116,"filename":"image_18032025_20_30_35_5882.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/59d4f4a80fddb2c2411f1ac0917038bb.jpg","text":"TemporaryFile(/tmp/multipartBody4241123116068790797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326323116,"filename":"image_18032025_20_30_29_5816.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4d4c3d4e4c91bb70bf18c76ef8bfe4d0.jpg","text":"TemporaryFile(/tmp/multipartBody4723500645178647985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326323116,"filename":"image_18032025_20_30_53_5817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/79c01ade11edf577b639def9878bb29d.jpg","text":"TemporaryFile(/tmp/multipartBody7569950502028552115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326323116,"filename":"image_18032025_20_30_23_5776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4263a9b8396ac9600519728c15d792a5.jpg","text":"TemporaryFile(/tmp/multipartBody8924756744483986418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326323116,"filename":"image_18032025_20_30_41_6133.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345226312","file1":"1345226308","file0":"1345226304","file4":"1345226319","file5":"1345226324","file3":"1345226316"},"map_files_photo_id_array":[{"photo_id":"1345226324","filename":"file5"},{"photo_id":"1345226312","filename":"file2"},{"photo_id":"1345226319","filename":"file4"},{"photo_id":"1345226308","filename":"file1"},{"photo_id":"1345226304","filename":"file0"},{"photo_id":"1345226316","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345226308":["hashtag1","hashtag2"]},{"1345226316":["hashtag1","hashtag2"]},{"1345226319":["hashtag1","hashtag2"]},{"1345226304":["hashtag1","hashtag2"]},{"1345226324":["hashtag1","hashtag2"]},{"1345226312":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345226308, 1345226316, 1345226319, 1345226304, 1345226324, 1345226312)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.977864503860474 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:32:02.819199
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_54_6665.jpg', 2), ('/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_47_5643.jpg', 2), ('/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_41_5712.jpg', 2), ('/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_36_5829.jpg', 2), ('/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_30_5966.jpg', 2), ('/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_24_6193.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_54_6665.jpg', '/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_47_5643.jpg', '/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_41_5712.jpg', '/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_36_5829.jpg', '/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_30_5966.jpg', '/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_24_6193.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_54_6665.jpg
/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_47_5643.jpg
/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_41_5712.jpg
/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_36_5829.jpg
/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_30_5966.jpg
/home/nano/Desktop/images/18032025/20/31/image_18032025_20_31_24_6193.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345226667","1345226601","1345226597","1345226642","1345226593","1345226587"],"photo_ids_order":["1345226587","1345226593","1345226597","1345226601","1345226642","1345226667"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c4b56de0ab29dc452ebd6ac2628e0b26.jpg","text":"TemporaryFile(/tmp/multipartBody3048389755365246610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326383196,"filename":"image_18032025_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/3/18/935982fcc1eaa00d30e94c8fcf99db52.jpg","text":"TemporaryFile(/tmp/multipartBody5101831703150815604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326383196,"filename":"image_18032025_20_31_36_5829.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bec92dbb73c2902611ae34ae00c7d313.jpg","text":"TemporaryFile(/tmp/multipartBody5919861344939560708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326383196,"filename":"image_18032025_20_31_41_5712.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/93299662c5b398f935b3c3353ab93d9d.jpg","text":"TemporaryFile(/tmp/multipartBody4756176551286347234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326383196,"filename":"image_18032025_20_31_30_5966.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/acf8fdc65cb339801514379c70b06134.jpg","text":"TemporaryFile(/tmp/multipartBody1617048727622868459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326383196,"filename":"image_18032025_20_31_47_5643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/97b2556c25ec2d8d6d2c17424f5ec151.jpg","text":"TemporaryFile(/tmp/multipartBody4761515732678124623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326383196,"filename":"image_18032025_20_31_54_6665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345226597","file1":"1345226593","file0":"1345226587","file4":"1345226642","file5":"1345226667","file3":"1345226601"},"map_files_photo_id_array":[{"photo_id":"1345226667","filename":"file5"},{"photo_id":"1345226597","filename":"file2"},{"photo_id":"1345226642","filename":"file4"},{"photo_id":"1345226593","filename":"file1"},{"photo_id":"1345226587","filename":"file0"},{"photo_id":"1345226601","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345226667":["hashtag1","hashtag2"]},{"1345226601":["hashtag1","hashtag2"]},{"1345226597":["hashtag1","hashtag2"]},{"1345226642":["hashtag1","hashtag2"]},{"1345226593":["hashtag1","hashtag2"]},{"1345226587":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345226667, 1345226601, 1345226597, 1345226642, 1345226593, 1345226587)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.07024812698364 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:33:02.870231
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_53_5667.jpg', 2), ('/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_47_6647.jpg', 2), ('/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_41_5615.jpg', 2), ('/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_35_5654.jpg', 2), ('/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_30_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_23_5690.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_53_5667.jpg', '/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_47_6647.jpg', '/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_41_5615.jpg', '/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_35_5654.jpg', '/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_30_6657.jpg', '/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_23_5690.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_53_5667.jpg
/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_47_6647.jpg
/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_41_5615.jpg
/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_35_5654.jpg
/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_30_6657.jpg
/home/nano/Desktop/images/18032025/20/32/image_18032025_20_32_23_5690.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345226848","1345226922","1345226919","1345226915","1345226893","1345226927"],"photo_ids_order":["1345226848","1345226893","1345226915","1345226919","1345226922","1345226927"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ef51646571d58180f2d340d07f6e5424.jpg","text":"TemporaryFile(/tmp/multipartBody5136691458134029531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326443217,"filename":"image_18032025_20_32_53_5667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe5fa7798ebccfabe2c1673dfc3f3c42.jpg","text":"TemporaryFile(/tmp/multipartBody2082085419349225319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326443217,"filename":"image_18032025_20_32_30_6657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0700466dd2c34d23c4fb10542d7b0f6d.jpg","text":"TemporaryFile(/tmp/multipartBody8717407664939465869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326443217,"filename":"image_18032025_20_32_35_5654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ba0095027d954ae4ab3230a700f83b90.jpg","text":"TemporaryFile(/tmp/multipartBody3441005770324346270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326443217,"filename":"image_18032025_20_32_41_5615.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/784d35c962ecde10a93bb164b54a04db.jpg","text":"TemporaryFile(/tmp/multipartBody6592377657884374450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326443217,"filename":"image_18032025_20_32_47_6647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/22abb93b07a0cdb8f7776f266e8b1024.jpg","text":"TemporaryFile(/tmp/multipartBody3637759457026541428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326443217,"filename":"image_18032025_20_32_23_5690.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345226915","file1":"1345226893","file0":"1345226848","file4":"1345226922","file5":"1345226927","file3":"1345226919"},"map_files_photo_id_array":[{"photo_id":"1345226927","filename":"file5"},{"photo_id":"1345226915","filename":"file2"},{"photo_id":"1345226922","filename":"file4"},{"photo_id":"1345226893","filename":"file1"},{"photo_id":"1345226848","filename":"file0"},{"photo_id":"1345226919","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345226848":["hashtag1","hashtag2"]},{"1345226922":["hashtag1","hashtag2"]},{"1345226919":["hashtag1","hashtag2"]},{"1345226915":["hashtag1","hashtag2"]},{"1345226893":["hashtag1","hashtag2"]},{"1345226927":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345226848, 1345226922, 1345226919, 1345226915, 1345226893, 1345226927)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.7654070854187 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:34:03.078287
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_54_6638.jpg', 2), ('/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_47_5660.jpg', 2), ('/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_41_5641.jpg', 2), ('/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_36_6658.jpg', 2), ('/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_29_5622.jpg', 2), ('/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_23_5629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_54_6638.jpg', '/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_47_5660.jpg', '/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_41_5641.jpg', '/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_36_6658.jpg', '/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_29_5622.jpg', '/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_23_5629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_54_6638.jpg
/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_47_5660.jpg
/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_41_5641.jpg
/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_36_6658.jpg
/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_29_5622.jpg
/home/nano/Desktop/images/18032025/20/33/image_18032025_20_33_23_5629.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345227147","1345227126","1345227122","1345227038","1345227094","1345227118"],"photo_ids_order":["1345227038","1345227094","1345227118","1345227122","1345227126","1345227147"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4778eeb5502a842c99f6ab6b51022fee.jpg","text":"TemporaryFile(/tmp/multipartBody7815188195593373436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326503438,"filename":"image_18032025_20_33_23_5629.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/05324a1a708d367056c588edc1ed7394.jpg","text":"TemporaryFile(/tmp/multipartBody3907193429362064036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326503438,"filename":"image_18032025_20_33_29_5622.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/21eda5f33a2b26a262600592a3835361.jpg","text":"TemporaryFile(/tmp/multipartBody388253049359479778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326503438,"filename":"image_18032025_20_33_36_6658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fb5661002dc6c5904d52d76df323f5e6.jpg","text":"TemporaryFile(/tmp/multipartBody5125790283513116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326503438,"filename":"image_18032025_20_33_54_6638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8362b772a6b014a0539ee79b9dee6044.jpg","text":"TemporaryFile(/tmp/multipartBody1831263872106112838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326503438,"filename":"image_18032025_20_33_47_5660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d94476b81676fca0cc831a11aa7e69bd.jpg","text":"TemporaryFile(/tmp/multipartBody6695714739825075053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326503438,"filename":"image_18032025_20_33_41_5641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345227118","file1":"1345227094","file0":"1345227038","file4":"1345227126","file5":"1345227147","file3":"1345227122"},"map_files_photo_id_array":[{"photo_id":"1345227147","filename":"file5"},{"photo_id":"1345227118","filename":"file2"},{"photo_id":"1345227126","filename":"file4"},{"photo_id":"1345227094","filename":"file1"},{"photo_id":"1345227038","filename":"file0"},{"photo_id":"1345227122","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345227147":["hashtag1","hashtag2"]},{"1345227126":["hashtag1","hashtag2"]},{"1345227122":["hashtag1","hashtag2"]},{"1345227038":["hashtag1","hashtag2"]},{"1345227094":["hashtag1","hashtag2"]},{"1345227118":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345227147, 1345227126, 1345227122, 1345227038, 1345227094, 1345227118)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.928758144378662 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:35:02.936483
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_53_5872.jpg', 2), ('/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_47_5807.jpg', 2), ('/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_41_5799.jpg', 2), ('/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_36_6828.jpg', 2), ('/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_29_5816.jpg', 2), ('/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_23_5750.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_53_5872.jpg', '/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_47_5807.jpg', '/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_41_5799.jpg', '/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_36_6828.jpg', '/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_29_5816.jpg', '/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_23_5750.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_53_5872.jpg
/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_47_5807.jpg
/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_41_5799.jpg
/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_36_6828.jpg
/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_29_5816.jpg
/home/nano/Desktop/images/18032025/20/34/image_18032025_20_34_23_5750.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345227396","1345227486","1345227311","1345227514","1345227436","1345227358"],"photo_ids_order":["1345227311","1345227358","1345227396","1345227436","1345227486","1345227514"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1562d33cd5dc6529d33d2b3a7a46c947.jpg","text":"TemporaryFile(/tmp/multipartBody8657283614580126444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326563377,"filename":"image_18032025_20_34_41_5799.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4630b063e8b9ad6b5f578f5b8ee2c48e.jpg","text":"TemporaryFile(/tmp/multipartBody1676505678102242019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326563377,"filename":"image_18032025_20_34_29_5816.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d7749b09a1991fb580127c5a08b8ac5e.jpg","text":"TemporaryFile(/tmp/multipartBody8599368813241185323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326563377,"filename":"image_18032025_20_34_53_5872.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7105563f444f67d7bc1ce45729843b43.jpg","text":"TemporaryFile(/tmp/multipartBody2817152137613453388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326563377,"filename":"image_18032025_20_34_23_5750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9b97a46c2445ffff328a53d5e4b3dc15.jpg","text":"TemporaryFile(/tmp/multipartBody3093662626361208090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326563377,"filename":"image_18032025_20_34_36_6828.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d6c836c795108233ae1f2ba74feb1766.jpg","text":"TemporaryFile(/tmp/multipartBody1071444763960938427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326563377,"filename":"image_18032025_20_34_47_5807.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345227396","file1":"1345227358","file0":"1345227311","file4":"1345227486","file5":"1345227514","file3":"1345227436"},"map_files_photo_id_array":[{"photo_id":"1345227514","filename":"file5"},{"photo_id":"1345227396","filename":"file2"},{"photo_id":"1345227486","filename":"file4"},{"photo_id":"1345227358","filename":"file1"},{"photo_id":"1345227311","filename":"file0"},{"photo_id":"1345227436","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345227396":["hashtag1","hashtag2"]},{"1345227486":["hashtag1","hashtag2"]},{"1345227311":["hashtag1","hashtag2"]},{"1345227514":["hashtag1","hashtag2"]},{"1345227436":["hashtag1","hashtag2"]},{"1345227358":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345227396, 1345227486, 1345227311, 1345227514, 1345227436, 1345227358)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.05678367614746 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:36:02.226322
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_47_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_41_5876.jpg', 2), ('/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_35_5837.jpg', 2), ('/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_29_5870.jpg', 2), ('/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_23_5839.jpg', 2), ('/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_18_6748.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_47_5867.jpg', '/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_41_5876.jpg', '/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_35_5837.jpg', '/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_29_5870.jpg', '/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_23_5839.jpg', '/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_18_6748.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_47_5867.jpg
/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_41_5876.jpg
/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_35_5837.jpg
/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_29_5870.jpg
/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_23_5839.jpg
/home/nano/Desktop/images/18032025/20/35/image_18032025_20_35_18_6748.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345227963","1345227927","1345227995","1345227770","1345227815","1345227889"],"photo_ids_order":["1345227770","1345227815","1345227889","1345227927","1345227963","1345227995"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e40d5e65d55d2ace8efb1f752712d3d2.jpg","text":"TemporaryFile(/tmp/multipartBody956509043034963833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326622662,"filename":"image_18032025_20_35_23_5839.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8a7512f61ea7c6aaf8f987ea9ec3dd4b.jpg","text":"TemporaryFile(/tmp/multipartBody7539805409824612628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326622662,"filename":"image_18032025_20_35_29_5870.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d55aab355b70b9b745836420630a7cc5.jpg","text":"TemporaryFile(/tmp/multipartBody7250434205260985590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326622662,"filename":"image_18032025_20_35_18_6748.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4505c1c83a6eb077a3d64dd8bccf6fac.jpg","text":"TemporaryFile(/tmp/multipartBody2386390451114510361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326622662,"filename":"image_18032025_20_35_47_5867.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/df7eca80e3993e70c2cc80fd41f9438b.jpg","text":"TemporaryFile(/tmp/multipartBody1282970512174624228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326622662,"filename":"image_18032025_20_35_41_5876.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b0c95d683260dec95db00a855f5e5707.jpg","text":"TemporaryFile(/tmp/multipartBody2972645263439463051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326622662,"filename":"image_18032025_20_35_35_5837.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345227889","file1":"1345227815","file0":"1345227770","file4":"1345227963","file5":"1345227995","file3":"1345227927"},"map_files_photo_id_array":[{"photo_id":"1345227995","filename":"file5"},{"photo_id":"1345227889","filename":"file2"},{"photo_id":"1345227963","filename":"file4"},{"photo_id":"1345227815","filename":"file1"},{"photo_id":"1345227770","filename":"file0"},{"photo_id":"1345227927","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345227963":["hashtag1","hashtag2"]},{"1345227927":["hashtag1","hashtag2"]},{"1345227995":["hashtag1","hashtag2"]},{"1345227770":["hashtag1","hashtag2"]},{"1345227815":["hashtag1","hashtag2"]},{"1345227889":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345227963, 1345227927, 1345227995, 1345227770, 1345227815, 1345227889)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.71039915084839 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:37:02.176550
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_54_5763.jpg', 2), ('/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_48_6828.jpg', 2), ('/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_41_5839.jpg', 2), ('/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_35_6038.jpg', 2), ('/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_29_5867.jpg', 2), ('/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_23_5809.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_54_5763.jpg', '/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_48_6828.jpg', '/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_41_5839.jpg', '/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_35_6038.jpg', '/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_29_5867.jpg', '/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_23_5809.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_54_5763.jpg
/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_48_6828.jpg
/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_41_5839.jpg
/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_35_6038.jpg
/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_29_5867.jpg
/home/nano/Desktop/images/18032025/20/36/image_18032025_20_36_23_5809.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345228661","1345228535","1345228436","1345228409","1345228600","1345228482"],"photo_ids_order":["1345228409","1345228436","1345228482","1345228535","1345228600","1345228661"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ff77fd3fedd775205d6df02c0a3249a2.jpg","text":"TemporaryFile(/tmp/multipartBody5363558476946672546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326682609,"filename":"image_18032025_20_36_23_5809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/77030c28a529f54070cbef144b0ea4e6.jpg","text":"TemporaryFile(/tmp/multipartBody148722246430105057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326682609,"filename":"image_18032025_20_36_35_6038.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e09a2515a910eb8abd173ba49dd857d5.jpg","text":"TemporaryFile(/tmp/multipartBody576284651152502255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326682609,"filename":"image_18032025_20_36_48_6828.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3f702f950daaad7718bbc0c99f6c6c0f.jpg","text":"TemporaryFile(/tmp/multipartBody7128431016197940997asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326682609,"filename":"image_18032025_20_36_54_5763.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c40bd3b687164a573a0b44ed554847d2.jpg","text":"TemporaryFile(/tmp/multipartBody7338526022420113538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326682609,"filename":"image_18032025_20_36_29_5867.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e15259b114a4868053308476bd17f374.jpg","text":"TemporaryFile(/tmp/multipartBody7097268949514593881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326682609,"filename":"image_18032025_20_36_41_5839.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345228482","file1":"1345228436","file0":"1345228409","file4":"1345228600","file5":"1345228661","file3":"1345228535"},"map_files_photo_id_array":[{"photo_id":"1345228661","filename":"file5"},{"photo_id":"1345228482","filename":"file2"},{"photo_id":"1345228600","filename":"file4"},{"photo_id":"1345228436","filename":"file1"},{"photo_id":"1345228409","filename":"file0"},{"photo_id":"1345228535","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345228661":["hashtag1","hashtag2"]},{"1345228535":["hashtag1","hashtag2"]},{"1345228436":["hashtag1","hashtag2"]},{"1345228409":["hashtag1","hashtag2"]},{"1345228600":["hashtag1","hashtag2"]},{"1345228482":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345228661, 1345228535, 1345228436, 1345228409, 1345228600, 1345228482)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.13510823249817 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:38:02.500485
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_54_5894.jpg', 2), ('/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_48_5934.jpg', 2), ('/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_42_6015.jpg', 2), ('/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_36_6911.jpg', 2), ('/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_29_5869.jpg', 2), ('/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_23_5781.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_54_5894.jpg', '/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_48_5934.jpg', '/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_42_6015.jpg', '/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_36_6911.jpg', '/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_29_5869.jpg', '/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_23_5781.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_54_5894.jpg
/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_48_5934.jpg
/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_42_6015.jpg
/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_36_6911.jpg
/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_29_5869.jpg
/home/nano/Desktop/images/18032025/20/37/image_18032025_20_37_23_5781.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.3697383403778076 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:38:32.045135
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_53_5612.jpg', 2), ('/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_48_6657.jpg', 2), ('/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_41_5607.jpg', 2), ('/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_35_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_30_6685.jpg', 2), ('/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_23_5671.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_53_5612.jpg', '/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_48_6657.jpg', '/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_41_5607.jpg', '/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_35_5651.jpg', '/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_30_6685.jpg', '/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_23_5671.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_53_5612.jpg
/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_48_6657.jpg
/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_41_5607.jpg
/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_35_5651.jpg
/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_30_6685.jpg
/home/nano/Desktop/images/18032025/20/38/image_18032025_20_38_23_5671.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345229351","1345229540","1345229499","1345229445","1345229388","1345229358"],"photo_ids_order":["1345229351","1345229358","1345229388","1345229445","1345229499","1345229540"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a4d0b5549366fe9684759f7332d9f506.jpg","text":"TemporaryFile(/tmp/multipartBody2244273815657709433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326772385,"filename":"image_18032025_20_38_53_5612.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/082630ddd39ef18e4d767ed339aef076.jpg","text":"TemporaryFile(/tmp/multipartBody8138249408163945741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326772385,"filename":"image_18032025_20_38_23_5671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e61872fd61b955d0b11877e10183afb5.jpg","text":"TemporaryFile(/tmp/multipartBody4655004403722979104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326772385,"filename":"image_18032025_20_38_30_6685.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/034b50684e6fcd3bf89509da21e69bb5.jpg","text":"TemporaryFile(/tmp/multipartBody5152367624338263679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326772385,"filename":"image_18032025_20_38_35_5651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e3b460b2dbfc3cba1e762f570a75c6af.jpg","text":"TemporaryFile(/tmp/multipartBody4498260806388205490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326772385,"filename":"image_18032025_20_38_41_5607.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9b60174fa7bfe3b28bad8645c1c6b99c.jpg","text":"TemporaryFile(/tmp/multipartBody7151144132512002601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326772385,"filename":"image_18032025_20_38_48_6657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345229388","file1":"1345229358","file0":"1345229351","file4":"1345229499","file5":"1345229540","file3":"1345229445"},"map_files_photo_id_array":[{"photo_id":"1345229540","filename":"file5"},{"photo_id":"1345229388","filename":"file2"},{"photo_id":"1345229499","filename":"file4"},{"photo_id":"1345229358","filename":"file1"},{"photo_id":"1345229351","filename":"file0"},{"photo_id":"1345229445","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345229351":["hashtag1","hashtag2"]},{"1345229540":["hashtag1","hashtag2"]},{"1345229499":["hashtag1","hashtag2"]},{"1345229445":["hashtag1","hashtag2"]},{"1345229388":["hashtag1","hashtag2"]},{"1345229358":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345229351, 1345229540, 1345229499, 1345229445, 1345229388, 1345229358)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.426759004592896 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:39:32.124879
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_54_6674.jpg', 2), ('/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_47_5673.jpg', 2), ('/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_41_5662.jpg', 2), ('/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_36_6652.jpg', 2), ('/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_29_5672.jpg', 2), ('/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_23_5617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_54_6674.jpg', '/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_47_5673.jpg', '/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_41_5662.jpg', '/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_36_6652.jpg', '/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_29_5672.jpg', '/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_23_5617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_54_6674.jpg
/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_47_5673.jpg
/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_41_5662.jpg
/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_36_6652.jpg
/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_29_5672.jpg
/home/nano/Desktop/images/18032025/20/39/image_18032025_20_39_23_5617.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345229885","1345229846","1345229789","1345229764","1345229830","1345229917"],"photo_ids_order":["1345229764","1345229789","1345229830","1345229846","1345229885","1345229917"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca55c3d3891a11bbdf182f3fed627b29.jpg","text":"TemporaryFile(/tmp/multipartBody7432108220737171609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326832453,"filename":"image_18032025_20_39_29_5672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0c58084a8827bac32abce8b174bf6588.jpg","text":"TemporaryFile(/tmp/multipartBody6115253195510848212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326832453,"filename":"image_18032025_20_39_36_6652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d8c16ae2c71383deaf1cb6b8c8cf6e2e.jpg","text":"TemporaryFile(/tmp/multipartBody9205942900799513831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326832453,"filename":"image_18032025_20_39_47_5673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d3a304e6b605970f712f273de204eaf6.jpg","text":"TemporaryFile(/tmp/multipartBody8849789016297296959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326832453,"filename":"image_18032025_20_39_54_6674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4fbaf5c404659c53dda7ef9601999a5.jpg","text":"TemporaryFile(/tmp/multipartBody4644187776933606689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326832453,"filename":"image_18032025_20_39_41_5662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/607e1e2ecf5f8a33b981a45801bdad15.jpg","text":"TemporaryFile(/tmp/multipartBody5183751211378852233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326832453,"filename":"image_18032025_20_39_23_5617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345229830","file1":"1345229789","file0":"1345229764","file4":"1345229885","file5":"1345229917","file3":"1345229846"},"map_files_photo_id_array":[{"photo_id":"1345229917","filename":"file5"},{"photo_id":"1345229830","filename":"file2"},{"photo_id":"1345229885","filename":"file4"},{"photo_id":"1345229789","filename":"file1"},{"photo_id":"1345229764","filename":"file0"},{"photo_id":"1345229846","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345229885":["hashtag1","hashtag2"]},{"1345229846":["hashtag1","hashtag2"]},{"1345229789":["hashtag1","hashtag2"]},{"1345229764":["hashtag1","hashtag2"]},{"1345229830":["hashtag1","hashtag2"]},{"1345229917":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345229885, 1345229846, 1345229789, 1345229764, 1345229830, 1345229917)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.759684324264526 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:40:32.239240
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_53_5732.jpg', 2), ('/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_48_6733.jpg', 2), ('/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_41_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_35_5621.jpg', 2), ('/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_30_6648.jpg', 2), ('/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_23_5627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_53_5732.jpg', '/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_48_6733.jpg', '/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_41_5685.jpg', '/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_35_5621.jpg', '/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_30_6648.jpg', '/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_23_5627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_53_5732.jpg
/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_48_6733.jpg
/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_41_5685.jpg
/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_35_5621.jpg
/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_30_6648.jpg
/home/nano/Desktop/images/18032025/20/40/image_18032025_20_40_23_5627.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345230131","1345230053","1345230163","1345230183","1345230022","1345230096"],"photo_ids_order":["1345230022","1345230053","1345230096","1345230131","1345230163","1345230183"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/531aacc6de7554a5a221503c439ac67d.jpg","text":"TemporaryFile(/tmp/multipartBody7315479700783761086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326892605,"filename":"image_18032025_20_40_35_5621.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bdb71b989ddc277d3e798b08e2e120df.jpg","text":"TemporaryFile(/tmp/multipartBody2217565258204251874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326892605,"filename":"image_18032025_20_40_48_6733.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca1ef5a0a7c29f9a386cf34b38418c5d.jpg","text":"TemporaryFile(/tmp/multipartBody1130817570090093011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326892605,"filename":"image_18032025_20_40_30_6648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aa1f7fb0392b3196fc6ea093549b689f.jpg","text":"TemporaryFile(/tmp/multipartBody8807910660660701228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326892605,"filename":"image_18032025_20_40_23_5627.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0caa009c76d5ee91167df5bc9d043f3f.jpg","text":"TemporaryFile(/tmp/multipartBody4231059137977142761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326892605,"filename":"image_18032025_20_40_53_5732.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/236d5ff5228d32c0ef8d6944144e9b29.jpg","text":"TemporaryFile(/tmp/multipartBody2419553217354673763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326892605,"filename":"image_18032025_20_40_41_5685.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345230096","file1":"1345230053","file0":"1345230022","file4":"1345230163","file5":"1345230183","file3":"1345230131"},"map_files_photo_id_array":[{"photo_id":"1345230183","filename":"file5"},{"photo_id":"1345230096","filename":"file2"},{"photo_id":"1345230163","filename":"file4"},{"photo_id":"1345230053","filename":"file1"},{"photo_id":"1345230022","filename":"file0"},{"photo_id":"1345230131","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345230131":["hashtag1","hashtag2"]},{"1345230053":["hashtag1","hashtag2"]},{"1345230163":["hashtag1","hashtag2"]},{"1345230183":["hashtag1","hashtag2"]},{"1345230022":["hashtag1","hashtag2"]},{"1345230096":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345230131, 1345230053, 1345230163, 1345230183, 1345230022, 1345230096)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.5055034160614 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:41:32.358627
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_54_6673.jpg', 2), ('/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_47_5630.jpg', 2), ('/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_41_5739.jpg', 2), ('/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_35_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_30_6021.jpg', 2), ('/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_24_6040.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_54_6673.jpg', '/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_47_5630.jpg', '/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_41_5739.jpg', '/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_35_5780.jpg', '/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_30_6021.jpg', '/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_24_6040.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_54_6673.jpg
/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_47_5630.jpg
/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_41_5739.jpg
/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_35_5780.jpg
/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_30_6021.jpg
/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_24_6040.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345230510","1345230609","1345230482","1345230578","1345230536","1345230565"],"photo_ids_order":["1345230482","1345230510","1345230536","1345230565","1345230578","1345230609"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3eff6740020b16811c0cb5d195e8df2c.jpg","text":"TemporaryFile(/tmp/multipartBody6568988687161287912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326952720,"filename":"image_18032025_20_41_47_5630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/10f59f7dfa9e46b5d28e760c61e8791d.jpg","text":"TemporaryFile(/tmp/multipartBody6243933990288460899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326952720,"filename":"image_18032025_20_41_24_6040.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d50f2c8aef83f8ce3b46aba764c768e3.jpg","text":"TemporaryFile(/tmp/multipartBody6060270669188859946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326952720,"filename":"image_18032025_20_41_54_6673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fe5b68cb389d1df9b628b5fabda8d25f.jpg","text":"TemporaryFile(/tmp/multipartBody2470135417158893522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326952720,"filename":"image_18032025_20_41_30_6021.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3897145007a2b24922b893aaec0752c5.jpg","text":"TemporaryFile(/tmp/multipartBody5245753959805880461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326952720,"filename":"image_18032025_20_41_41_5739.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d592207aaa5b677f00576af0beb4d8a7.jpg","text":"TemporaryFile(/tmp/multipartBody9108338832156254222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742326952720,"filename":"image_18032025_20_41_35_5780.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345230536","file1":"1345230510","file0":"1345230482","file4":"1345230578","file5":"1345230609","file3":"1345230565"},"map_files_photo_id_array":[{"photo_id":"1345230609","filename":"file5"},{"photo_id":"1345230536","filename":"file2"},{"photo_id":"1345230578","filename":"file4"},{"photo_id":"1345230510","filename":"file1"},{"photo_id":"1345230482","filename":"file0"},{"photo_id":"1345230565","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345230510":["hashtag1","hashtag2"]},{"1345230609":["hashtag1","hashtag2"]},{"1345230482":["hashtag1","hashtag2"]},{"1345230578":["hashtag1","hashtag2"]},{"1345230536":["hashtag1","hashtag2"]},{"1345230565":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345230510, 1345230609, 1345230482, 1345230578, 1345230536, 1345230565)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.46599793434143 secondes ---
[Errno 13] Permission denied: '/home/pi'
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:42:32.440397
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_47_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_42_6654.jpg', 2), ('/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_35_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_29_5637.jpg', 2), ('/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_24_6637.jpg', 2), ('/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_17_5648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_47_5638.jpg', '/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_42_6654.jpg', '/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_35_5661.jpg', '/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_29_5637.jpg', '/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_24_6637.jpg', '/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_17_5648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_47_5638.jpg
/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_42_6654.jpg
/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_35_5661.jpg
/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_29_5637.jpg
/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_24_6637.jpg
/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_17_5648.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345230930","1345230983","1345230900","1345230967","1345230897","1345230963"],"photo_ids_order":["1345230897","1345230900","1345230930","1345230963","1345230967","1345230983"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a761e5e60c0eb0933b88fd9340ceb7b3.jpg","text":"TemporaryFile(/tmp/multipartBody1276756397128342539asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327012790,"filename":"image_18032025_20_42_35_5661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a92de422d696eec0cdc132e6af56717b.jpg","text":"TemporaryFile(/tmp/multipartBody4785882258638640562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327012790,"filename":"image_18032025_20_42_17_5648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e9b811bcf5c51be6be85b6fbc011224a.jpg","text":"TemporaryFile(/tmp/multipartBody6420038154625611349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327012790,"filename":"image_18032025_20_42_42_6654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/644ef2ce8a273d89a418023f0781e440.jpg","text":"TemporaryFile(/tmp/multipartBody374489784373891902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327012790,"filename":"image_18032025_20_42_24_6637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e52786cad2eee40e22f53aa17c69386.jpg","text":"TemporaryFile(/tmp/multipartBody594883076931788871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327012790,"filename":"image_18032025_20_42_47_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5610948f0985998c7b187db1d30356f2.jpg","text":"TemporaryFile(/tmp/multipartBody4097330056571733004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327012790,"filename":"image_18032025_20_42_29_5637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345230930","file1":"1345230900","file0":"1345230897","file4":"1345230967","file5":"1345230983","file3":"1345230963"},"map_files_photo_id_array":[{"photo_id":"1345230983","filename":"file5"},{"photo_id":"1345230930","filename":"file2"},{"photo_id":"1345230967","filename":"file4"},{"photo_id":"1345230900","filename":"file1"},{"photo_id":"1345230897","filename":"file0"},{"photo_id":"1345230963","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345230930":["hashtag1","hashtag2"]},{"1345230983":["hashtag1","hashtag2"]},{"1345230900":["hashtag1","hashtag2"]},{"1345230967":["hashtag1","hashtag2"]},{"1345230897":["hashtag1","hashtag2"]},{"1345230963":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345230930, 1345230983, 1345230900, 1345230967, 1345230897, 1345230963)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.270280599594116 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:43:02.892733
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_11_5690.jpg', 2), ('/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_06_6641.jpg', 2), ('/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_59_5597.jpg', 2), ('/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_18_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_12_6749.jpg', 2), ('/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_05_5758.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_11_5690.jpg', '/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_06_6641.jpg', '/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_59_5597.jpg', '/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_18_6013.jpg', '/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_12_6749.jpg', '/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_05_5758.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_11_5690.jpg
/home/nano/Desktop/images/18032025/20/42/image_18032025_20_42_06_6641.jpg
/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_59_5597.jpg
/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_18_6013.jpg
/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_12_6749.jpg
/home/nano/Desktop/images/18032025/20/41/image_18032025_20_41_05_5758.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345230992","1345231037","1345231013","1345230988","1345231006","1345230999"],"photo_ids_order":["1345230988","1345230992","1345230999","1345231006","1345231013","1345231037"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f3285806c4032bebf84c06153571f728.jpg","text":"TemporaryFile(/tmp/multipartBody688668093001596759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327043297,"filename":"image_18032025_20_42_06_6641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/067780460adc9a5a6f66731fa8c30367.jpg","text":"TemporaryFile(/tmp/multipartBody4784918422508895660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327043297,"filename":"image_18032025_20_41_05_5758.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eac6406d46ab0d0d5f2ed61d288e8ba9.jpg","text":"TemporaryFile(/tmp/multipartBody9165267647025696920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327043297,"filename":"image_18032025_20_41_12_6749.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/495b6e8ca6a79e97f37419d264c1e00d.jpg","text":"TemporaryFile(/tmp/multipartBody3276441086906050080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327043297,"filename":"image_18032025_20_42_11_5690.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e80ad7127d1226eac9a453d29442dae.jpg","text":"TemporaryFile(/tmp/multipartBody4679857676852851474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327043297,"filename":"image_18032025_20_41_18_6013.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e4c38551bba0edc45ca83c1e62b0825e.jpg","text":"TemporaryFile(/tmp/multipartBody9156651190857842734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327043297,"filename":"image_18032025_20_41_59_5597.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345230999","file1":"1345230992","file0":"1345230988","file4":"1345231013","file5":"1345231037","file3":"1345231006"},"map_files_photo_id_array":[{"photo_id":"1345231037","filename":"file5"},{"photo_id":"1345230999","filename":"file2"},{"photo_id":"1345231013","filename":"file4"},{"photo_id":"1345230992","filename":"file1"},{"photo_id":"1345230988","filename":"file0"},{"photo_id":"1345231006","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345230992":["hashtag1","hashtag2"]},{"1345231037":["hashtag1","hashtag2"]},{"1345231013":["hashtag1","hashtag2"]},{"1345230988":["hashtag1","hashtag2"]},{"1345231006":["hashtag1","hashtag2"]},{"1345230999":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345230992, 1345231037, 1345231013, 1345230988, 1345231006, 1345230999)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.96649408340454 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:44:03.283093
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_53_5698.jpg', 2), ('/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_48_6803.jpg', 2), ('/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_41_5714.jpg', 2), ('/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_35_5767.jpg', 2), ('/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_29_6668.jpg', 2), ('/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_23_5638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_53_5698.jpg', '/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_48_6803.jpg', '/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_41_5714.jpg', '/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_35_5767.jpg', '/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_29_6668.jpg', '/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_23_5638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_53_5698.jpg
/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_48_6803.jpg
/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_41_5714.jpg
/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_35_5767.jpg
/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_29_6668.jpg
/home/nano/Desktop/images/18032025/20/43/image_18032025_20_43_23_5638.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345231286","1345231289","1345231315","1345231293","1345231296","1345231298"],"photo_ids_order":["1345231286","1345231289","1345231293","1345231296","1345231298","1345231315"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4b5577adac933e9733ec98d8f9da3d62.jpg","text":"TemporaryFile(/tmp/multipartBody8790933270751618684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327103678,"filename":"image_18032025_20_43_53_5698.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/952568f049dfe500f77e5d6aa8f53e76.jpg","text":"TemporaryFile(/tmp/multipartBody1298407169995062261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327103678,"filename":"image_18032025_20_43_48_6803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c3530cb35497fa23722d7fbd92a368d7.jpg","text":"TemporaryFile(/tmp/multipartBody6791032598933063654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327103678,"filename":"image_18032025_20_43_23_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd56e879874b420a76000f5d377cecb7.jpg","text":"TemporaryFile(/tmp/multipartBody6749081193271504965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327103678,"filename":"image_18032025_20_43_41_5714.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5472fffc1bce9889697c494dbba750b8.jpg","text":"TemporaryFile(/tmp/multipartBody704608206983918776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327103678,"filename":"image_18032025_20_43_35_5767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c6d8ed19b3a22a46bd2fbbc2694ca4ab.jpg","text":"TemporaryFile(/tmp/multipartBody1690116369965330767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327103678,"filename":"image_18032025_20_43_29_6668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345231293","file1":"1345231289","file0":"1345231286","file4":"1345231298","file5":"1345231315","file3":"1345231296"},"map_files_photo_id_array":[{"photo_id":"1345231315","filename":"file5"},{"photo_id":"1345231293","filename":"file2"},{"photo_id":"1345231298","filename":"file4"},{"photo_id":"1345231289","filename":"file1"},{"photo_id":"1345231286","filename":"file0"},{"photo_id":"1345231296","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345231286":["hashtag1","hashtag2"]},{"1345231289":["hashtag1","hashtag2"]},{"1345231315":["hashtag1","hashtag2"]},{"1345231293":["hashtag1","hashtag2"]},{"1345231296":["hashtag1","hashtag2"]},{"1345231298":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345231286, 1345231289, 1345231315, 1345231293, 1345231296, 1345231298)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.19550657272339 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:45:02.223782
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_53_5740.jpg', 2), ('/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_47_5776.jpg', 2), ('/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_41_5769.jpg', 2), ('/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_36_5830.jpg', 2), ('/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_30_6845.jpg', 2), ('/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_23_5902.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_53_5740.jpg', '/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_47_5776.jpg', '/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_41_5769.jpg', '/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_36_5830.jpg', '/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_30_6845.jpg', '/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_23_5902.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_53_5740.jpg
/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_47_5776.jpg
/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_41_5769.jpg
/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_36_5830.jpg
/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_30_6845.jpg
/home/nano/Desktop/images/18032025/20/44/image_18032025_20_44_23_5902.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345231421","1345231415","1345231424","1345231418","1345231412","1345231426"],"photo_ids_order":["1345231412","1345231415","1345231418","1345231421","1345231424","1345231426"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad7161586fa423051628486d55414d30.jpg","text":"TemporaryFile(/tmp/multipartBody1569759750975495887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327162633,"filename":"image_18032025_20_44_36_5830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5f58932715302e4323b407edbd3aed3e.jpg","text":"TemporaryFile(/tmp/multipartBody2159725336394984599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327162633,"filename":"image_18032025_20_44_47_5776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/de54d7ea1f53a9a5867d5122a2a74242.jpg","text":"TemporaryFile(/tmp/multipartBody2691456884827994742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327162633,"filename":"image_18032025_20_44_30_6845.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bd5c983e7d11af53f0167a7cede4de0c.jpg","text":"TemporaryFile(/tmp/multipartBody3789858076541541821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327162633,"filename":"image_18032025_20_44_41_5769.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/09d42234c7cb12bfdfed763090fcc9d0.jpg","text":"TemporaryFile(/tmp/multipartBody7211453309968967521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327162633,"filename":"image_18032025_20_44_53_5740.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/46eef7284459c541b5b76ce181f80e51.jpg","text":"TemporaryFile(/tmp/multipartBody4661061123190731932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327162633,"filename":"image_18032025_20_44_23_5902.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345231418","file1":"1345231415","file0":"1345231412","file4":"1345231424","file5":"1345231426","file3":"1345231421"},"map_files_photo_id_array":[{"photo_id":"1345231426","filename":"file5"},{"photo_id":"1345231418","filename":"file2"},{"photo_id":"1345231424","filename":"file4"},{"photo_id":"1345231415","filename":"file1"},{"photo_id":"1345231412","filename":"file0"},{"photo_id":"1345231421","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345231421":["hashtag1","hashtag2"]},{"1345231415":["hashtag1","hashtag2"]},{"1345231424":["hashtag1","hashtag2"]},{"1345231418":["hashtag1","hashtag2"]},{"1345231412":["hashtag1","hashtag2"]},{"1345231426":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345231421, 1345231415, 1345231424, 1345231418, 1345231412, 1345231426)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.26274800300598 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:46:02.348351
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_53_5799.jpg', 2), ('/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_47_5780.jpg', 2), ('/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_42_6056.jpg', 2), ('/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_36_6264.jpg', 2), ('/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_29_5755.jpg', 2), ('/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_24_5804.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_53_5799.jpg', '/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_47_5780.jpg', '/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_42_6056.jpg', '/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_36_6264.jpg', '/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_29_5755.jpg', '/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_24_5804.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_53_5799.jpg
/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_47_5780.jpg
/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_42_6056.jpg
/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_36_6264.jpg
/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_29_5755.jpg
/home/nano/Desktop/images/18032025/20/45/image_18032025_20_45_24_5804.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345231679","1345231652","1345231570","1345231543","1345231705","1345231596"],"photo_ids_order":["1345231543","1345231570","1345231596","1345231652","1345231679","1345231705"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7b6f804bf33bc30dafdafca64d898dfb.jpg","text":"TemporaryFile(/tmp/multipartBody1671859066257452579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327222777,"filename":"image_18032025_20_45_29_5755.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d573b0e91fc4f4f0c53e4ace242700fb.jpg","text":"TemporaryFile(/tmp/multipartBody5476532077052164668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327222777,"filename":"image_18032025_20_45_36_6264.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/de02b95e4a00200cfdf35c7a6829a9e7.jpg","text":"TemporaryFile(/tmp/multipartBody4324361904407164329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327222777,"filename":"image_18032025_20_45_47_5780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/797b1fa661e93ba93910bb530eccee67.jpg","text":"TemporaryFile(/tmp/multipartBody2559850295348507932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327222777,"filename":"image_18032025_20_45_53_5799.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2c7993d1cfb428cee4481fafaadce029.jpg","text":"TemporaryFile(/tmp/multipartBody5796631201126221242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327222777,"filename":"image_18032025_20_45_24_5804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fc46b8cad5caed794e606f2ed14037b0.jpg","text":"TemporaryFile(/tmp/multipartBody9092175371297447080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327222777,"filename":"image_18032025_20_45_42_6056.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345231596","file1":"1345231570","file0":"1345231543","file4":"1345231679","file5":"1345231705","file3":"1345231652"},"map_files_photo_id_array":[{"photo_id":"1345231705","filename":"file5"},{"photo_id":"1345231596","filename":"file2"},{"photo_id":"1345231679","filename":"file4"},{"photo_id":"1345231570","filename":"file1"},{"photo_id":"1345231543","filename":"file0"},{"photo_id":"1345231652","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345231679":["hashtag1","hashtag2"]},{"1345231652":["hashtag1","hashtag2"]},{"1345231570":["hashtag1","hashtag2"]},{"1345231543":["hashtag1","hashtag2"]},{"1345231705":["hashtag1","hashtag2"]},{"1345231596":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345231679, 1345231652, 1345231570, 1345231543, 1345231705, 1345231596)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.620850563049316 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:47:02.324446
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_54_6089.jpg', 2), ('/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_48_6775.jpg', 2), ('/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_41_5694.jpg', 2), ('/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_35_5751.jpg', 2), ('/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_29_5742.jpg', 2), ('/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_24_5857.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_54_6089.jpg', '/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_48_6775.jpg', '/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_41_5694.jpg', '/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_35_5751.jpg', '/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_29_5742.jpg', '/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_24_5857.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_54_6089.jpg
/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_48_6775.jpg
/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_41_5694.jpg
/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_35_5751.jpg
/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_29_5742.jpg
/home/nano/Desktop/images/18032025/20/46/image_18032025_20_46_24_5857.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345231856","1345231852","1345231849","1345231840","1345231845","1345231833"],"photo_ids_order":["1345231833","1345231840","1345231845","1345231849","1345231852","1345231856"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7ff1b8e00116545cc4d25da9361f9ed5.jpg","text":"TemporaryFile(/tmp/multipartBody8844334556631335148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327282751,"filename":"image_18032025_20_46_24_5857.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6361c477d274c1f3cc803d85059ad129.jpg","text":"TemporaryFile(/tmp/multipartBody1150084394841732653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327282751,"filename":"image_18032025_20_46_29_5742.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e52a64bebd4b8b22bf019d0b80d2aa1b.jpg","text":"TemporaryFile(/tmp/multipartBody4349679844345347230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327282751,"filename":"image_18032025_20_46_35_5751.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a47834ef8d48427e7e82bf2bc4b0b04d.jpg","text":"TemporaryFile(/tmp/multipartBody275206970306001790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327282751,"filename":"image_18032025_20_46_48_6775.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/066f05ac194a9c6f4212c5445c0f9450.jpg","text":"TemporaryFile(/tmp/multipartBody6457982781397406324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327282751,"filename":"image_18032025_20_46_41_5694.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ef0f46bb46a2ac4cdd0a0ddcc19e92cd.jpg","text":"TemporaryFile(/tmp/multipartBody3775239019430151736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327282751,"filename":"image_18032025_20_46_54_6089.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345231845","file1":"1345231840","file0":"1345231833","file4":"1345231852","file5":"1345231856","file3":"1345231849"},"map_files_photo_id_array":[{"photo_id":"1345231856","filename":"file5"},{"photo_id":"1345231845","filename":"file2"},{"photo_id":"1345231852","filename":"file4"},{"photo_id":"1345231840","filename":"file1"},{"photo_id":"1345231833","filename":"file0"},{"photo_id":"1345231849","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345231856":["hashtag1","hashtag2"]},{"1345231852":["hashtag1","hashtag2"]},{"1345231849":["hashtag1","hashtag2"]},{"1345231840":["hashtag1","hashtag2"]},{"1345231845":["hashtag1","hashtag2"]},{"1345231833":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345231856, 1345231852, 1345231849, 1345231840, 1345231845, 1345231833)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.01090598106384 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:48:02.474339
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_53_5011.jpg', 2), ('/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_48_6007.jpg', 2), ('/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_42_6802.jpg', 2), ('/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_35_5706.jpg', 2), ('/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_29_5860.jpg', 2), ('/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_23_5845.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_53_5011.jpg', '/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_48_6007.jpg', '/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_42_6802.jpg', '/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_35_5706.jpg', '/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_29_5860.jpg', '/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_23_5845.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_53_5011.jpg
/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_48_6007.jpg
/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_42_6802.jpg
/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_35_5706.jpg
/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_29_5860.jpg
/home/nano/Desktop/images/18032025/20/47/image_18032025_20_47_23_5845.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345231922","1345231919","1345231916","1345231927","1345231930","1345231924"],"photo_ids_order":["1345231916","1345231919","1345231922","1345231924","1345231927","1345231930"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fcb64e3f3c45cc9bc50dddbd98ffbd00.jpg","text":"TemporaryFile(/tmp/multipartBody6775371434259523660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327342905,"filename":"image_18032025_20_47_42_6802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/35734a422585c5205f19f9333c4384ec.jpg","text":"TemporaryFile(/tmp/multipartBody4152502950648590521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327342905,"filename":"image_18032025_20_47_48_6007.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/193301791d8f276fdcd50a3bb908fb08.jpg","text":"TemporaryFile(/tmp/multipartBody8925902679469091874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327342905,"filename":"image_18032025_20_47_53_5011.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c20388cab50d50a15da2cf6acce6f40b.jpg","text":"TemporaryFile(/tmp/multipartBody2176420572162818298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327342905,"filename":"image_18032025_20_47_29_5860.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3783eaeddf4ab699ba9607c4ba219e5b.jpg","text":"TemporaryFile(/tmp/multipartBody7464460124113010576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327342905,"filename":"image_18032025_20_47_23_5845.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ee37c5c9a054c6e57439398e5eca7944.jpg","text":"TemporaryFile(/tmp/multipartBody6547881889821754596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327342905,"filename":"image_18032025_20_47_35_5706.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345231922","file1":"1345231919","file0":"1345231916","file4":"1345231927","file5":"1345231930","file3":"1345231924"},"map_files_photo_id_array":[{"photo_id":"1345231930","filename":"file5"},{"photo_id":"1345231922","filename":"file2"},{"photo_id":"1345231927","filename":"file4"},{"photo_id":"1345231919","filename":"file1"},{"photo_id":"1345231916","filename":"file0"},{"photo_id":"1345231924","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345231922":["hashtag1","hashtag2"]},{"1345231919":["hashtag1","hashtag2"]},{"1345231916":["hashtag1","hashtag2"]},{"1345231927":["hashtag1","hashtag2"]},{"1345231930":["hashtag1","hashtag2"]},{"1345231924":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345231922, 1345231919, 1345231916, 1345231927, 1345231930, 1345231924)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.91733717918396 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:49:02.818807
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_54_6165.jpg', 2), ('/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_48_5813.jpg', 2), ('/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_42_6818.jpg', 2), ('/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_35_5835.jpg', 2), ('/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_29_6080.jpg', 2), ('/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_23_5980.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_54_6165.jpg', '/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_48_5813.jpg', '/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_42_6818.jpg', '/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_35_5835.jpg', '/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_29_6080.jpg', '/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_23_5980.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_54_6165.jpg
/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_48_5813.jpg
/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_42_6818.jpg
/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_35_5835.jpg
/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_29_6080.jpg
/home/nano/Desktop/images/18032025/20/48/image_18032025_20_48_23_5980.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232006","1345231996","1345231999","1345231963","1345231966","1345232002"],"photo_ids_order":["1345231963","1345231966","1345231996","1345231999","1345232002","1345232006"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e892f87805be615e00fdb1776fa925db.jpg","text":"TemporaryFile(/tmp/multipartBody7840452763825356540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327403299,"filename":"image_18032025_20_48_23_5980.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/179ccc901fded7b6f042d8307925bec0.jpg","text":"TemporaryFile(/tmp/multipartBody5030039902921067103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327403299,"filename":"image_18032025_20_48_42_6818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6bd214b0a57513e63d0d1fe6ee81131e.jpg","text":"TemporaryFile(/tmp/multipartBody1894684251666855915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327403299,"filename":"image_18032025_20_48_35_5835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac4dfe43932d1c682da03d747d74326a.jpg","text":"TemporaryFile(/tmp/multipartBody4010742219555900034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327403299,"filename":"image_18032025_20_48_54_6165.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/941a81fa9ff9073520bff3b8f69629ba.jpg","text":"TemporaryFile(/tmp/multipartBody6845889183601300543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327403299,"filename":"image_18032025_20_48_48_5813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0ccaf5a0dfbb52f771e955cb699a8e19.jpg","text":"TemporaryFile(/tmp/multipartBody171983040899960073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327403299,"filename":"image_18032025_20_48_29_6080.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345231996","file1":"1345231966","file0":"1345231963","file4":"1345232002","file5":"1345232006","file3":"1345231999"},"map_files_photo_id_array":[{"photo_id":"1345232006","filename":"file5"},{"photo_id":"1345231996","filename":"file2"},{"photo_id":"1345232002","filename":"file4"},{"photo_id":"1345231966","filename":"file1"},{"photo_id":"1345231963","filename":"file0"},{"photo_id":"1345231999","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232006":["hashtag1","hashtag2"]},{"1345231996":["hashtag1","hashtag2"]},{"1345231999":["hashtag1","hashtag2"]},{"1345231963":["hashtag1","hashtag2"]},{"1345231966":["hashtag1","hashtag2"]},{"1345232002":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232006, 1345231996, 1345231999, 1345231963, 1345231966, 1345232002)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.73517942428589 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:50:02.587807
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_54_5892.jpg', 2), ('/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_48_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_42_6133.jpg', 2), ('/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_36_6013.jpg', 2), ('/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_30_6767.jpg', 2), ('/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_23_5795.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_54_5892.jpg', '/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_48_5975.jpg', '/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_42_6133.jpg', '/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_36_6013.jpg', '/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_30_6767.jpg', '/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_23_5795.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_54_5892.jpg
/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_48_5975.jpg
/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_42_6133.jpg
/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_36_6013.jpg
/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_30_6767.jpg
/home/nano/Desktop/images/18032025/20/49/image_18032025_20_49_23_5795.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232051","1345232044","1345232047","1345232041","1345232035","1345232038"],"photo_ids_order":["1345232035","1345232038","1345232041","1345232044","1345232047","1345232051"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eab3faf10e1253cf97daf61de8d94767.jpg","text":"TemporaryFile(/tmp/multipartBody2472224722371592507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327463062,"filename":"image_18032025_20_49_23_5795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4cc6798ee188f14b85da9415cffb425c.jpg","text":"TemporaryFile(/tmp/multipartBody6123823808465278728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327463062,"filename":"image_18032025_20_49_36_6013.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/13c41b490bd8e1fbbc9429911c72c7f0.jpg","text":"TemporaryFile(/tmp/multipartBody1261829143812432811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327463062,"filename":"image_18032025_20_49_30_6767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cf0e8e8562756f01bb93e1d69a6ee9a2.jpg","text":"TemporaryFile(/tmp/multipartBody3451818552082443346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327463062,"filename":"image_18032025_20_49_42_6133.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69dd761219082695a8cfa0fe16d657f3.jpg","text":"TemporaryFile(/tmp/multipartBody8447617898252962949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327463062,"filename":"image_18032025_20_49_54_5892.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84f8f095c8ed49b9e193e2c0f056814b.jpg","text":"TemporaryFile(/tmp/multipartBody6877977224068223645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327463062,"filename":"image_18032025_20_49_48_5975.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232041","file1":"1345232038","file0":"1345232035","file4":"1345232047","file5":"1345232051","file3":"1345232044"},"map_files_photo_id_array":[{"photo_id":"1345232051","filename":"file5"},{"photo_id":"1345232041","filename":"file2"},{"photo_id":"1345232047","filename":"file4"},{"photo_id":"1345232038","filename":"file1"},{"photo_id":"1345232035","filename":"file0"},{"photo_id":"1345232044","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232051":["hashtag1","hashtag2"]},{"1345232044":["hashtag1","hashtag2"]},{"1345232047":["hashtag1","hashtag2"]},{"1345232041":["hashtag1","hashtag2"]},{"1345232035":["hashtag1","hashtag2"]},{"1345232038":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232051, 1345232044, 1345232047, 1345232041, 1345232035, 1345232038)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.60641312599182 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:51:02.845108
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_53_5903.jpg', 2), ('/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_47_6043.jpg', 2), ('/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_41_5971.jpg', 2), ('/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_35_5975.jpg', 2), ('/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_29_5229.jpg', 2), ('/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_24_6272.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_53_5903.jpg', '/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_47_6043.jpg', '/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_41_5971.jpg', '/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_35_5975.jpg', '/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_29_5229.jpg', '/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_24_6272.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_53_5903.jpg
/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_47_6043.jpg
/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_41_5971.jpg
/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_35_5975.jpg
/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_29_5229.jpg
/home/nano/Desktop/images/18032025/20/50/image_18032025_20_50_24_6272.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232083","1345232071","1345232068","1345232073","1345232076","1345232078"],"photo_ids_order":["1345232068","1345232071","1345232073","1345232076","1345232078","1345232083"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3830150c5b7e75c23a45fa3238336207.jpg","text":"TemporaryFile(/tmp/multipartBody4493489278915201604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327523311,"filename":"image_18032025_20_50_24_6272.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/41398786c8d5de6a3f6dd492b4e552a5.jpg","text":"TemporaryFile(/tmp/multipartBody1780482346878657758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327523311,"filename":"image_18032025_20_50_47_6043.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac930f0b0a2d839157e4e5e6861d55a9.jpg","text":"TemporaryFile(/tmp/multipartBody3767319366408392415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327523311,"filename":"image_18032025_20_50_53_5903.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/82b825c9272c798b580c8d826ebeefe3.jpg","text":"TemporaryFile(/tmp/multipartBody6985088986404000929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327523311,"filename":"image_18032025_20_50_41_5971.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c97a23396b7eedb93b927e4c2dc51fed.jpg","text":"TemporaryFile(/tmp/multipartBody404719954605663780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327523311,"filename":"image_18032025_20_50_35_5975.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fa46de9300996e8f1232c7e4040001c8.jpg","text":"TemporaryFile(/tmp/multipartBody7169469906893103654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327523311,"filename":"image_18032025_20_50_29_5229.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232073","file1":"1345232071","file0":"1345232068","file4":"1345232078","file5":"1345232083","file3":"1345232076"},"map_files_photo_id_array":[{"photo_id":"1345232083","filename":"file5"},{"photo_id":"1345232073","filename":"file2"},{"photo_id":"1345232078","filename":"file4"},{"photo_id":"1345232071","filename":"file1"},{"photo_id":"1345232068","filename":"file0"},{"photo_id":"1345232076","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232083":["hashtag1","hashtag2"]},{"1345232071":["hashtag1","hashtag2"]},{"1345232068":["hashtag1","hashtag2"]},{"1345232073":["hashtag1","hashtag2"]},{"1345232076":["hashtag1","hashtag2"]},{"1345232078":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232083, 1345232071, 1345232068, 1345232073, 1345232076, 1345232078)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.451393604278564 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:52:02.886902
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_53_5201.jpg', 2), ('/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_48_6212.jpg', 2), ('/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_41_6250.jpg', 2), ('/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_35_6210.jpg', 2), ('/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_29_5710.jpg', 2), ('/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_23_5642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_53_5201.jpg', '/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_48_6212.jpg', '/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_41_6250.jpg', '/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_35_6210.jpg', '/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_29_5710.jpg', '/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_23_5642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_53_5201.jpg
/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_48_6212.jpg
/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_41_6250.jpg
/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_35_6210.jpg
/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_29_5710.jpg
/home/nano/Desktop/images/18032025/20/51/image_18032025_20_51_23_5642.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.35930919647216797 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:52:32.574581
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_53_5136.jpg', 2), ('/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_48_6073.jpg', 2), ('/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_42_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_36_6162.jpg', 2), ('/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_29_6156.jpg', 2), ('/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_23_6186.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_53_5136.jpg', '/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_48_6073.jpg', '/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_42_6135.jpg', '/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_36_6162.jpg', '/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_29_6156.jpg', '/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_23_6186.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_53_5136.jpg
/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_48_6073.jpg
/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_42_6135.jpg
/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_36_6162.jpg
/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_29_6156.jpg
/home/nano/Desktop/images/18032025/20/52/image_18032025_20_52_23_6186.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232131","1345232125","1345232134","1345232128","1345232122","1345232136"],"photo_ids_order":["1345232122","1345232125","1345232128","1345232131","1345232134","1345232136"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ee14b94128479c74964678ab3873ff61.jpg","text":"TemporaryFile(/tmp/multipartBody5806039918719532010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327613038,"filename":"image_18032025_20_52_36_6162.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c20fa1b27a919a991b59076c30b33e0f.jpg","text":"TemporaryFile(/tmp/multipartBody659125486630037043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327613038,"filename":"image_18032025_20_52_48_6073.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/69fea4579c82a7adb135185585316211.jpg","text":"TemporaryFile(/tmp/multipartBody2823587116535155100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327613038,"filename":"image_18032025_20_52_29_6156.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ad41bcf92ba90718856b2b226f34a11c.jpg","text":"TemporaryFile(/tmp/multipartBody8117647377528527391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327613038,"filename":"image_18032025_20_52_42_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5ca4fd5d4d8d09ec16fbe1bce0dde938.jpg","text":"TemporaryFile(/tmp/multipartBody7436707475237263537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327613038,"filename":"image_18032025_20_52_53_5136.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9ba1d7d100cbee5b2b00420cd2f0d28f.jpg","text":"TemporaryFile(/tmp/multipartBody7173970323983150879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327613038,"filename":"image_18032025_20_52_23_6186.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232128","file1":"1345232125","file0":"1345232122","file4":"1345232134","file5":"1345232136","file3":"1345232131"},"map_files_photo_id_array":[{"photo_id":"1345232136","filename":"file5"},{"photo_id":"1345232128","filename":"file2"},{"photo_id":"1345232134","filename":"file4"},{"photo_id":"1345232125","filename":"file1"},{"photo_id":"1345232122","filename":"file0"},{"photo_id":"1345232131","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232131":["hashtag1","hashtag2"]},{"1345232125":["hashtag1","hashtag2"]},{"1345232134":["hashtag1","hashtag2"]},{"1345232128":["hashtag1","hashtag2"]},{"1345232122":["hashtag1","hashtag2"]},{"1345232136":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232131, 1345232125, 1345232134, 1345232128, 1345232122, 1345232136)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.843931674957275 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:53:32.672550
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_53_5651.jpg', 2), ('/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_47_5620.jpg', 2), ('/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_42_6642.jpg', 2), ('/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_35_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_29_6608.jpg', 2), ('/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_23_5633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_53_5651.jpg', '/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_47_5620.jpg', '/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_42_6642.jpg', '/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_35_5638.jpg', '/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_29_6608.jpg', '/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_23_5633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_53_5651.jpg
/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_47_5620.jpg
/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_42_6642.jpg
/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_35_5638.jpg
/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_29_6608.jpg
/home/nano/Desktop/images/18032025/20/53/image_18032025_20_53_23_5633.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232150","1345232158","1345232169","1345232154","1345232163","1345232165"],"photo_ids_order":["1345232150","1345232154","1345232158","1345232163","1345232165","1345232169"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7ab6537d7bb3469b866110cd10159fc3.jpg","text":"TemporaryFile(/tmp/multipartBody7339979934380133101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327673053,"filename":"image_18032025_20_53_53_5651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7381bb40acd5637690c2d90ff5040665.jpg","text":"TemporaryFile(/tmp/multipartBody3024796026529823416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327673053,"filename":"image_18032025_20_53_42_6642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/deea44a8262e4f1574e93f4451834a0f.jpg","text":"TemporaryFile(/tmp/multipartBody2700716785088389398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327673053,"filename":"image_18032025_20_53_23_5633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9c7cf6f482d8c4d1b6e60756f7c67ad8.jpg","text":"TemporaryFile(/tmp/multipartBody7830712215852140871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327673053,"filename":"image_18032025_20_53_47_5620.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bff150444a20b8a375efbf53ee9e113a.jpg","text":"TemporaryFile(/tmp/multipartBody2675112982501891671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327673053,"filename":"image_18032025_20_53_35_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/52cf7520e4265f6973059fc156cdb362.jpg","text":"TemporaryFile(/tmp/multipartBody5115032637854230482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327673053,"filename":"image_18032025_20_53_29_6608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232158","file1":"1345232154","file0":"1345232150","file4":"1345232165","file5":"1345232169","file3":"1345232163"},"map_files_photo_id_array":[{"photo_id":"1345232169","filename":"file5"},{"photo_id":"1345232158","filename":"file2"},{"photo_id":"1345232165","filename":"file4"},{"photo_id":"1345232154","filename":"file1"},{"photo_id":"1345232150","filename":"file0"},{"photo_id":"1345232163","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232150":["hashtag1","hashtag2"]},{"1345232158":["hashtag1","hashtag2"]},{"1345232169":["hashtag1","hashtag2"]},{"1345232154":["hashtag1","hashtag2"]},{"1345232163":["hashtag1","hashtag2"]},{"1345232165":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232150, 1345232158, 1345232169, 1345232154, 1345232163, 1345232165)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.29213571548462 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:54:31.848842
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_54_6852.jpg', 2), ('/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_47_5891.jpg', 2), ('/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_41_6112.jpg', 2), ('/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_35_5992.jpg', 2), ('/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_29_5685.jpg', 2), ('/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_23_5647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_54_6852.jpg', '/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_47_5891.jpg', '/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_41_6112.jpg', '/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_35_5992.jpg', '/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_29_5685.jpg', '/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_23_5647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_54_6852.jpg
/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_47_5891.jpg
/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_41_6112.jpg
/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_35_5992.jpg
/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_29_5685.jpg
/home/nano/Desktop/images/18032025/20/54/image_18032025_20_54_23_5647.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232194","1345232173","1345232199","1345232184","1345232178","1345232189"],"photo_ids_order":["1345232173","1345232178","1345232184","1345232189","1345232194","1345232199"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/8f5185fe0fe5e7923121930b8f53397f.jpg","text":"TemporaryFile(/tmp/multipartBody3747254175903093465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327732302,"filename":"image_18032025_20_54_29_5685.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f1bb85e05c93ddd2c20a0fdd6c8f2f28.jpg","text":"TemporaryFile(/tmp/multipartBody1669345357465554614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327732302,"filename":"image_18032025_20_54_54_6852.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5c1632a2de2bbc1bd75188ab51d1207a.jpg","text":"TemporaryFile(/tmp/multipartBody3554305079958618501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327732302,"filename":"image_18032025_20_54_23_5647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d8c811885814abd9bcc5cf38261bbd55.jpg","text":"TemporaryFile(/tmp/multipartBody7462551843107097093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327732302,"filename":"image_18032025_20_54_41_6112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/85bdc6165b13206d90e502d599b5c7fc.jpg","text":"TemporaryFile(/tmp/multipartBody4601572740473214890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327732302,"filename":"image_18032025_20_54_47_5891.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/822bb6654fe7b20bddf97f9981cdcbf8.jpg","text":"TemporaryFile(/tmp/multipartBody4717362767367484348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327732302,"filename":"image_18032025_20_54_35_5992.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232184","file1":"1345232178","file0":"1345232173","file4":"1345232194","file5":"1345232199","file3":"1345232189"},"map_files_photo_id_array":[{"photo_id":"1345232199","filename":"file5"},{"photo_id":"1345232184","filename":"file2"},{"photo_id":"1345232194","filename":"file4"},{"photo_id":"1345232178","filename":"file1"},{"photo_id":"1345232173","filename":"file0"},{"photo_id":"1345232189","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232194":["hashtag1","hashtag2"]},{"1345232173":["hashtag1","hashtag2"]},{"1345232199":["hashtag1","hashtag2"]},{"1345232184":["hashtag1","hashtag2"]},{"1345232178":["hashtag1","hashtag2"]},{"1345232189":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232194, 1345232173, 1345232199, 1345232184, 1345232178, 1345232189)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.39180326461792 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:55:31.968956
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_53_6103.jpg', 2), ('/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_47_5661.jpg', 2), ('/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_41_5638.jpg', 2), ('/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_36_6632.jpg', 2), ('/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_29_5657.jpg', 2), ('/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_23_5612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_53_6103.jpg', '/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_47_5661.jpg', '/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_41_5638.jpg', '/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_36_6632.jpg', '/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_29_5657.jpg', '/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_23_5612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_53_6103.jpg
/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_47_5661.jpg
/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_41_5638.jpg
/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_36_6632.jpg
/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_29_5657.jpg
/home/nano/Desktop/images/18032025/20/55/image_18032025_20_55_23_5612.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232222","1345232212","1345232217","1345232226","1345232208","1345232231"],"photo_ids_order":["1345232208","1345232212","1345232217","1345232222","1345232226","1345232231"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d97d6c4e005a7ac6362679a098a00569.jpg","text":"TemporaryFile(/tmp/multipartBody8916394572029461699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327792341,"filename":"image_18032025_20_55_36_6632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/992940cdd79939b9fbc84a962db3b9ae.jpg","text":"TemporaryFile(/tmp/multipartBody8797145322404009574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327792341,"filename":"image_18032025_20_55_47_5661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/faa1da7b3c231e7a156b912cf70d78f6.jpg","text":"TemporaryFile(/tmp/multipartBody5951642805790088309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327792341,"filename":"image_18032025_20_55_41_5638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/50011723e41d39f9f0b864ade54304f7.jpg","text":"TemporaryFile(/tmp/multipartBody4826700737341196637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327792341,"filename":"image_18032025_20_55_29_5657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d7fa0435224b99011228122715dce7d6.jpg","text":"TemporaryFile(/tmp/multipartBody6685395461248303160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327792341,"filename":"image_18032025_20_55_53_6103.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f8eb187a1d2b18ae9c019b187879627f.jpg","text":"TemporaryFile(/tmp/multipartBody1407145376888786145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327792341,"filename":"image_18032025_20_55_23_5612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232217","file1":"1345232212","file0":"1345232208","file4":"1345232226","file5":"1345232231","file3":"1345232222"},"map_files_photo_id_array":[{"photo_id":"1345232231","filename":"file5"},{"photo_id":"1345232217","filename":"file2"},{"photo_id":"1345232226","filename":"file4"},{"photo_id":"1345232212","filename":"file1"},{"photo_id":"1345232208","filename":"file0"},{"photo_id":"1345232222","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232222":["hashtag1","hashtag2"]},{"1345232212":["hashtag1","hashtag2"]},{"1345232217":["hashtag1","hashtag2"]},{"1345232226":["hashtag1","hashtag2"]},{"1345232208":["hashtag1","hashtag2"]},{"1345232231":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232222, 1345232212, 1345232217, 1345232226, 1345232208, 1345232231)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.015138387680054 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:56:32.082936
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_47_6094.jpg', 2), ('/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_41_6146.jpg', 2), ('/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_35_5093.jpg', 2), ('/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_30_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_24_6103.jpg', 2), ('/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_11_6129.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_47_6094.jpg', '/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_41_6146.jpg', '/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_35_5093.jpg', '/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_30_6105.jpg', '/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_24_6103.jpg', '/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_11_6129.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_47_6094.jpg
/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_41_6146.jpg
/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_35_5093.jpg
/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_30_6105.jpg
/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_24_6103.jpg
/home/nano/Desktop/images/18032025/20/56/image_18032025_20_56_11_6129.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232315","1345232290","1345232266","1345232364","1345232388","1345232340"],"photo_ids_order":["1345232266","1345232290","1345232315","1345232340","1345232364","1345232388"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9940fc9c03bd5fbf4fa0f6586a0ab906.jpg","text":"TemporaryFile(/tmp/multipartBody4585555419260575207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327852527,"filename":"image_18032025_20_56_35_5093.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b3db4f72b9e5f72c681abce5c0042a35.jpg","text":"TemporaryFile(/tmp/multipartBody469747447589093726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327852527,"filename":"image_18032025_20_56_41_6146.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e5a7238758b3e7cdf18c2008e8995745.jpg","text":"TemporaryFile(/tmp/multipartBody7469230344431074429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327852527,"filename":"image_18032025_20_56_47_6094.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7e8f61a61664da7e964bebf5e1a9daa4.jpg","text":"TemporaryFile(/tmp/multipartBody970473136362436981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327852527,"filename":"image_18032025_20_56_24_6103.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ef11dd0e6c45131186c69a641b3d88c6.jpg","text":"TemporaryFile(/tmp/multipartBody2307099747114949974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327852527,"filename":"image_18032025_20_56_11_6129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/eb2bc3cf9e20f79dae994d1b87c953a3.jpg","text":"TemporaryFile(/tmp/multipartBody1020834512216665826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327852527,"filename":"image_18032025_20_56_30_6105.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232315","file1":"1345232290","file0":"1345232266","file4":"1345232364","file5":"1345232388","file3":"1345232340"},"map_files_photo_id_array":[{"photo_id":"1345232388","filename":"file5"},{"photo_id":"1345232315","filename":"file2"},{"photo_id":"1345232364","filename":"file4"},{"photo_id":"1345232290","filename":"file1"},{"photo_id":"1345232266","filename":"file0"},{"photo_id":"1345232340","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232315":["hashtag1","hashtag2"]},{"1345232290":["hashtag1","hashtag2"]},{"1345232266":["hashtag1","hashtag2"]},{"1345232364":["hashtag1","hashtag2"]},{"1345232388":["hashtag1","hashtag2"]},{"1345232340":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232315, 1345232290, 1345232266, 1345232364, 1345232388, 1345232340)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.08812689781189 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:57:32.161755
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_53_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_47_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_41_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_35_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_29_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_23_5098.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_53_6109.jpg', '/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_47_6119.jpg', '/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_41_6107.jpg', '/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_35_6111.jpg', '/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_29_6135.jpg', '/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_23_5098.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_53_6109.jpg
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_47_6119.jpg
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_41_6107.jpg
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_35_6111.jpg
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_29_6135.jpg
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_23_5098.jpg
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:58:02.720317
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_53_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_47_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_41_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_35_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_29_6135.jpg', 2), ('/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_23_5098.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_53_6109.jpg', '/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_47_6119.jpg', '/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_41_6107.jpg', '/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_35_6111.jpg', '/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_29_6135.jpg', '/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_23_5098.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_53_6109.jpg
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_47_6119.jpg
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_41_6107.jpg
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_35_6111.jpg
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_29_6135.jpg
/home/nano/Desktop/images/18032025/20/57/image_18032025_20_57_23_5098.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232837","1345232788","1345232812","1345232763","1345232850","1345232747"],"photo_ids_order":["1345232747","1345232763","1345232788","1345232812","1345232837","1345232850"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e34cd04844f0752d11a0518f1488f3a.jpg","text":"TemporaryFile(/tmp/multipartBody6802040684777495235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327943156,"filename":"image_18032025_20_57_29_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/9353c902f678c12e9d32363c9a4b8921.jpg","text":"TemporaryFile(/tmp/multipartBody5088713884780310403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327943156,"filename":"image_18032025_20_57_41_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7865379da9c8d3bc13b50ef0cdbc14fa.jpg","text":"TemporaryFile(/tmp/multipartBody1444983108033235750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327943156,"filename":"image_18032025_20_57_35_6111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ccd6856b68c9b606daa323168571cb20.jpg","text":"TemporaryFile(/tmp/multipartBody2545879278997668415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327943156,"filename":"image_18032025_20_57_47_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/a6d0c3e40c0ede68b20ae48c93c3d2c6.jpg","text":"TemporaryFile(/tmp/multipartBody5051470267827073895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327943156,"filename":"image_18032025_20_57_23_5098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/465471484fff811b1dd9d36f99e4fcd1.jpg","text":"TemporaryFile(/tmp/multipartBody5059368965843621636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742327943156,"filename":"image_18032025_20_57_53_6109.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232788","file1":"1345232763","file0":"1345232747","file4":"1345232837","file5":"1345232850","file3":"1345232812"},"map_files_photo_id_array":[{"photo_id":"1345232850","filename":"file5"},{"photo_id":"1345232788","filename":"file2"},{"photo_id":"1345232837","filename":"file4"},{"photo_id":"1345232763","filename":"file1"},{"photo_id":"1345232747","filename":"file0"},{"photo_id":"1345232812","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232837":["hashtag1","hashtag2"]},{"1345232788":["hashtag1","hashtag2"]},{"1345232812":["hashtag1","hashtag2"]},{"1345232763":["hashtag1","hashtag2"]},{"1345232850":["hashtag1","hashtag2"]},{"1345232747":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232837, 1345232788, 1345232812, 1345232763, 1345232850, 1345232747)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.02042245864868 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 20:59:02.761096
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_54_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_48_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_41_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_29_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_23_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_17_6110.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_54_6106.jpg', '/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_48_6108.jpg', '/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_41_6116.jpg', '/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_29_6107.jpg', '/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_23_6107.jpg', '/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_17_6110.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_54_6106.jpg
/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_48_6108.jpg
/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_41_6116.jpg
/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_29_6107.jpg
/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_23_6107.jpg
/home/nano/Desktop/images/18032025/20/58/image_18032025_20_58_17_6110.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232909","1345232932","1345232923","1345232917","1345232928","1345232913"],"photo_ids_order":["1345232909","1345232913","1345232917","1345232923","1345232928","1345232932"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4126798dea15ebaf0643c41cde8611e1.jpg","text":"TemporaryFile(/tmp/multipartBody8552948662611652258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328003221,"filename":"image_18032025_20_58_54_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/80d14cd59585d1c66f20fa7b58797cdb.jpg","text":"TemporaryFile(/tmp/multipartBody268067287709865607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328003221,"filename":"image_18032025_20_58_17_6110.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1b3a50e02d9f040d3ea823f3d66da431.jpg","text":"TemporaryFile(/tmp/multipartBody7478712721221560961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328003221,"filename":"image_18032025_20_58_29_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/b46c4f80d8f841f5ef2fbe2a354e23d6.jpg","text":"TemporaryFile(/tmp/multipartBody8972714353967049957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328003221,"filename":"image_18032025_20_58_41_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/532e88915fef2a5e75c41eb84744c840.jpg","text":"TemporaryFile(/tmp/multipartBody1980289263531549261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328003221,"filename":"image_18032025_20_58_23_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6360c5b00618682ac6185879c831b119.jpg","text":"TemporaryFile(/tmp/multipartBody2895661158467354706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328003221,"filename":"image_18032025_20_58_48_6108.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232917","file1":"1345232913","file0":"1345232909","file4":"1345232928","file5":"1345232932","file3":"1345232923"},"map_files_photo_id_array":[{"photo_id":"1345232932","filename":"file5"},{"photo_id":"1345232917","filename":"file2"},{"photo_id":"1345232928","filename":"file4"},{"photo_id":"1345232913","filename":"file1"},{"photo_id":"1345232909","filename":"file0"},{"photo_id":"1345232923","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232909":["hashtag1","hashtag2"]},{"1345232932":["hashtag1","hashtag2"]},{"1345232923":["hashtag1","hashtag2"]},{"1345232917":["hashtag1","hashtag2"]},{"1345232928":["hashtag1","hashtag2"]},{"1345232913":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232909, 1345232932, 1345232923, 1345232917, 1345232928, 1345232913)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.08314752578735 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:00:02.508287
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_53_5129.jpg', 2), ('/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_42_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_35_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_29_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_23_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_17_6110.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_53_5129.jpg', '/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_42_6108.jpg', '/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_35_6119.jpg', '/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_29_6106.jpg', '/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_23_6106.jpg', '/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_17_6110.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_53_5129.jpg
/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_42_6108.jpg
/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_35_6119.jpg
/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_29_6106.jpg
/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_23_6106.jpg
/home/nano/Desktop/images/18032025/20/59/image_18032025_20_59_17_6110.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345232957","1345232971","1345232965","1345232973","1345232961","1345232969"],"photo_ids_order":["1345232957","1345232961","1345232965","1345232969","1345232971","1345232973"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4169ceb8c356618d0a5a0baf8cd8607e.jpg","text":"TemporaryFile(/tmp/multipartBody7484182164162991474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328062966,"filename":"image_18032025_20_59_53_5129.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c2995986dace62bcc6123f70eff21d77.jpg","text":"TemporaryFile(/tmp/multipartBody2826199822910036040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328062966,"filename":"image_18032025_20_59_23_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/86eb564879c1b61cdd5ad135add2065e.jpg","text":"TemporaryFile(/tmp/multipartBody6801532740744539439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328062966,"filename":"image_18032025_20_59_35_6119.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bc183fd84eb964e988b93e1625ca4a82.jpg","text":"TemporaryFile(/tmp/multipartBody482746210614169562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328062966,"filename":"image_18032025_20_59_17_6110.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aed1581f8651258a6e1e5886985ae5b9.jpg","text":"TemporaryFile(/tmp/multipartBody7212141816473880502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328062966,"filename":"image_18032025_20_59_42_6108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c7a1198660a4d5d547de36e28f7c9271.jpg","text":"TemporaryFile(/tmp/multipartBody3544040305244255895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328062966,"filename":"image_18032025_20_59_29_6106.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232965","file1":"1345232961","file0":"1345232957","file4":"1345232971","file5":"1345232973","file3":"1345232969"},"map_files_photo_id_array":[{"photo_id":"1345232973","filename":"file5"},{"photo_id":"1345232965","filename":"file2"},{"photo_id":"1345232971","filename":"file4"},{"photo_id":"1345232961","filename":"file1"},{"photo_id":"1345232957","filename":"file0"},{"photo_id":"1345232969","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345232957":["hashtag1","hashtag2"]},{"1345232971":["hashtag1","hashtag2"]},{"1345232965":["hashtag1","hashtag2"]},{"1345232973":["hashtag1","hashtag2"]},{"1345232961":["hashtag1","hashtag2"]},{"1345232969":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345232957, 1345232971, 1345232965, 1345232973, 1345232961, 1345232969)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.387617826461792 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:01:02.777225
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_05_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_53_6150.jpg', 2), ('/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_47_5134.jpg', 2), ('/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_42_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_36_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_30_6096.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_05_6113.jpg', '/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_53_6150.jpg', '/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_47_5134.jpg', '/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_42_6106.jpg', '/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_36_6111.jpg', '/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_30_6096.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_05_6113.jpg
/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_53_6150.jpg
/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_47_5134.jpg
/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_42_6106.jpg
/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_36_6111.jpg
/home/nano/Desktop/images/18032025/21/00/image_18032025_21_00_30_6096.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345233004","1345232991","1345233009","1345233000","1345232996","1345232993"],"photo_ids_order":["1345232991","1345232993","1345232996","1345233000","1345233004","1345233009"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/0e2443c87da002dcc771b80c5899d5cd.jpg","text":"TemporaryFile(/tmp/multipartBody3127561020517064309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328123232,"filename":"image_18032025_21_00_36_6111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/269f48566dd109c653a313020358284c.jpg","text":"TemporaryFile(/tmp/multipartBody8736191323701375436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328123232,"filename":"image_18032025_21_01_05_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/c42134c11add16edb67d8f020bdab129.jpg","text":"TemporaryFile(/tmp/multipartBody8878529684457186112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328123232,"filename":"image_18032025_21_00_30_6096.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2179e06373132007f0f9dc80269ecd5a.jpg","text":"TemporaryFile(/tmp/multipartBody6246782749198408662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328123232,"filename":"image_18032025_21_00_42_6106.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4baa17c0d10846d95257f8cce5252cd0.jpg","text":"TemporaryFile(/tmp/multipartBody3360017566678116952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328123232,"filename":"image_18032025_21_00_47_5134.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1f5ab5831d97fc89ad676623b19294c2.jpg","text":"TemporaryFile(/tmp/multipartBody4875357291131033630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328123232,"filename":"image_18032025_21_00_53_6150.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345232996","file1":"1345232993","file0":"1345232991","file4":"1345233004","file5":"1345233009","file3":"1345233000"},"map_files_photo_id_array":[{"photo_id":"1345233009","filename":"file5"},{"photo_id":"1345232996","filename":"file2"},{"photo_id":"1345233004","filename":"file4"},{"photo_id":"1345232993","filename":"file1"},{"photo_id":"1345232991","filename":"file0"},{"photo_id":"1345233000","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345233004":["hashtag1","hashtag2"]},{"1345232991":["hashtag1","hashtag2"]},{"1345233009":["hashtag1","hashtag2"]},{"1345233000":["hashtag1","hashtag2"]},{"1345232996":["hashtag1","hashtag2"]},{"1345232993":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345233004, 1345232991, 1345233009, 1345233000, 1345232996, 1345232993)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.16066265106201 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:02:02.936993
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_53_6155.jpg', 2), ('/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_47_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_41_6106.jpg', 2), ('/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_35_6112.jpg', 2), ('/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_29_5098.jpg', 2), ('/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_24_6115.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_53_6155.jpg', '/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_47_6111.jpg', '/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_41_6106.jpg', '/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_35_6112.jpg', '/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_29_5098.jpg', '/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_24_6115.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_53_6155.jpg
/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_47_6111.jpg
/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_41_6106.jpg
/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_35_6112.jpg
/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_29_5098.jpg
/home/nano/Desktop/images/18032025/21/01/image_18032025_21_01_24_6115.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345233031","1345233025","1345233045","1345233027","1345233035","1345233029"],"photo_ids_order":["1345233025","1345233027","1345233029","1345233031","1345233035","1345233045"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/5db04d13119edfd4f6cb6d8f5b8aa0dd.jpg","text":"TemporaryFile(/tmp/multipartBody8587350023171297858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328183395,"filename":"image_18032025_21_01_35_6112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/bf9cc0655cefa83da3a78ab2a4f5154a.jpg","text":"TemporaryFile(/tmp/multipartBody2909016853832836136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328183395,"filename":"image_18032025_21_01_53_6155.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d9ee26166c3eeed1291a41800538799b.jpg","text":"TemporaryFile(/tmp/multipartBody2014776859490554156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328183395,"filename":"image_18032025_21_01_24_6115.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/7088ac7683d460cc9354db843cc81bd9.jpg","text":"TemporaryFile(/tmp/multipartBody800552104082039044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328183395,"filename":"image_18032025_21_01_47_6111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/3054d754de8fc8392f233cabed93ab57.jpg","text":"TemporaryFile(/tmp/multipartBody6474142500431243951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328183395,"filename":"image_18032025_21_01_29_5098.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/62a9c7c0f5a358e5c9b8f218e3831986.jpg","text":"TemporaryFile(/tmp/multipartBody5741299946609547246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328183395,"filename":"image_18032025_21_01_41_6106.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345233029","file1":"1345233027","file0":"1345233025","file4":"1345233035","file5":"1345233045","file3":"1345233031"},"map_files_photo_id_array":[{"photo_id":"1345233045","filename":"file5"},{"photo_id":"1345233029","filename":"file2"},{"photo_id":"1345233035","filename":"file4"},{"photo_id":"1345233027","filename":"file1"},{"photo_id":"1345233025","filename":"file0"},{"photo_id":"1345233031","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345233031":["hashtag1","hashtag2"]},{"1345233025":["hashtag1","hashtag2"]},{"1345233045":["hashtag1","hashtag2"]},{"1345233027":["hashtag1","hashtag2"]},{"1345233035":["hashtag1","hashtag2"]},{"1345233029":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345233031, 1345233025, 1345233045, 1345233027, 1345233035, 1345233029)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.788167715072632 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:03:02.889405
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_48_6158.jpg', 2), ('/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_41_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_35_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_23_5217.jpg', 2), ('/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_18_6131.jpg', 2), ('/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_12_6135.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_48_6158.jpg', '/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_41_6144.jpg', '/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_35_6111.jpg', '/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_23_5217.jpg', '/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_18_6131.jpg', '/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_12_6135.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_48_6158.jpg
/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_41_6144.jpg
/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_35_6111.jpg
/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_23_5217.jpg
/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_18_6131.jpg
/home/nano/Desktop/images/18032025/21/02/image_18032025_21_02_12_6135.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345233118","1345233112","1345233120","1345233114","1345233123","1345233116"],"photo_ids_order":["1345233112","1345233114","1345233116","1345233118","1345233120","1345233123"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/27556186ad57589653e972aab497f6ec.jpg","text":"TemporaryFile(/tmp/multipartBody7256499507987315008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328243343,"filename":"image_18032025_21_02_23_5217.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/46884914c1175c666220f066313eea25.jpg","text":"TemporaryFile(/tmp/multipartBody783605347503330263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328243343,"filename":"image_18032025_21_02_48_6158.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/e0dddeffb7580269f7315584b1c9f8c6.jpg","text":"TemporaryFile(/tmp/multipartBody5539010617347589360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328243343,"filename":"image_18032025_21_02_18_6131.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/cfe259dccc4b81fc9958752526290893.jpg","text":"TemporaryFile(/tmp/multipartBody839978207827006377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328243343,"filename":"image_18032025_21_02_41_6144.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ac439f32ad4507d5d44aa9b89c550d65.jpg","text":"TemporaryFile(/tmp/multipartBody8980444834770473465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328243343,"filename":"image_18032025_21_02_12_6135.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ab9437c6a5c7bad16d59e6e164cd01e7.jpg","text":"TemporaryFile(/tmp/multipartBody8271603532515767813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328243343,"filename":"image_18032025_21_02_35_6111.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345233116","file1":"1345233114","file0":"1345233112","file4":"1345233120","file5":"1345233123","file3":"1345233118"},"map_files_photo_id_array":[{"photo_id":"1345233123","filename":"file5"},{"photo_id":"1345233116","filename":"file2"},{"photo_id":"1345233120","filename":"file4"},{"photo_id":"1345233114","filename":"file1"},{"photo_id":"1345233112","filename":"file0"},{"photo_id":"1345233118","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345233118":["hashtag1","hashtag2"]},{"1345233112":["hashtag1","hashtag2"]},{"1345233120":["hashtag1","hashtag2"]},{"1345233114":["hashtag1","hashtag2"]},{"1345233123":["hashtag1","hashtag2"]},{"1345233116":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345233118, 1345233112, 1345233120, 1345233114, 1345233123, 1345233116)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.61234140396118 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:04:03.367186
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_48_6108.jpg', 2), ('/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_42_6107.jpg', 2), ('/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_36_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_29_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_23_6112.jpg', 2), ('/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_17_6112.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_48_6108.jpg', '/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_42_6107.jpg', '/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_36_6128.jpg', '/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_29_6117.jpg', '/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_23_6112.jpg', '/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_17_6112.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_48_6108.jpg
/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_42_6107.jpg
/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_36_6128.jpg
/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_29_6117.jpg
/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_23_6112.jpg
/home/nano/Desktop/images/18032025/21/03/image_18032025_21_03_17_6112.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345233175","1345233148","1345233177","1345233189","1345233180","1345233184"],"photo_ids_order":["1345233148","1345233175","1345233177","1345233180","1345233184","1345233189"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f6cecd1a64bf3276ea88b93a82c539dc.jpg","text":"TemporaryFile(/tmp/multipartBody5784435372828889383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328303851,"filename":"image_18032025_21_03_42_6107.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/acea76dfb8479daa5308fb92c67d8f4a.jpg","text":"TemporaryFile(/tmp/multipartBody1548238209066260899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328303851,"filename":"image_18032025_21_03_48_6108.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d58fb533c3f6623585b1cdbcf61ec5e4.jpg","text":"TemporaryFile(/tmp/multipartBody7824699613274349614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328303851,"filename":"image_18032025_21_03_36_6128.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6e49d29e233eb9abe549050171908a57.jpg","text":"TemporaryFile(/tmp/multipartBody7231645734608313116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328303851,"filename":"image_18032025_21_03_17_6112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/14eb0cb1440030c7c5aca4ffbac8d196.jpg","text":"TemporaryFile(/tmp/multipartBody1392725221158166307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328303851,"filename":"image_18032025_21_03_29_6117.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/6499df8526ab5a3bbb5e2d1c2429d333.jpg","text":"TemporaryFile(/tmp/multipartBody4187538224723194878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328303851,"filename":"image_18032025_21_03_23_6112.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345233177","file1":"1345233175","file0":"1345233148","file4":"1345233184","file5":"1345233189","file3":"1345233180"},"map_files_photo_id_array":[{"photo_id":"1345233189","filename":"file5"},{"photo_id":"1345233177","filename":"file2"},{"photo_id":"1345233184","filename":"file4"},{"photo_id":"1345233175","filename":"file1"},{"photo_id":"1345233148","filename":"file0"},{"photo_id":"1345233180","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345233175":["hashtag1","hashtag2"]},{"1345233148":["hashtag1","hashtag2"]},{"1345233177":["hashtag1","hashtag2"]},{"1345233189":["hashtag1","hashtag2"]},{"1345233180":["hashtag1","hashtag2"]},{"1345233184":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345233175, 1345233148, 1345233177, 1345233189, 1345233180, 1345233184)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.94604301452637 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:05:02.093455
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_53_6109.jpg', 2), ('/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_47_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_41_6116.jpg', 2), ('/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_35_5124.jpg', 2), ('/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_30_6147.jpg', 2), ('/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_24_6127.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_53_6109.jpg', '/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_47_6123.jpg', '/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_41_6116.jpg', '/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_35_5124.jpg', '/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_30_6147.jpg', '/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_24_6127.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_53_6109.jpg
/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_47_6123.jpg
/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_41_6116.jpg
/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_35_5124.jpg
/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_30_6147.jpg
/home/nano/Desktop/images/18032025/21/04/image_18032025_21_04_24_6127.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345233238","1345233211","1345233208","1345233246","1345233231","1345233242"],"photo_ids_order":["1345233208","1345233211","1345233231","1345233238","1345233242","1345233246"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/ca98e1646390cf4e049aa299024870aa.jpg","text":"TemporaryFile(/tmp/multipartBody3395573531795792783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328362550,"filename":"image_18032025_21_04_35_5124.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1fc30eb4ce5c0b18b77c87bfcf23981a.jpg","text":"TemporaryFile(/tmp/multipartBody7515929096731805372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328362550,"filename":"image_18032025_21_04_47_6123.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/363a48baed8c92525bb599f1ec5766e0.jpg","text":"TemporaryFile(/tmp/multipartBody7215779410614380032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328362550,"filename":"image_18032025_21_04_53_6109.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/904eb7c63471666de9d9dadd8f233110.jpg","text":"TemporaryFile(/tmp/multipartBody1506696697019639012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328362550,"filename":"image_18032025_21_04_24_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/51a4b54c1cb217c6cebacef82aa8e04e.jpg","text":"TemporaryFile(/tmp/multipartBody3246332446988958051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328362550,"filename":"image_18032025_21_04_41_6116.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/be9f6f091310a7947c4f45fa6288d410.jpg","text":"TemporaryFile(/tmp/multipartBody1125627043020410878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328362550,"filename":"image_18032025_21_04_30_6147.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345233231","file1":"1345233211","file0":"1345233208","file4":"1345233242","file5":"1345233246","file3":"1345233238"},"map_files_photo_id_array":[{"photo_id":"1345233246","filename":"file5"},{"photo_id":"1345233231","filename":"file2"},{"photo_id":"1345233242","filename":"file4"},{"photo_id":"1345233211","filename":"file1"},{"photo_id":"1345233208","filename":"file0"},{"photo_id":"1345233238","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345233238":["hashtag1","hashtag2"]},{"1345233211":["hashtag1","hashtag2"]},{"1345233208":["hashtag1","hashtag2"]},{"1345233246":["hashtag1","hashtag2"]},{"1345233231":["hashtag1","hashtag2"]},{"1345233242":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345233238, 1345233211, 1345233208, 1345233246, 1345233231, 1345233242)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.065308570861816 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:06:02.368859
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_53_6110.jpg', 2), ('/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_47_6142.jpg', 2), ('/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_41_6119.jpg', 2), ('/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_35_6124.jpg', 2), ('/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_29_5101.jpg', 2), ('/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_24_6108.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_53_6110.jpg', '/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_47_6142.jpg', '/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_41_6119.jpg', '/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_35_6124.jpg', '/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_29_5101.jpg', '/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_24_6108.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_53_6110.jpg
/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_47_6142.jpg
/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_41_6119.jpg
/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_35_6124.jpg
/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_29_5101.jpg
/home/nano/Desktop/images/18032025/21/05/image_18032025_21_05_24_6108.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.35529351234436035 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
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:06:31.922856
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_54_6128.jpg', 2), ('/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_48_6112.jpg', 2), ('/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_41_6140.jpg', 2), ('/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_35_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_29_6117.jpg', 2), ('/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_23_6144.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_54_6128.jpg', '/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_48_6112.jpg', '/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_41_6140.jpg', '/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_35_6127.jpg', '/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_29_6117.jpg', '/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_23_6144.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_54_6128.jpg
/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_48_6112.jpg
/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_41_6140.jpg
/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_35_6127.jpg
/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_29_6117.jpg
/home/nano/Desktop/images/18032025/21/06/image_18032025_21_06_23_6144.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345233469","1345233457","1345233450","1345233453","1345233455","1345233446"],"photo_ids_order":["1345233446","1345233450","1345233453","1345233455","1345233457","1345233469"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f10d984b03a382ee806fa2974636ad33.jpg","text":"TemporaryFile(/tmp/multipartBody6798047106878902077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328452350,"filename":"image_18032025_21_06_23_6144.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1dc9eda822b5d74714cab77c80234ad3.jpg","text":"TemporaryFile(/tmp/multipartBody4788232338333207871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328452350,"filename":"image_18032025_21_06_29_6117.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1e8610364463085e9fd12bf3525df14c.jpg","text":"TemporaryFile(/tmp/multipartBody4912225411697324431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328452350,"filename":"image_18032025_21_06_48_6112.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/fa19c08ea440cfc620b9498d0bb518a7.jpg","text":"TemporaryFile(/tmp/multipartBody6363307631131100679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328452350,"filename":"image_18032025_21_06_41_6140.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/aba287fa00ced01418522470c85ba198.jpg","text":"TemporaryFile(/tmp/multipartBody496014673108678589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328452350,"filename":"image_18032025_21_06_35_6127.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/58ba00884f19ce2a82767792644a0777.jpg","text":"TemporaryFile(/tmp/multipartBody5453688102192822932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328452350,"filename":"image_18032025_21_06_54_6128.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345233453","file1":"1345233450","file0":"1345233446","file4":"1345233457","file5":"1345233469","file3":"1345233455"},"map_files_photo_id_array":[{"photo_id":"1345233469","filename":"file5"},{"photo_id":"1345233453","filename":"file2"},{"photo_id":"1345233457","filename":"file4"},{"photo_id":"1345233450","filename":"file1"},{"photo_id":"1345233446","filename":"file0"},{"photo_id":"1345233455","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345233469":["hashtag1","hashtag2"]},{"1345233457":["hashtag1","hashtag2"]},{"1345233450":["hashtag1","hashtag2"]},{"1345233453":["hashtag1","hashtag2"]},{"1345233455":["hashtag1","hashtag2"]},{"1345233446":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345233469, 1345233457, 1345233450, 1345233453, 1345233455, 1345233446)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.196778297424316 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:07:32.038840
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_53_5996.jpg', 2), ('/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_47_6041.jpg', 2), ('/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_41_5790.jpg', 2), ('/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_35_6068.jpg', 2), ('/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_23_6044.jpg', 2), ('/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_11_6133.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_53_5996.jpg', '/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_47_6041.jpg', '/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_41_5790.jpg', '/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_35_6068.jpg', '/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_23_6044.jpg', '/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_11_6133.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_53_5996.jpg
/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_47_6041.jpg
/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_41_5790.jpg
/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_35_6068.jpg
/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_23_6044.jpg
/home/nano/Desktop/images/18032025/21/07/image_18032025_21_07_11_6133.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345233685","1345233652","1345233640","1345233613","1345233654","1345233677"],"photo_ids_order":["1345233613","1345233640","1345233652","1345233654","1345233677","1345233685"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/391f65c7d1e18a959e15a277e132732f.jpg","text":"TemporaryFile(/tmp/multipartBody6733213654005677401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328512440,"filename":"image_18032025_21_07_11_6133.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/f3d344a9b3888c937e6a32efd6079e52.jpg","text":"TemporaryFile(/tmp/multipartBody7399069642405751885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328512440,"filename":"image_18032025_21_07_41_5790.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/89d501baec9e126c4b0b82ecdacdf8fd.jpg","text":"TemporaryFile(/tmp/multipartBody4711621318757248615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328512440,"filename":"image_18032025_21_07_47_6041.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/221954eee274b2f253e5c36ff529d0ad.jpg","text":"TemporaryFile(/tmp/multipartBody4912174342025642664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328512440,"filename":"image_18032025_21_07_53_5996.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/84327a6012d9a74e626f8eaf813609c6.jpg","text":"TemporaryFile(/tmp/multipartBody7095603512894798706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328512440,"filename":"image_18032025_21_07_35_6068.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/954e01664c0e4a8e5fb1b8f6e15172a4.jpg","text":"TemporaryFile(/tmp/multipartBody3773370637756837534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328512440,"filename":"image_18032025_21_07_23_6044.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345233652","file1":"1345233640","file0":"1345233613","file4":"1345233677","file5":"1345233685","file3":"1345233654"},"map_files_photo_id_array":[{"photo_id":"1345233685","filename":"file5"},{"photo_id":"1345233652","filename":"file2"},{"photo_id":"1345233677","filename":"file4"},{"photo_id":"1345233640","filename":"file1"},{"photo_id":"1345233613","filename":"file0"},{"photo_id":"1345233654","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345233685":["hashtag1","hashtag2"]},{"1345233652":["hashtag1","hashtag2"]},{"1345233640":["hashtag1","hashtag2"]},{"1345233613":["hashtag1","hashtag2"]},{"1345233654":["hashtag1","hashtag2"]},{"1345233677":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345233685, 1345233652, 1345233640, 1345233613, 1345233654, 1345233677)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.085847854614258 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:08:32.137443
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_54_6123.jpg', 2), ('/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_47_6105.jpg', 2), ('/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_41_6111.jpg', 2), ('/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_35_5967.jpg', 2), ('/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_29_6113.jpg', 2), ('/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_23_5965.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_54_6123.jpg', '/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_47_6105.jpg', '/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_41_6111.jpg', '/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_35_5967.jpg', '/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_29_6113.jpg', '/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_23_5965.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_54_6123.jpg
/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_47_6105.jpg
/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_41_6111.jpg
/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_35_5967.jpg
/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_29_6113.jpg
/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_23_5965.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345233727","1345233711","1345233705","1345233708","1345233734","1345233701"],"photo_ids_order":["1345233701","1345233705","1345233708","1345233711","1345233727","1345233734"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/1a3825519a7faf98f3c06c33bc504ef3.jpg","text":"TemporaryFile(/tmp/multipartBody3218981246924693514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328572583,"filename":"image_18032025_21_08_29_6113.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/d1ec4cf7735fbf4095f1da1d96b14dc2.jpg","text":"TemporaryFile(/tmp/multipartBody3340336728472541908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328572583,"filename":"image_18032025_21_08_35_5967.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/4c13b659ca0290a3e35f787d54e82ccd.jpg","text":"TemporaryFile(/tmp/multipartBody5900090039235629903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328572583,"filename":"image_18032025_21_08_47_6105.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/90ce861104f59997a6df403b6b153e90.jpg","text":"TemporaryFile(/tmp/multipartBody8236051864790020222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328572583,"filename":"image_18032025_21_08_41_6111.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/35dc910e737139c559490a72e5a50bfd.jpg","text":"TemporaryFile(/tmp/multipartBody6046361021212014059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328572583,"filename":"image_18032025_21_08_23_5965.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/630f420a4934ec5112f1876227510be9.jpg","text":"TemporaryFile(/tmp/multipartBody6914924836569772073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1742328572583,"filename":"image_18032025_21_08_54_6123.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1345233708","file1":"1345233705","file0":"1345233701","file4":"1345233727","file5":"1345233734","file3":"1345233711"},"map_files_photo_id_array":[{"photo_id":"1345233734","filename":"file5"},{"photo_id":"1345233708","filename":"file2"},{"photo_id":"1345233727","filename":"file4"},{"photo_id":"1345233705","filename":"file1"},{"photo_id":"1345233701","filename":"file0"},{"photo_id":"1345233711","filename":"file3"}],"portfolio_id":21508857,"hashtag_by_photo_ids":[{"1345233727":["hashtag1","hashtag2"]},{"1345233711":["hashtag1","hashtag2"]},{"1345233705":["hashtag1","hashtag2"]},{"1345233708":["hashtag1","hashtag2"]},{"1345233734":["hashtag1","hashtag2"]},{"1345233701":["hashtag1","hashtag2"]}],"comms":"Portfolio 21508857 used, photo_id : ArrayBuffer(1345233727, 1345233711, 1345233705, 1345233708, 1345233734, 1345233701)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.643878936767578 secondes ---
[Errno 13] Permission denied: '/home/pi'
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=533 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-03-18 21:09:32.267459
  port_id : 21508857
  datou_current_id : 2675786
in upload_from_sqlite, uploading in 21508857
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250318 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18032025/21/09/image_18032025_21_09_11_5170.jpg', 2), ('/home/nano/Desktop/images/18032025/21/09/image_18032025_21_09_06_6115.jpg', 2), ('/home/nano/Desktop/images/18032025/21/08/image_18032025_21_09_00_6091.jpg', 2), ('/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_17_6144.jpg', 2), ('/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_11_6127.jpg', 2), ('/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_05_5166.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18032025/21/09/image_18032025_21_09_11_5170.jpg', '/home/nano/Desktop/images/18032025/21/09/image_18032025_21_09_06_6115.jpg', '/home/nano/Desktop/images/18032025/21/08/image_18032025_21_09_00_6091.jpg', '/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_17_6144.jpg', '/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_11_6127.jpg', '/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_05_5166.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2675786&datou=0
/home/nano/Desktop/images/18032025/21/09/image_18032025_21_09_11_5170.jpg
/home/nano/Desktop/images/18032025/21/09/image_18032025_21_09_06_6115.jpg
/home/nano/Desktop/images/18032025/21/08/image_18032025_21_09_00_6091.jpg
/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_17_6144.jpg
/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_11_6127.jpg
/home/nano/Desktop/images/18032025/21/08/image_18032025_21_08_05_5166.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1345233820","1345233814","1345233888","1345233849","1345233834","1345233871"],"photo_ids_order":["1345233814","1345233820","1345233834","1345233849","1345233871","1345233888"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/18/2d677f9a461da1667ca577da21af3623.jpg","text":"TemporaryFile(/tmp/multipartBody3704344651182297595asTemporaryFile)","latitude":0.0,"longitu